From nobody Sat Sep 26 01:52:38 2026 Received: from m16.mail.163.com (m16.mail.163.com [117.135.210.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D8F9A36A36C for ; Sat, 5 Sep 2026 13:41:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=117.135.210.5 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788615683; cv=none; b=YDkaHnFYXaYW1ftjPkBwUbhA+sjerYxTGERGlGVpj45BQKde2bAl2A9jsRLRIZSWEjK7MsGtb3a5XPnFjoOOTimBKPN3FulNSC+mTarePPAv65cMB0//LWeoUTYObaAe4VffQ0FvAuuHVqmtENfb5/IlU3ONBUjH5pdxrgVxbmQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788615683; c=relaxed/simple; bh=D+yih9vLuUcIdBEoAKFCK9erjoUJS5S9ZmpeB1vBSIo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uGeRF/pnO74p6nmiRAw11iuuoFWF2ilteznOMhGLBKC9z1Wp7c+G+6a2vHr1DJ4/P5nrEtRZ6+ZIMAOuZKsOM/AmSXPmqXhmUo2syHkYF5iuDabFl/dzKHWDbQw0L9oFjPhoXiOqd8gXtKvSqf0U8jk10rj1UjgHdNsOtv+4DK4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b=IfFZoqlB; arc=none smtp.client-ip=117.135.210.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="IfFZoqlB" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=3A Bn9x+GRJCZGQVM/vtpHJYjaY9XQ+3Oq3XRKqm9WIg=; b=IfFZoqlBXupQvJZ6DA /N98ZSezJuMDLkeKWWHdKUzQzYzDI2m1RQm5AFkiJw6ou51lCuY5dSqbE+Zxh+yy q8xgJOKFCq4/JulWcM0LAZTlonPlqvK0YWHFPhnO5Kgq3GvcgSK/2nFwf9WivTbc fSgs0qko08zVSNIOoqhnY5mZI= Received: from localhost.localdomain (unknown []) by gzga-smtp-mtada-g0-1 (Coremail) with SMTP id _____wDX5tDlG5xqsxhkAw--.24726S2; Sat, 05 Sep 2026 21:40:54 +0800 (CST) From: "hpp.iscas" To: Lee Jones Cc: "hpp.iscas" , mfd@lists.linux.dev, linux-kernel@vger.kernel.org, Aaron Kling Subject: [PATCH] mfd: max77620: publish I2C and OF module aliases Date: Sat, 5 Sep 2026 21:40:51 +0800 Message-ID: <20260905134051.66545-1-hppiscas@163.com> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: _____wDX5tDlG5xqsxhkAw--.24726S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7Zw1fuFW5CFy8Jw4DAF4fZrb_yoW8Wr18pa y5trWYv3yxWF4a9FW7Wa18ZFn8Gws5KrWUtryUWw1IqFsxAFy7XF40gF1Ykr15XFyfJr13 XrWUt3s8Cay0q37anT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UrDGOUUUUU= X-CM-SenderInfo: 5kssx2xfdvqiywtou0bp/xtbCxgbBimqcG+YndQAA3S Content-Type: text/plain; charset="utf-8" MFD_MAX77620 became tristate without publishing any module alias for the I2C driver. Device Tree I2C clients emit OF modaliases, while legacy board-info clients use the existing I2C IDs, so both supported enumeration paths need module metadata. Publish the I2C table and add an OF table for the three documented compatibles. Keep i2c_client_get_device_id() as the source of chip data and leave MFD child registration unchanged. Fixes: 0d084ee9ba87 ("mfd: max77620: Allow building as a module") Signed-off-by: hpp.iscas --- drivers/mfd/max77620.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/mfd/max77620.c b/drivers/mfd/max77620.c index c4f89a9..6a624e6 100644 --- a/drivers/mfd/max77620.c +++ b/drivers/mfd/max77620.c @@ -699,6 +699,15 @@ static const struct i2c_device_id max77620_id[] =3D { {"max77663", MAX77663}, {}, }; +MODULE_DEVICE_TABLE(i2c, max77620_id); + +static const struct of_device_id max77620_of_match[] =3D { + { .compatible =3D "maxim,max77620" }, + { .compatible =3D "maxim,max20024" }, + { .compatible =3D "maxim,max77663" }, + { } +}; +MODULE_DEVICE_TABLE(of, max77620_of_match); =20 static DEFINE_SIMPLE_DEV_PM_OPS(max77620_pm_ops, max77620_i2c_suspend, max77620_i2c_resume); @@ -706,6 +715,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(max77620_pm_ops, static struct i2c_driver max77620_driver =3D { .driver =3D { .name =3D "max77620", + .of_match_table =3D max77620_of_match, .pm =3D pm_sleep_ptr(&max77620_pm_ops), }, .probe =3D max77620_probe,