From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796286066; b=yDePojBspfAqipBxHKQ6UEzv9af87lbxdwL5BSuJc9OLIClwjHA2VVTxkLTjChbDPQCo /CkbheeXj2qdlbw2x/eMZOAF1bYGGucglrV1SLSd4/ZG+SrAZrBXgPmfm5AaNkK5c6LyR ij8IHNDhIC9vtAuiMDlk9FmWYiqJ9w0FuBYMDqMx9fpkTzEz/c7ct80P8xYFMCl4rFo9w qA9G3ePrUcNAb+AV7IXi2qiLrbvETXgH5L5XCHQZI3uFyZjPBO1k1WkOLhXA8buSB2zr6 aGeW5ILKLfhXaedSrc2WoN39IYskmAOl0iEs8pbknf1H9oBp8cfk9lGMGSVOSMJkTFg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796286066; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=ZMn8HttTjS2h45SgK+0Hht2+1hBa6pwyOTVD/Mn+b6Y=; b=EE29NqCb3tkXmlOzUefAUJxCSyNukovzwHEy4gaom668tEZFjcrgNi375RXPAvRiyyM6 PH413/PoETJvz3F7BH+BOVws/Zn7p/TijWP40EEG1RBn1ej4s/uLVaerA7vnXhEVSbiL+ NBWVQH3I8x0yw1laVCCvtcd0xUa6i2YDHRgnMhqdHYwXxkDDWYf5qQlwE1GoqF3lmzaeB g1FphNswOaTnMNPihK0wGA5YpdXuIFuFPrLrj0ReDx8F6Vn50Ljsj2dYQ9XWkJjnzxaXX bXi+2hwuIeXgo5SC+HQA//EeZcVa95ODI5r+m+DSjzsgsnbx6BkKEyCH6WL55RmCK3Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DmKTnjl3; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E420606A322; Thu, 3 Dec 2026 08:21:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DmKTnjl3 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A61D61F000C1; Thu, 3 Dec 2026 08:21:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796286065; bh=ZMn8HttTjS2h45SgK+0Hht2+1hBa6pwyOTVD/Mn+b6Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=DmKTnjl3aNXwXYvWs6s7sxvig1rNob9XHyq7VVt1WTScKDGLSVQKfrxMwrPu8K8Zs YxVHr3aR1lkWDXaAQSmfwFgJ0FiBykIb4akUVLoGxQYW5Yat7Wo2+mEbChsldclZHX izcvvnoZpDKbtS9Jw8nWFz/8xTqZH5oSIDCW2h5X1zo/WinnbsN7BLONR/4S/ji/Oz zLT27iUw8WUCpfrkGulKOtHDKWg+DJYhKkwmpDrw9FxlnG2BmSnVWdmVhXUQ74XOjz o3lNzXJZY5xisBAxeKRh4qiXwk2fIrLoH6SsQRpAkMvobySTUQDb8d9VzWoHPjDPVD hzpqn4b7rtpYg== Date: Thu, 3 Dec 2026 08:21:01 +0000 From: Lee Jones To: Pengpeng Hou Cc: mfd@lists.linux.dev, linux-kernel@vger.kernel.org, Aaron Kling Subject: Re: [PATCH v2] mfd: max77620: publish module aliases with variant match data Message-ID: <20261203082101.GJ98551@kernel.org> References: <20261014032139.10971-1-hppiscas@163.com> <179198324452.839288.10919510385745503720@kernel.org> <20261203032653.54714-1-hppiscas@163.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: <20261203032653.54714-1-hppiscas@163.com> On Thu, 03 Dec 2026, Pengpeng Hou wrote: > Hi Lee, > > You're right: the array only provided addresses for enum values. It > isn't needed to describe the variants. MAX77620 is currently zero, > so treating a NULL match-data pointer as an unknown chip would also > reject MAX77620 if the IDs were cast directly. For a revision I'd > reserve zero for no match after checking users of the enum, and use > the same nonzero IDs for the OF and I2C entries. > > I'd use .name and .driver_data in the I2C table and capitalize > "Publish" in the subject. On the registration point, MFD_MAX77620 > is tristate, but builtin_i2c_driver() doesn't supply an unregister > exit path. Publishing an alias is about loading the driver; it > doesn't make removal safe. I wouldn't switch registration macros > as part of this change. Can you please quote your replies. Reading through them without context is near impossible. By all means snip the parts that aren't relevant, but please don't snip everything. Thanks. -- Lee Jones