From patchwork Thu Jan 16 14:42:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QXJ0dXIgxZp3aWdvxYQ=?= X-Patchwork-Id: 11337181 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B2F3C1820 for ; Thu, 16 Jan 2020 14:42:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 916C520684 for ; Thu, 16 Jan 2020 14:42:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="YB48G8WN" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726885AbgAPOmu (ORCPT ); Thu, 16 Jan 2020 09:42:50 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:58990 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726653AbgAPOmo (ORCPT ); Thu, 16 Jan 2020 09:42:44 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200116144243euoutp027043974f79128baca227cce76b5ea498~qZRWsiMiC2958429584euoutp02j for ; Thu, 16 Jan 2020 14:42:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200116144243euoutp027043974f79128baca227cce76b5ea498~qZRWsiMiC2958429584euoutp02j DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1579185763; bh=SFlSY5enk2NR7TvDU2U02lhcxcge/KC7e93n46VsVd8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YB48G8WNjCB4BoOHcDMmC7pvEFh8u4IJnDURTJh5q9MbchEPE8EIHwp0i8Skahtp7 JUUebEfbWkIyZudIanxh2Tf2drba6sOIScdbeBEdyKHmcjvZfHWUCMiQWDxVLv6SHj e8UyoomIBJuxfjTMdFhU8FvkX1w11MSTYbqruLi8= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200116144242eucas1p1d729d2f8bef381105f8bb0f77bcfdf0c~qZRWRkcSD1363913639eucas1p1V; Thu, 16 Jan 2020 14:42:42 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id B7.F2.60679.266702E5; Thu, 16 Jan 2020 14:42:42 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200116144242eucas1p2bf8b4df91355974c8c96778f4ec117f7~qZRV7yP4t1420514205eucas1p2f; Thu, 16 Jan 2020 14:42:42 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200116144242eusmtrp1ffba0c7783bbf33374fa349423bef34e~qZRV3QOBf0584505845eusmtrp1X; Thu, 16 Jan 2020 14:42:42 +0000 (GMT) X-AuditID: cbfec7f4-0cbff7000001ed07-43-5e20766272a8 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 95.64.08375.266702E5; Thu, 16 Jan 2020 14:42:42 +0000 (GMT) Received: from AMDC3555.digital.local (unknown [106.120.51.67]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200116144241eusmtip27154e268eeeee0ec6f2693221b6a5bc9~qZRVWCd1a2133821338eusmtip2j; Thu, 16 Jan 2020 14:42:41 +0000 (GMT) From: =?utf-8?b?QXJ0dXIgxZp3aWdvxYQ=?= To: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: =?utf-8?b?QXJ0dXIgxZp3aWdvxYQ=?= , georgi.djakov@linaro.org, cw00.choi@samsung.com, b.zolnierkie@samsung.com, m.szyprowski@samsung.com, krzk@kernel.org Subject: [PATCH v4 2/3] interconnect: Relax requirement in of_icc_get_from_provider() Date: Thu, 16 Jan 2020 15:42:01 +0100 Message-Id: <20200116144202.12116-3-a.swigon@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200116144202.12116-1-a.swigon@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrMKsWRmVeSWpSXmKPExsWy7djP87pJZQpxBrNnqVrcn9fKaLFxxnpW i+tfnrNaTN+7ic3i/PkN7BaXd81hs/jce4TRYsb5fUwWa4/cZXfg9Ni0qpPN4861PWwefVtW MXp83iQXwBLFZZOSmpNZllqkb5fAlbH783Tmgk8cFe2fFjA1MO5j72Lk5JAQMJF4+GEGWxcj F4eQwApGiW9Pe5khnC+MEgfudDNCOJ8ZJe4sO84C07L78XKoluWMEkf//WCCa1nx6gDYYDYB R4lJUx+A2SIC8RIft/1jASliFtjJKHHk7x8mkISwQLhE+7HVYDaLgKrEzZk72UBsXgFLidbp D6AulJdYveEA0FEcHJwCVhKfH6tClAhKnJz5BOwiZqCS5q2zwe6WEFjGLjHx/hVGiF4Xic2/ /0KdLSzx6vgWqJkyEqcn90DFiyWe7rzPCtHcwCixadkRZoiEtcSdc7/YQBYzC2hKrN+lDxF2 lDh05DILSFhCgE/ixltBiBv4JCZtm84MEeaV6GgTgjCVJHbN5INolJBoWn0NaraHxN9Zj9kn MCrOQvLMLCTPzEJYu4CReRWjeGppcW56arFRXmq5XnFibnFpXrpecn7uJkZg0jn97/iXHYy7 /iQdYhTgYFTi4Z0RpBAnxJpYVlyZe4hRgoNZSYT35AzZOCHelMTKqtSi/Pii0pzU4kOM0hws SuK8xotexgoJpCeWpGanphakFsFkmTg4pRoYlxyedSO8SuiE1o9FMV/Ee78yG9dOt9P/z+Ag 8jHt51Pnls5T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df91355974c8c96778f4ec117f7 X-Msg-Generator: CA X-RootMTR: 20200116144242eucas1p2bf8b4df91355974c8c96778f4ec117f7 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200116144242eucas1p2bf8b4df91355974c8c96778f4ec117f7 References: <20200116144202.12116-1-a.swigon@samsung.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org This patch relaxes the condition in of_icc_get_from_provider() so that it is no longer required to set '#interconnect-cells' to <1> in the DT, and therefore it is not required to supply dummy node IDs in the 'interconnects' property when node IDs are dynamically generated rather than hardcoded (statically allocated). In case of the devfreq driver for exynos-bus, node IDs are dynamically allocated and '#interconnect-cells' is always zero. Signed-off-by: Artur Świgoń Acked-by: Krzysztof Kozlowski Reviewed-by: Chanwoo Choi --- drivers/interconnect/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/interconnect/core.c b/drivers/interconnect/core.c index 0be1764d3528..5ea270af5ff4 100644 --- a/drivers/interconnect/core.c +++ b/drivers/interconnect/core.c @@ -335,7 +335,7 @@ struct icc_node *of_icc_get_from_provider(struct of_phandle_args *spec) struct icc_node *node = ERR_PTR(-EPROBE_DEFER); struct icc_provider *provider; - if (!spec || spec->args_count != 1) + if (!spec) return ERR_PTR(-EINVAL); mutex_lock(&icc_lock);