From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9832F1DA23; Fri, 22 Dec 2023 15:40:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 090482F4; Fri, 22 Dec 2023 07:41:24 -0800 (PST) Received: from pluto (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3CE3A3F5A1; Fri, 22 Dec 2023 07:40:34 -0800 (PST) Date: Fri, 22 Dec 2023 15:40:32 +0000 From: Cristian Marussi To: "Peng Fan (OSS)" Cc: Sudeep Holla , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Oleksii Moisieiev , Linus Walleij , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, Peng Fan Subject: Re: [PATCH 3/7] firmware: arm_scmi: bus: iterate the id_table Message-ID: References: <20231215-pinctrl-scmi-v1-0-0fe35e4611f7@nxp.com> <20231215-pinctrl-scmi-v1-3-0fe35e4611f7@nxp.com> Precedence: bulk X-Mailing-List: devicetree@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: <20231215-pinctrl-scmi-v1-3-0fe35e4611f7@nxp.com> On Fri, Dec 15, 2023 at 07:56:31PM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > There maybe more entries in driver->id_table, just like platform > driver of_match_table. So iterate the id_table, not only use the 1st > entry. > I understand the need, but you dont consider the unbind/unload part. Moreover since I needed a similar mechanism for testing (multiple protocols in a single driver), I posted yesterday a patch that does this same thing that since I was using since ages but never posted (and it takes care of unload/unbind too.). https://lore.kernel.org/all/20231221151129.325749-1-cristian.marussi@arm.com/ Please drop this patch and use the above (that soon should be in -next) Thanks, Cristian