From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796297820; b=n+wERiompDSTRl5Ix3iKyvks+LOM6YyeNrN+GiJWw3vHk2Zq0/3bucQGTxK+JtE2926Z r/DSJtDT/gBaxtlMJX3ihvWixFj5tltOei46fryZ/Wxtxo5LR4+5PQVKbwTrnIg9EULRq gzaNrPWLTtGSdwnMMcSzh414p1XTTOJjtEJ8T3Q8UcN/MLneAMM/4xVmqi2Iww36UW3W/ 1Nef9bRQQrDA+rSXAlitrQ1c8yYdnZuvTl2QLkX/5XWcA6rcP6+CWwEbdaDA65lsBU+8o txM9i2CDbhNf1Cbez8vKM17ebOk5+vWrpLYGoPKRKBiP1lld61AZIuK78g7lZEbDIDw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796297820; h=DMARC-Filter:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=QrxkKm/ciMVbnZtvl24LfqK0OTWM0/832rWzg+LeKJY=; b=P+XgtCr5oX7M7ajqWsZiIhJ/vIfmzM/70Byl6n09JZumawoo5sHMujdkhUuj74ZIb4mA kB4Qn47qR+MIr50Zugk4/ryEkYZZiqqGx6b0BuwyMF7Atejfo+9i62i8Bh87kpVk8WS+Q ufmcH6/hrfkKQMAILFZ+0RCvC+u/ogPCesEJqGRREOazGQ77iMOcrNcfuqOCcDWwY91LQ ZtcffdHAJ6ectNzgsyTtPrLCwnJnZAQmpqDYKoWlDSr0ujy1JPzJMhUXyVxDKuPfC1ihg PxPBTIOnUns0M+ITFNQoDDeEX8gEuAgJX5XTa1/xxt+8fzXci+kdvfJ1jlMFTVXKpSQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=O3fRxeAh; arc=none smtp.remote-ip=217.140.110.172 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C8304606A322 for ; Thu, 3 Dec 2026 11:36:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C8304606A322 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=O3fRxeAh 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-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261202141704.00003432@oss.qualcomm.com> 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