From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D1B7606A32C for ; Thu, 3 Dec 2026 11:37:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=v3aNCj34; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=O3fRxeAh DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=QrxkKm/ciMVbnZtvl24LfqK0OTWM0/832rWzg+LeKJY=; b=v3aNCj34wPECu7YrnzdrVA2zC2 dmm1wfSXnJOSIkLXMczKzhT0bLnh00DIykiG63lnpApyeJPTY/LYNiXPgF0FKMVy7VcvFjsneXW03 sa1a7sj164UizVvh0jR2B4FMfcUa47BbgJhLdL4QDQ/YAM81PHvvOwblku+igoEceq49EcHOQ6vhS jy2qwqQvrTUjDB1Na22XyO6LBSSshrXi61TmO83ntLoO1VfkRMTAnUbP03mpkd9I0oRpPuwKnqfcJ cg56Xv63T1q7MuSYTUOlVNLHDGn+siVwx4c+L3TKYwA1nAbPA7S1pOHwQqj0+Xlcd2bbzzCZXRb20 qW3m1FZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ57Z-0000000EP4u-0V3W; Thu, 03 Dec 2026 11:37:05 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ57U-0000000EP3A-25qf for linux-arm-kernel@lists.infradead.org; Thu, 03 Dec 2026 11:37:03 +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 4202114BF; Thu, 3 Dec 2026 03:36:56 -0800 (PST) Received: from e129823.arm.com (e129823.arm.com [10.2.213.3]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 378953F7D8; Thu, 3 Dec 2026 03:36:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796297819; bh=6arLCfIEStufuydUqXClaBHGKCsZPs76IJU4rxp3EJw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=O3fRxeAhELmtyiakCxEwiBciE/uw64FNit4aVvR0fad+eQwzMtODK/uTvqXTbojkw LBsTyHQ+8/J68ViEpLTbGXq8maNQfT2wa1ya7db1kvkVT+SywQbeJOj4slLleceUsX kgIXTYapD5Jsd4zg1i2YQXBKFqU9hZJNHxnGjGQs= Date: Thu, 3 Dec 2026 11:36:52 +0000 From: Yeoreum Yun To: Jonathan Cameron Cc: Yeoreum Yun , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Lorenzo Pieralisi , Catalin Marinas , Suzuki Poulose , Steven Price , Sami Mujawar , "Aneesh Kumar K.V" , Jiri Pirko , GONG Ruiqi , Jason Gunthorpe , Mark Brown Subject: Re: [PATCH RFC v2 1/6] firmware: arm-smccc: introduce match function Message-ID: References: <20261127-firme_interface-v2-0-ab88b2d0b4e0@arm.com> <20261127-firme_interface-v2-1-ab88b2d0b4e0@arm.com> <20261202141704.00003432@oss.qualcomm.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261202141704.00003432@oss.qualcomm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261203_033700_643649_F710CA1C X-CRM114-Status: GOOD ( 17.89 ) X-Spam-Score: -4.4 (----) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-10.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Wed, Dec 02, 2026 at 02:17:04PM -0800, Jonathan Cameron wrote: > On Fri, 27 Nov 2026 15:28:31 +0000 > Yeoreum Yun wrote: > > > Somce of protocol based on the smc is not enough to match smccc-device > > and smccc-driver with func_id only. > > > > For example, firme interface will create smccc-device per service > > and this requires to chech whether firme smccc-device is for each > > service. > > > > To resolve this, add match function and match parameter for device > > which is set at the time of smccc-device creation so that smccc-driver > > could match proper smccc-device with match parameter and driver specific > > match function. > > > > This match parameter is defined under smc func-id. IOW, devices which > > share the func-id should have the same type for module parameter so > > that each driver under the same func-id can check extra one with > > match parameter type. > That last sentence doesn't quite work. Perhaps > > each driver can filter first on func-id before evaluating the > match function. Might with below: This match parameter is defined under smc func-id. IOW, devices which share the func-id should have the same type for module parameter so that each driver can filter first on func-id before evaluating the match function with match parameter. > > > > Signed-off-by: Yeoreum Yun > Other than that this is a reasonably neat solution. Whether > it ends up flexible enough in the long run for all the crazy stuff > that gets added to the spec remains to be seen, but for now > LGTM > > Reviewed-by: Jonathan Cameron Thanks! -- Sincerely, Yeoreum Yun