Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp879645rdb; Fri, 22 Dec 2023 07:41:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IH4pteumbVfF/AhOuAu56lfnhcgel9c/cwfxgn7MrPgmoSNnJGdGsDkv/wkkLh3V9XfLrH2 X-Received: by 2002:a05:6a20:72ab:b0:195:205f:ea3e with SMTP id o43-20020a056a2072ab00b00195205fea3emr1229770pzk.45.1703259678821; Fri, 22 Dec 2023 07:41:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703259678; cv=none; d=google.com; s=arc-20160816; b=YYgPrnNYKsciuCESkItYPqMXNl1NdihRpcOHzCArM2R8M6r1AH2AKvn1pnSTZ4Uno4 Fe3RnbfiKkPc6jdcllZ3CQRBDfpxE9Tb2afaV+hdiQor8OjC99r65xXeRaWjPRe75vsq 7H3q8uLuDEd0DvU1OJhlX3k2ZO873gCDS1rDUo/V/gtTfx/tID1EDxDmW718cVIs6nFU iOEXAEu8TRwTAmhSUE98F6sr3eX+leYr2hNYo4RrHeQStYJjlil9GhPRpwl9mBfRLdld QMfCtjFv7rc/S+4rw7NdT2mjaHoVSCuJ04iKKiT0R8cXboBWHw0866kAiSyXOzlA7BJO HNiw== ARC-Message-Signature: i=1; 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; bh=ahnkxhKhfdz3VANw2r9whZ8kn0AnYwG1vL/kCvHDbQ8=; fh=jBW8KDWSI25Hlsqh5xq/VCu7Qfr59m5k4B6O38VhCD0=; b=rpxqjrX++GlI/ApPOF6vfFn+L5ncbPQ2881cTpyOH0H9kSL+uKq5XhKufslgVUcr84 1jOa4d2neSGEPKHdNpmHqaSJzVukxSEmFS9XHEXpyJ1Kx+BX2s3QfK4S4TXDOqUUTOlF rZAOO0obVS6/MDRrZJ+N4uugPCIK+k1R5LSXWizhZTf0Wq330oyojfbSwPeKS9dzs5Tf 8DQOEeTCJ24vXKIYmcB/cCk7CRZecoaJC5LuNpLxUcAe/FKcioMlHn7cBxeR4Mm36e4j nDX9UPZ+EeogBgbuS5ir5KnjzEWX37dhxoJ+ekSquVyxqPY9fU8oRukIzk+71ruypowJ TT2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-9849-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9849-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id h8-20020a17090acf0800b0028b77fe22eesi3572880pju.146.2023.12.22.07.41.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 07:41:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9849-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-9849-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9849-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 6A019B2294E for ; Fri, 22 Dec 2023 15:40:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 182E923773; Fri, 22 Dec 2023 15:40:42 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org 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: 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: <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