Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp65065lqo; Tue, 7 May 2024 12:14:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUqRx1CSz0WFMv9g0kE8sPuavtIhJJu5qNi5cuUkPOOqM8JhSDlbLkrv13/8B8+oyopXv016hlsgfjggZjhAXz6AFkWT8Cm1XnorsBETA== X-Google-Smtp-Source: AGHT+IEZTYWBOLLCue4fqqv6JqCWxRZP81kndNrtSRRjdPzDDl+aQZ+5zfT0LjgqjqDZmRjNiHEY X-Received: by 2002:a05:6102:906:b0:47c:18df:9f3d with SMTP id ada2fe7eead31-47f3c3804bfmr431594137.34.1715109284353; Tue, 07 May 2024 12:14:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715109284; cv=pass; d=google.com; s=arc-20160816; b=CExPwjx14PYCLoXmFzvdVcV3MmS+ur4ajNifU7WALmbhzkMEpjTUFCxGZTs5LcFZu3 aatgqKIRTFK6GEB8Cl4Y6p1N2LATIyAawgteSIpRatX6ZMqEAZTMat6Ary0s46JfLtTS O7ntt7veTWk7qWhklFo8zpDFlJIsJCvJeix4vQ2buBseEI7tDc5KTAAxRvolYvXjVzuB ltG0lIr5HmwU2loyyn4l8rfhnRSV04XFf2d3OgjJcsxTCV00HV/Tc46wj1+RMjptFumS 52t67gID6lIq1gt5jZaZeuBE6AzefrlExq2L57+LieSaGcw+HF8H8NFfBl8OWjn57Jq1 cOyg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=VbijVnUM328R35N98Todm46tgr1T+BdCl2XSRajM8IA=; fh=JmYuWWT+z/QbhuPaGSOpU/k8ISq8LGcteE9Rqb9CT9o=; b=w/FwoYbFajUZBjHEZDlPTO7SGpOeFZZX808sfTSuRbNgoiD+J06uZ9x/OGDgAkvqCD ssrAJi/lIF3EZ6RP8QBQKHNMEWQIO6QDRWDBAceolDCUaqyj3CS1X8lJcy/r1tpYHjsv /VmnVMUmlLiSFkx18Frz7J7lJ+95P/VcF+6cQvnqy530oyHu18Ctg9T15y4K7jD7Twml mxrxBuHvPgWLQCrQrUZ+je5jxZ7L8l2V8Wb7NtZ6koCPlnXSFHsFGofX4Gm7oAVdTc3T bSA6i4/FlaMaL7Sdm6GBD1GUzpH2vgi9E3zaq9TagGCnuhiwCS1IXkffD1rvLcg0L5R0 PnRQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IoKT9AEi; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172045-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172045-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 11-20020ad45b8b000000b006a0b014c7aasi12351613qvp.356.2024.05.07.12.14.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 12:14:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172045-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IoKT9AEi; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172045-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172045-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E747A1C2431E for ; Tue, 7 May 2024 19:14:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 25DC816DEAF; Tue, 7 May 2024 19:14:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IoKT9AEi" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9549E16DEB5; Tue, 7 May 2024 19:14:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715109275; cv=none; b=DNetAm61EY1h8T5W+nNyCV3Pjd/qoHOWHwpzPk8Ew9Qn0Gy2/+K4PJ4jjJjXSh0IMIzJL14hJC5ho5IG66WDzwLBFKbZPtimAxTlPMp1OBl/3nraIPHTr6ytLWc1VpqUUumvwTmPctKpYh2xvdUTxYGKRl4KvAdxMlsgRwdr35k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715109275; c=relaxed/simple; bh=+eciEdgd6Kxs36Vv3ytpMLPQlDEH4wWJCOJ+bY3oaqs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ESz93WdRmNSNHowGLWbceTtIW5AgGV0pZpZSIDmMQr3NkXTK0opokmZieSRt3VeoSNm8o1GdQU62xfsEew1wnMtp+vxWWA/FzUNO7UwnazMYd9hBXQyACEVhG1F7DH8+DThH/L+skwYA9sMfmNdSaC4/JTkPtcN7mwz5qs2rvJI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IoKT9AEi; arc=none smtp.client-ip=10.30.226.201 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240505-pinctrl-scmi-oem-v3-v4-2-7c99f989e9ba@nxp.com> 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 >