Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1373958ybk; Thu, 21 May 2020 05:30:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+dH5ybAtfyzgeWIJnuW0E2Pz3WQ7HmIEKf4Zj/adYaYnemwmfuUoyFNloRpOEXyClX24S X-Received: by 2002:a17:906:9142:: with SMTP id y2mr3484107ejw.205.1590064250760; Thu, 21 May 2020 05:30:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590064250; cv=none; d=google.com; s=arc-20160816; b=RAFOlWgS/BihZd3tYBwbVjExFsb+gO+q3JNlwZsbKsmXGXLmFV+UZ3UZznjYX11Ppl p5Ggq6iTa0mj/1LJunSw7xRowWIKi684e2F2hdnyzM5QUjAdSKuV6f6tu+cunDvIRngl ITYffOOia4y0PeMfWjkgo5BlO9S4GYtZrRzF/hwf9YNFxxpMrj2Ui17wuSOiaPKlNXlr bbzi7cSetKpQk3c8olLIrrvgQwIkPmO5AM/lCbvkmpYdnklgIJlzwN/dor5TqLndCtU3 Sh6HrHfSg4BF/RmZo1G2QlaIMsNpkuqVIVgJ6PVXOgjOWE0MDohHFREGdah5Q/16B7MI 1DEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:mime-version:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=QRNTjhidHU9c61aZQR469tlN0NU7e/1LVLkXIqdFPz0=; b=mfXg0i2Kuw0k/d7+NBaLUZxH43Cn+FOPzdp0kaADrSODbF5bFDAMaeSSHbod0jXuBo vrbKBveTo3untXbXi8K0N7SUEGpaM3EqQd3Scx2DORtSR/SXlzh0+INVAclPvZ+4NH0g 3RfgNSmVNndHHxwfZKaq5WJaqqgqSlyUffyUcHuKUJ7FlsnjGz2yFvCyeTdUy4TPlB10 Ra1B2viejM+GyH/U+Nc5au5iyx8GIYzb6LCtqj4tG04MFmaXbkf5GEJ19yG2JiN/ft7B 2w6hfQVPSwcUyIAnuyPtzXDAKKFZbt0Oa0kO3wNrTKAFYeDqrHIQd0rP5gOfTf4wQhL3 qLyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=JaOOYRP+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x15si284136ejc.190.2020.05.21.05.30.27; Thu, 21 May 2020 05:30:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=JaOOYRP+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729318AbgEUM27 (ORCPT + 99 others); Thu, 21 May 2020 08:28:59 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:57952 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729304AbgEUM26 (ORCPT ); Thu, 21 May 2020 08:28:58 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200521122856euoutp029d7d131ac15aa60d3dc1f428bce4739e~RCuho1aU20385503855euoutp02q for ; Thu, 21 May 2020 12:28:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200521122856euoutp029d7d131ac15aa60d3dc1f428bce4739e~RCuho1aU20385503855euoutp02q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1590064136; bh=QRNTjhidHU9c61aZQR469tlN0NU7e/1LVLkXIqdFPz0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JaOOYRP+Hc2xS4bo1vGst62O3ZncqijEKA+n5XaeC7b25B5oER/foDK7gUENszboa xn4U1vxu92B0Xz1v/Hs+I1s/2qevC7cV+ENZ3UdC35MP/vOKyf3uhcPLmSM1NTUsP/ 7VzWH0oVD1QT85SXIwgpBXpUIY4XOGqilVb7UzUI= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200521122856eucas1p2c876ff8e8f4abf8bb8cd57c30b8adab7~RCuhIj5K-2589225892eucas1p2l; Thu, 21 May 2020 12:28:56 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 8D.E3.61286.80476CE5; Thu, 21 May 2020 13:28:56 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200521122855eucas1p2b8dec2202f9913c80d93aa01842ea83f~RCug2ymOr2553325533eucas1p2n; Thu, 21 May 2020 12:28:55 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200521122855eusmtrp162da15abce02538d7853c0cc90ff84ca~RCug2LT4S2920829208eusmtrp1d; Thu, 21 May 2020 12:28:55 +0000 (GMT) X-AuditID: cbfec7f2-ef1ff7000001ef66-c4-5ec67408bcb6 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 09.8F.08375.70476CE5; Thu, 21 May 2020 13:28:55 +0100 (BST) Received: from AMDC3061.digital.local (unknown [106.120.51.75]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200521122855eusmtip2126c1e50b9d4023bf612017538bdc190~RCugZRkp81167511675eusmtip2j; Thu, 21 May 2020 12:28:55 +0000 (GMT) From: Sylwester Nawrocki To: georgi.djakov@linaro.org Cc: a.swigon@samsung.com, cw00.choi@samsung.com, b.zolnierkie@samsung.com, m.szyprowski@samsung.com, krzk@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Sylwester Nawrocki Subject: [PATCH v5 2/3] interconnect: Relax requirement in of_icc_get_from_provider() Date: Thu, 21 May 2020 14:28:40 +0200 Message-Id: <20200521122841.8867-3-s.nawrocki@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200521122841.8867-1-s.nawrocki@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrJKsWRmVeSWpSXmKPExsWy7djPc7ocJcfiDNo3cVncn9fKaLFxxnpW i+tfnrNaTN+7ic3i/PkN7BaXd81hs/jce4TRYsb5fUwWa4/cZbc4/Kad1YHLY9OqTjaPO9f2 sHn0bVnF6PF5k1wASxSXTUpqTmZZapG+XQJXxvGXE9gLWrkqFi06xN7AeICji5GTQ0LARGLX 4pdMXYxcHEICKxglzvY0MYEkhAS+MEqsXK8AkfjMKLHs4012mI73F58zQySWM0p86XjECuEA dSxqbGABqWITMJToPdrHCGKLCMhI7GmaBFbELNDEJHFz8QawImGBcIlLDd/AbBYBVYlnneeA dnNw8ApYScx/VQqxTV5i9YYDzCA2p4C1xLZjU8DO4xUQlDg58wlYKzNQTfPW2WAXSQjsYpc4 8/M2I0Szi8Sev5vZIGxhiVfHt0C9ICNxenIPC0RDM6NEz+7b7BDOBEaJ+8cXQHVbS9w594sN 5CJmAU2J9bv0IcKOEiealjOChCUE+CRuvBWEOIJPYtK26cwQYV6JjjYhiGoVid+rpjNB2FIS 3U/+s0DYHhIH2/vZJjAqzkLyziwk78xC2LuAkXkVo3hq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+17BGLjj1dwbHlfomg 8O4yBz2Xyz27i6eJ313ktd9nzZvalKoo7xyr+56/1ZuY845Ztqz76Jdrxbj2utaxec0yAeUW TB1BKxZsKmPflGBUvr0k2P6Xhu2LM1vYZx7cbqZybdvG9NrJb4Pt2tYJXjl19O/c9tzl33ex pZsosRRnJBpqMRcVJwIAVy8Mo74CAAA= X-CMS-MailID: 20200521122855eucas1p2b8dec2202f9913c80d93aa01842ea83f X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200521122855eucas1p2b8dec2202f9913c80d93aa01842ea83f X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200521122855eucas1p2b8dec2202f9913c80d93aa01842ea83f References: <20200521122841.8867-1-s.nawrocki@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Artur Świgoń 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 Signed-off-by: Sylwester Nawrocki --- 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 1b51e0c..6a342ef 100644 --- a/drivers/interconnect/core.c +++ b/drivers/interconnect/core.c @@ -339,7 +339,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); -- 2.7.4