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 77DC0C46CD4 for ; Fri, 22 Dec 2023 15:41:05 +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=5Ax8aLOW+mcT+SHiWSZJl7Ql9qypkxGgxWNWBh/NESw=; b=Sx2b4vtBNk1Tno k19o42/4aISG3ZRU8dcTi/1tyjQu0Y/f9g5JcnzU4yK88rgfYDMvR0e/hEfCXjFTx8fLcOid4MT1D 9ebtUa3pDfVnyHDE7qRRKWJPAGskP4QPRp89iCnr80v6QX+qtUIRZ5LfwTeJB/0drQRYgOpxZZ/VK 8pV1XyF4rVjyAde50XVRACJ1NvdEbxQnPACX9KbOtphWi2yO/xq5f05jMgiSo/eNTQqKyJf+/H/bB HHM+X9ZbCZnMJHo1w0KkF0vaNvyJdeumS89bc2V6jVC0LtwXKcFlZZxsfCLgY7S6zZ5/1TOzf5w5q 7j+lJ6fqEx0ig4VFG8Sg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rGhdi-006GXu-1a; Fri, 22 Dec 2023 15:40:42 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rGhdf-006GXW-1y for linux-arm-kernel@lists.infradead.org; Fri, 22 Dec 2023 15:40:40 +0000 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> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20231215-pinctrl-scmi-v1-3-0fe35e4611f7@nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231222_074039_715696_F558DA99 X-CRM114-Status: GOOD ( 11.23 ) 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 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel