From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 768BAC10F1A for ; Tue, 7 May 2024 19:14:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CGo49QLO5YeDw0QGXn1yGsL54dwwT6nwey0cdC/gJwk=; b=FuADLr2Ky9VeLL gH2dlDF/XsYW8wRDVATxz9mZOBmM3SI8oQq9EuEzUKXJMs8I7cZ4sD+IroG1LL6aO5w3bdZ+Gz+1g GYSdJz76skgWu/7TTuMPnV4P739LqwYocPueYqD1y56sYjuIOhNdE5/0rD4fFv4HOzE3Sb9COLQy/ sUL41n0ZXQK77vUt6ZfXvI8/6RTvtvCFgYNfjy1bBidXrXz3tIwuUpxd4ZGSAN7F/D88rc+x9AhUM bFcHo1IMLTDWsDuW9z/QOTiFXv17yc1FHEsTbf6hS1VFyRQtvdFV5QsWy7ILLux1ZcgcWaDBDb7uO UXCNk4llg2LMyH68cdRA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4QGv-0000000CWNz-1sZn; Tue, 07 May 2024 19:14:41 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4QGs-0000000CWNJ-1HpD for linux-arm-kernel@lists.infradead.org; Tue, 07 May 2024 19:14:40 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 841FECE13D5; Tue, 7 May 2024 19:14:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2B07C2BBFC; Tue, 7 May 2024 19:14:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715109275; bh=+eciEdgd6Kxs36Vv3ytpMLPQlDEH4wWJCOJ+bY3oaqs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IoKT9AEi7R1nDq/QuH9bj6M4DsyZlA0+9MBGMCI2N8Y+Hy4XwxgQiApS3Jcq59PUF 4zjW0l3yF3UsPSXbFaUKOkrZ88nZjmdu+x3y+HfgDiK5uAepzc5QSWi37IQIUgtj56 1Fmb2MTTk4LMb7wXJhzuM6LkhPffVJuSQBL3t5oYA1W6UdaLis3ECdDd9Qc2sGCqJR NmMbw04y9Z5I41yYbtETnFP8VQ7F1XzbHoPjPRDV/zCBzS2pvjV6FtrC5ETdiZ3J/L l6XaciQ/8DYEi97qNw9B69u1+4OOlr96x3Uv5tUIpqIHwsKtUwNXqM8KxPZD0oVc5F lnBJXapdt4ZOA== Date: Tue, 7 May 2024 14:14:33 -0500 From: Rob Herring To: "Peng Fan (OSS)" Cc: Sudeep Holla , Cristian Marussi , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Linus Walleij , Dong Aisheng , Jacky Bai , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-gpio@vger.kernel.org, Peng Fan Subject: Re: [PATCH v4 2/3] pinctrl: scmi: add blocklist Message-ID: <20240507191433.GA908134-robh@kernel.org> References: <20240505-pinctrl-scmi-oem-v3-v4-0-7c99f989e9ba@nxp.com> <20240505-pinctrl-scmi-oem-v3-v4-2-7c99f989e9ba@nxp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240505-pinctrl-scmi-oem-v3-v4-2-7c99f989e9ba@nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240507_121438_555583_B61B140D X-CRM114-Status: GOOD ( 17.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, May 05, 2024 at 11:47:18AM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > i.MX95 will have its own pinctrl scmi driver, so need block > pinctrl-scmi driver for i.MX95, otherwise there will be two pinctrl > devices for a single scmi protocol@19. > > Signed-off-by: Peng Fan > --- > drivers/pinctrl/pinctrl-scmi.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/pinctrl/pinctrl-scmi.c b/drivers/pinctrl/pinctrl-scmi.c > index 036bc1e3fc6c..331ca20ac68b 100644 > --- a/drivers/pinctrl/pinctrl-scmi.c > +++ b/drivers/pinctrl/pinctrl-scmi.c > @@ -11,6 +11,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -504,6 +505,11 @@ static int pinctrl_scmi_get_pins(struct scmi_pinctrl *pmx, > return 0; > } > > +static const struct of_device_id scmi_pinctrl_blocklist[] = { > + { .compatible = "fsl,imx95", }, > + { } > +}; > + > static int scmi_pinctrl_probe(struct scmi_device *sdev) > { > int ret; > @@ -511,10 +517,14 @@ static int scmi_pinctrl_probe(struct scmi_device *sdev) > struct scmi_pinctrl *pmx; > const struct scmi_handle *handle; > struct scmi_protocol_handle *ph; > + struct device_node *np __free(device_node) = of_find_node_by_path("/"); > > if (!sdev->handle) > return -EINVAL; > > + if (of_match_node(scmi_pinctrl_blocklist, np)) > + return -ENODEV; Use of_machine_compatible_match() instead. > + > handle = sdev->handle; > > pinctrl_ops = handle->devm_protocol_get(sdev, SCMI_PROTOCOL_PINCTRL, &ph); > > -- > 2.37.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel