Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp440736lqm; Wed, 1 May 2024 05:42:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXtwoAHZutwevRoRMsqoMy6NO4GKJHFPJhs6xx7zRHAbewT1mnYIXK1DuvU2MpTXqy+c/hP64XmSu324U9loEIn8hUCwpa713fgCnoMwg== X-Google-Smtp-Source: AGHT+IGqRs1p35o2ct+5mtXfkoWFg/dCBU3UvxXDlTHtQlaqBM4HzhUJO7OmmYfvTa/MxIXJfGmI X-Received: by 2002:a05:6830:7311:b0:6ef:94f2:4e5f with SMTP id ex17-20020a056830731100b006ef94f24e5fmr2946085otb.28.1714567345544; Wed, 01 May 2024 05:42:25 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y20-20020a05620a09d400b00790667bbfbesi25227373qky.493.2024.05.01.05.42.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 05:42:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165260-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=@nxp.com header.s=selector2 header.b=Y4clWtdo; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-165260-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165260-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com 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 35B921C21914 for ; Wed, 1 May 2024 12:42:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E15C0537EE; Wed, 1 May 2024 12:42:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="Y4clWtdo" Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2065.outbound.protection.outlook.com [40.107.249.65]) (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 D21EC43178; Wed, 1 May 2024 12:42:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.249.65 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714567336; cv=fail; b=GmnWKEGi5GBA7+2a5EE6x1NFf5cfMGBcXa4aTan45wPVyjijJ9v80G0v6j5yfArccxO+d7m/Mww0IAVCFTCViF+jCrQgHdryRmOeFcZIWsWA9PSkGlrZPQljztH6TP4hvLevjEe516i+FQBtmcXrDw6srSYz6Ngv7ZoR0ScSs0Q= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714567336; c=relaxed/simple; bh=wAPU1rH4p4LBRKeytfzhyXKBLLRKo0d4Evx/2OJcTSc=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=uJqy1Pw1yRtQAKJrblRMgf4AVi9tOFHPPbDbPg0m8LrStnQ6d/FJe7x3bUtj+y9nCGVy3Ar0j2n1mOIJC+dNa717i/AkIEnyusWUVDwWTFTy+1pc69mq7y/lcponSg405+YBTKTRb8NDr2CVvNw0OGvZDHMzmYhFqmhe9fD3Edc= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=Y4clWtdo; arc=fail smtp.client-ip=40.107.249.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jkxIVN8VDIOcJMjKrUJN5AnhQ1o54bmr1l1wfiGA7BO9+PKaAs7NI6WW/L1Qhxv2Z3jjYCp8RaRqvzTeINUKVjkeB+wsVP52rzfOS7a8vxB9URlUqrVYqoM9UppSPhZKtpHt6RD8fXRhtCtTydKoRsD5j8BYJ534PfI/L/Dl2YdkhDLUO5Shos7oY3fc52lJBIgzq/wJXkFfZYDp0+glK+V4HapqyUqP1apbKySabmr3+FA1NeQhegYqJx36T/LyhN4Vy7rPN15EK/GE4VmeUKPOqzN7O5hFg64g1ibqxIEHJCe5dAv8NA3/laaDex+fTk5i0whoNVoQsQhRlDdBog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wAPU1rH4p4LBRKeytfzhyXKBLLRKo0d4Evx/2OJcTSc=; b=AMokFdMaizwyochtuS1VvGWwrV8tjeab5Xe02A4q+RB4dbmI6Cc3fO+VgPJZBnDFgU6Hxfd680ZaksroolqrWDFTLifwvOZHczl+1p4FmR2KDS6A5K1KHBcrCvZ8zI0b0dHlIFSfwS3mQIPYn07y+9BRtZlJ6rQh6tH/DEvC66wN+2yRB/zqjMNzSvUdSu2s8KF+BWRvgLsQhHV8Aj8Xl8X2u4agXR7o1fvyV5YrWYHbE+Z9uCAgRempjEBgUpQJgppQjmrJAF7KgFwqS5u6Th4tfK48EY2kENO54bs1dQxlB+cm9qw5eC13pISKKipx8aer/ddmDX7p3xFQzWyCvA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wAPU1rH4p4LBRKeytfzhyXKBLLRKo0d4Evx/2OJcTSc=; b=Y4clWtdoEhWchYLjfNUYoLYDaQTNrTivz7sZDAMFN4Voy5sTlR1DVyOJTYVB5ebxChQO95sr0eDmgVCvMtt1pR6VH3ssH4f7f/hB3yPKmqT1/LrYlfrFhn6sgSChRIDR19K3Y7ms5ZIZHrHXu5+LT5x1z2Z3hO72cglDa6xnQpQ= Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by DB9PR04MB9284.eurprd04.prod.outlook.com (2603:10a6:10:36c::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.36; Wed, 1 May 2024 12:42:12 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d%4]) with mapi id 15.20.7519.031; Wed, 1 May 2024 12:42:12 +0000 From: Peng Fan To: Cristian Marussi , "Peng Fan (OSS)" CC: Sudeep Holla , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Linus Walleij , Aisheng Dong , 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" Subject: RE: [PATCH v3 4/6] pinctrl: scmi: export pinctrl_scmi_get_pins Thread-Topic: [PATCH v3 4/6] pinctrl: scmi: export pinctrl_scmi_get_pins Thread-Index: AQHamSj4tA0oEn/LJ0GAeG40RoRvxrGCVjCAgAAAbEA= Date: Wed, 1 May 2024 12:42:11 +0000 Message-ID: References: <20240428-pinctrl-scmi-oem-v3-v3-0-eda341eb47ed@nxp.com> <20240428-pinctrl-scmi-oem-v3-v3-4-eda341eb47ed@nxp.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DU0PR04MB9417:EE_|DB9PR04MB9284:EE_ x-ms-office365-filtering-correlation-id: e757e81b-a310-4468-3588-08dc69dc1f64 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230031|1800799015|376005|7416005|366007|38070700009; x-microsoft-antispam-message-info: =?us-ascii?Q?NolM75K713U/8NIeE+N20HttvfYiuuPixV8SFXAW4i+acAFAV6XUlbVR5VSr?= =?us-ascii?Q?tbMFGZKzGLkEwX32Qqa/b655w42Vzt0E7Ks8ePgm1KzpQ/lKlBaZWHFkero2?= =?us-ascii?Q?tDnPwCBrtG2f0BG+YvoduB3CgSE0fO8aQxQF7IOjjXDvk0DOtu6BW3xt1UXX?= =?us-ascii?Q?UtKhglSQRC5Ds2PfWJE/6ZvzzWBCK/v+nzaR3U2dYI7mBr6ZvRvHwYngqv7O?= =?us-ascii?Q?mOjahFh9w1JNYWMPbhdE5yTbmWDcrvHUyL9oLVxn01joc3QZ6mqQO8zEkv9M?= =?us-ascii?Q?g76HiCOBJkkml6LSXCD75SiDDwrFPXxzysrQ621b/quI/r1clYy7pfp5HRYb?= =?us-ascii?Q?LvgXTXM6GrHKKa4OrPAyK42FM6908mxu1S+5swIRxUx/HsxcwmwYOHJMq8Xn?= =?us-ascii?Q?+0Nxv75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QE7sNMTp4?= =?us-ascii?Q?1qVXV6w/wc7JUwn8a/omXxxpieznMf6UKTBEfeZH+Oq3Gg=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(376005)(7416005)(366007)(38070700009);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?6VnV5vleNpgoA3+OUscKMcsgVFYwlVnPGvUo14aJtLSG5qMHgOupTOAh0lTH?= =?us-ascii?Q?EEQJ+dZPSW8bZnhPLb/ZW+nyqhwIrTQX9Evhw6XmqdMuL00UmE4wy6fgR/46?= =?us-ascii?Q?WFAbgKuFqUeHILS1lYLfCP70/7wBjctB/ROQNCRhkMg7+p0+b5xOIjOSczyw?= =?us-ascii?Q?0keNcUjvbx2J0JHZarbN3RRQAVpm97175ZKfsaDfsq1O1L6R0lIJXVUiKw8t?= =?us-ascii?Q?Ft2R5qq3t3ZZIkYAAWH/Zcr0NmcNjRjPuEW5/iN/3n72c2lNkyf79J/ife9B?= =?us-ascii?Q?bE0WIlmGvB8KZF0+D3VoVB9xzbjpPfEFupnezeh5Z/RprVLAHZalTWOEJaAR?= =?us-ascii?Q?hlGyZmudCcAP7FV2ci3e0ZbC6UVa5NX8VlxnQiokmQqlNT1syyCpcR8iI+xZ?= =?us-ascii?Q?uhW4Lxz/97bRdeQg0q+u1TeU9yUTazoe8q7Mhvb5k5YIBiJGNPQ6x+iuO9vO?= =?us-ascii?Q?2dX8q2E6FqE0gXcnoLSjvq97wdJXJ38qJd20VGStil5lZVbfkHBWHV2op4ij?= =?us-ascii?Q?ZloNVlO5JbpSYuBWWpiKMHo9IsgXHDoTWyKjygHr0TOcPEtcuWSsH8rLJAQt?= =?us-ascii?Q?A8WNs3Qg3tjzPlRNZhnjbDQdq4N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kZ8+XKj7RvpT?= =?us-ascii?Q?lrTaYVEGYoxGv1sQWLv0fWv9Hs5WUx4JZJW7kYWvm/pJlQin11NqbnWZP+Id?= =?us-ascii?Q?1sMG90zEmuQNNbLKgpM=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e757e81b-a310-4468-3588-08dc69dc1f64 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 May 2024 12:42:11.9904 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ERVKL2jgMKjgBIrzeUfqeAskrEQhBDgJsmk3ZTGwbL/1UtxJyAHWzpNG95l7NNMVASqCqpQA+30UzLLM/Soipw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9284 > Subject: Re: [PATCH v3 4/6] pinctrl: scmi: export pinctrl_scmi_get_pins >=20 > On Sun, Apr 28, 2024 at 01:07:50PM +0800, Peng Fan (OSS) wrote: > > From: Peng Fan > > > > Add pinctrl-scmi.h to include the function prototype and 'struct > > scmi_pinctrl' to export pinctrl_scmi_get_pins, so other drivers could > > use it. > > >=20 > Hi Peng, >=20 > so you wrote a new alternative SCMI driver using Pinctrl protocol@0x19 so > that you can just parse you custom DT bindings and then use the SCMI > pinctrl_ops to set the OEM extensions to configure your platform... > ...since your firmware cannot cope with the all SCMI stack footprint.... >=20 > ... you seemed to have solved the issue of having 2 Pinctrl drivers coexi= sting > under the Linux Pinctrl subsystem while attached to the same > protocol@19 node with patch 5/6 blocklist (if I get that right..) Yes, right. With blocklist and allowlist, two drivers could coexist. >=20 > I think this approach of a standalone SCMI alternative Pinctrl driver tha= t > handles distinctly NXP OEM extensions and DT-parsing is certainly more > preferable than the original series you posted months ago where custom NX= P > stuff were simply stuck on top of the Generic SCMI Pinctrl driver... >=20 > ...what I still dont understand is why you exported data and structure fr= om > pincttl-scmi.c to use it here; when NXP pinctrl is active the standard Li= nux > generic Pinctrl driver wont be alive, so not probed, so no data can be sh= ared, > the only thing I can imagine is that you are just trying to avoid duplica= ting a > dozen lines from the logic of > scmi_pinctrl_get_pins() into your new NXP driver. Yes, you are right, I just wanna avoid duplicating scmi_pinctrl_get_pins. >=20 > In this way, though, you are creating a dependency between 2 drivers, tha= t > are not even allowed to cohexist at runtime really (due to the blocklist = trick). >=20 > Am I missing something ? No, your understanding is correct. >=20 > If not, I think it will be much better to just rewrite that few lines of > scmi_pincrtrl_pins_get trivial logic into your NXP driver and keep the 2 > drivers fully distinct at all times. ok. I could write the pinctrl-scmi-imx.c local get pins logic, not using pinctrl-scmi.c to decouple the two drivers. Thanks, Peng >=20 > Thanks, > Cristian