Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4575858ybl; Sat, 21 Dec 2019 09:23:47 -0800 (PST) X-Google-Smtp-Source: APXvYqzQvmggRKDRKHq4pxGAzeW+D/PmmSZgQjCvCDR275kVNueK9d5Z7gPN+n6yeoyWHCygFZDj X-Received: by 2002:a05:6830:4c2:: with SMTP id s2mr22712983otd.144.1576949027214; Sat, 21 Dec 2019 09:23:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576949027; cv=none; d=google.com; s=arc-20160816; b=JKflwzTPUR/h/dNZJLdlySvzKUhY0iqeC6/R8nhW5apS2675rfY43+EpgrEnfJ7nyg vsJ1FYFgeVLBM0w+MhblNtTNKNwo39p9J/M3xFm9e8HLDGmWwYAv4fk+Zyb5GhYT3Gsq 1K/ks8SN8LRJkkuK61TOS6zDMqU3Ii+h65LQExbHIcN/w4/cbevSQbSopvWxWq0MvjQI U+ZqvqP0tABzHiHb5M7Crcq2g4jADDnAsFzOhbx0aj2cOXMIPFJn+QCNPixwoDyK9dNZ OX8LW8GXdL0YP4RZGmjBvNlhjdRhRpqkm8B5MYk8MZZ8ldjb1nkv2qOu5cH2VEQTs89W 2pUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=YxCu3CrGjGUM26juLmNHSkWcRpCnZN7yr8OLpAZg1qc=; b=O0Ad0LqHk5N766FW6XdKDbllHjHO92G4JOibYAK/6DRL7L3VJOxMK3cto/MbigcqAv mUN7O3qwuEzldWG7Xr4neyd/+bXkAAJLsG/LrYPQ55/qjRX98YGJLAzlKehqtceweHFV c5xdEIBCfJd5P2+jVX8Wr8U3LQpEsEaOTOlkYtQEX11NjPnNQ9d9M2l+PFtP13ZNYqFE uD3vvlDLkTabMw5KR5K+bYgldJDtljrGO2Lu4tIFYNC8EBdFllxr8W1+STFrEasDrKAe O25Jboy9VTjkD9sN2M6n1LxUuFWak/Xua2Q3LGV7WWL66xBXgrLJGELFM7XsH0918fA0 i2Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=x96NU+fx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m25si7217117otn.208.2019.12.21.09.23.35; Sat, 21 Dec 2019 09:23:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=x96NU+fx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726885AbfLURVE (ORCPT + 99 others); Sat, 21 Dec 2019 12:21:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:48028 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726319AbfLURVD (ORCPT ); Sat, 21 Dec 2019 12:21:03 -0500 Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9080521D7D; Sat, 21 Dec 2019 17:21:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576948862; bh=ygQ+LLKc6onkKQohUjB4VeER1S5nL8ISyedIw3igvFQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=x96NU+fxBzmg38mKk0TGitI2DkyJtAaQKY/5VTvgo818kI3m0Av9s6mvDML47ta94 P1eHg6Bp/jv5P0xoqarNn0EvL7tEDDphKBnvcv1WmbmRKyCHkjtqHCfJCQwI+86fG9 w1y42YhGVRdJIfTYdIwHvOCJNRQyDKTs2czaTwV0= Received: by mail-lj1-f169.google.com with SMTP id a13so13238963ljm.10; Sat, 21 Dec 2019 09:21:02 -0800 (PST) X-Gm-Message-State: APjAAAXmnrWyTbJZoTZm1CArPqxhG91zVQlrxv5/ufx0j2uGkmkYZCYz 2uX8pAVJoTFlvnXkfXTppSEf+lpm6npC++VPFus= X-Received: by 2002:a2e:8551:: with SMTP id u17mr8218439ljj.165.1576948860712; Sat, 21 Dec 2019 09:21:00 -0800 (PST) MIME-Version: 1.0 References: <20191220115653.6487-1-a.swigon@samsung.com> <20191220115653.6487-3-a.swigon@samsung.com> In-Reply-To: <20191220115653.6487-3-a.swigon@samsung.com> From: Chanwoo Choi Date: Sun, 22 Dec 2019 02:20:24 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH v3 2/7] interconnect: Relax requirement in of_icc_get_from_provider() To: =?UTF-8?B?QXJ0dXIgxZp3aWdvxYQ=?= Cc: devicetree , linux-arm-kernel , linux-samsung-soc , linux-kernel , Linux PM list , dri-devel , Chanwoo Choi , MyungJoo Ham , inki.dae@samsung.com, Seung-Woo Kim , Georgi Djakov , Leonard Crestez , Marek Szyprowski , Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, Dec 20, 2019 at 9:03 PM Artur =C5=9Awigo=C5=84 wrote: > > This patch relaxes the condition in of_icc_get_from_provider() so that it > is no longer required to set #interconnect-cells =3D <1> in the DT. In ca= se > of the devfreq driver for exynos-bus, #interconnect-cells is always zero. It doesn't contain why don't need to require it. If you add more detailed description, it is better to understand. > > Signed-off-by: Artur =C5=9Awigo=C5=84 > Acked-by: Krzysztof Kozlowski > --- > 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 e6035c199369..74c68898a350 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_p= handle_args *spec) > struct icc_node *node =3D ERR_PTR(-EPROBE_DEFER); > struct icc_provider *provider; > > - if (!spec || spec->args_count !=3D 1) > + if (!spec) > return ERR_PTR(-EINVAL); > > mutex_lock(&icc_lock); > -- > 2.17.1 > --=20 Best Regards, Chanwoo Choi