Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752509AbdLLPrA (ORCPT ); Tue, 12 Dec 2017 10:47:00 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:45611 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751609AbdLLPq5 (ORCPT ); Tue, 12 Dec 2017 10:46:57 -0500 X-Google-Smtp-Source: ACJfBov/DMOg9X+jw5c4t6w/zzFiALcV+tBA1IYLIP89W4AB1EKYMaLL4zlvYDI8OpaTOCmntHMn2w== Subject: Re: [PATCH v3 1/3] interconnect: Add generic on-chip interconnect API To: Amit Kucheria Cc: Linux PM list , gregkh@linuxfoundation.org, "Rafael J. Wysocki" , robh+dt@kernel.org, khilman@baylibre.com, Michael Turquette , Vincent Guittot , Saravana Kannan , Stephen Boyd , Andy Gross , seansw@qti.qualcomm.com, davidai@quicinc.com, LKML , lakml , linux-arm-msm@vger.kernel.org, mark.rutland@arm.com, Lorenzo Pieralisi References: <20170908171830.13813-1-georgi.djakov@linaro.org> <20170908171830.13813-2-georgi.djakov@linaro.org> From: Georgi Djakov Message-ID: <3e94a4fa-d3b6-488c-7247-f769cec2ab82@linaro.org> Date: Tue, 12 Dec 2017 17:46:53 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1439 Lines: 47 Hi Amit, On 12/08/2017 08:38 PM, Amit Kucheria wrote: > On Fri, Sep 8, 2017 at 10:48 PM, Georgi Djakov wrote: >> This patch introduce a new API to get requirements and configure the >> interconnect buses across the entire chipset to fit with the current demand. >> >> The API is using a consumer/provider-based model, where the providers are >> the interconnect buses and the consumers could be various drivers. >> The consumers request interconnect resources (path) between endpoints and >> set the desired constraints on this data flow path. The providers receive >> requests from consumers and aggregate these requests for all master-slave >> pairs on that path. Then the providers configure each participating in the >> topology node according to the requested data flow path, physical links and >> constraints. The topology could be complicated and multi-tiered and is SoC >> specific. >> >> Signed-off-by: Georgi Djakov [..] >> +inline int interconnect_set(struct interconnect_path *path, >> + struct interconnect_creq *creq); > > Remove the semi colon Thanks! Fixed. > >> +{ >> + return -ENOTSUPP > > return ERR_PTR(-ENOTSUPP); I do not agree here. It should be left as is, because the function returns int. > >> +} >> + > > This breaks the build with INTERCONNECT disabled in Kconfig. Ok, i have fixed this as well. Thanks, Georgi