From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=117.135.210.2 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796043449; b=3up9Z5M/AxzcLMjdaNKkA5Cm3vFFRsdBGSm2MwTvzmTPb5iMxejrMadB0lLiXhEqLrk4 V8omT9RszRPtJRy7ZAhGKsHlcRQ3mVgRI3GesJr3u1yUbYRp96TFIj1eI8ZZ2xHHyA8xX rwvToSDpJq7H7/YVWXjEzVkzo8VBBg5akyvvDPtrZWF54z3snhtc12skWQugtnMtaFk8Y l2lsGWfuv0oDwrez4xv0b6J9G8k0yoXuuorIYK5ltStTc72IVL/k7zHN0bAfYFAvf6YdP AIm4Z5MByuqMp7oSP0+nyqpa4K7g2Pb7CgnXzl9cZEb3TugKaCniU/X/FkSHMyO4e2A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796043449; h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date: Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding: X-CM-TRANSID:X-Coremail-Antispam:X-CM-SenderInfo; bh=rl4fAH4mL11uRqgu+TtoABbcguijylakgdAH+mYTrDE=; b=l/Wq7JexsKQTcw4PqJTOHbKHBak4yLmGP4lh//zklXWAP9tplpl2QOPqr59h8tEJLDd1 sRUDQVXmz4fGyLmg+2fj7agM7Bw7bjEYOWiDFLS6gb1d6MsCHzn+91wY6mISZQS7XFLUy 7+5lbk4ixWQEUOYgWQKDfZsdUzxRfzuQhGQ9EFhMMAjkNVV1YbTbyFWexsQJvFw9sIPC0 /WBMVufmnmuniK8ctFpnNVeLUdUcp8EOk4Ey8AJgmCCoilIYmyLbVG/LLvlUcmQ1YQpAS eEX43rLIO+MTaHBeOI7csy1ftyMOwPmqM/cbMMYXnnzhBeIqX2srg9bHFSPYI6/Jlpw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=pass header.d=163.com header.i=@163.com header.a=rsa-sha256 header.s=s110527 header.b=CaFwhqe2; arc=none smtp.remote-ip=117.135.210.2 Received: from m16.mail.163.com (m16.mail.163.com [117.135.210.2]) (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 257C9606A689; Mon, 30 Nov 2026 12:57:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 257C9606A689 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, unprotected) header.d=163.com header.i=@163.com header.a=rsa-sha256 header.s=s110527 header.b=CaFwhqe2 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=rl 4fAH4mL11uRqgu+TtoABbcguijylakgdAH+mYTrDE=; b=CaFwhqe2yI8slg3oYq gdiNMfh63q5bYwFsB6xJUduRWjZUdzehkiPgmfNZ8VRaJeBtCCnIvpRaFb7tGUrw dXdhXF5v2B6Kpl8j7YFrY341O2sFrM38jni6g5b2DcwYvy4/jOFBSLI7h+/1EouR WkE0IkmmYyQAEfcd+2umPXNGw= Received: from localhost.localdomain (unknown []) by gzga-smtp-mtada-g0-1 (Coremail) with SMTP id _____wAX9RB6cg1rUjZnLQ--.57342S2; Mon, 30 Nov 2026 20:56:27 +0800 (CST) From: Pengpeng Hou To: hansg@kernel.org Cc: ilpo.jarvinen@linux.intel.com, vadimp@nvidia.com, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, hppiscas@163.com Subject: [PATCH] platform/mellanox: mlxreg-lc: select the I2C regmap backend Date: Mon, 30 Nov 2026 20:56:24 +0800 Message-ID: <20261130125624.77101-1-hppiscas@163.com> X-Mailer: git-send-email 2.50.1 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-Transfer-Encoding: 8bit X-CM-TRANSID:_____wAX9RB6cg1rUjZnLQ--.57342S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7KF13Wr4DAw18WF4fJry5urg_yoW8Gr48pa y3K348Ars3Kr48ta1jyay8uFW5AwnaqrWUCFyIv3W29as8ZFWDuwn0vFs3uasrJrs5Ja4j qrykKF1kAFW5ZF7anT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0pRsiSPUUUUU= X-CM-SenderInfo: 5kssx2xfdvqiywtou0bp/xtbC7RvYoWsNcnsOuQAA3X mlxreg-lc.c initializes an I2C regmap using devm_regmap_init_i2c(), but MLXREG_LC does not select REGMAP_I2C. The driver can therefore be enabled without the required register-transport implementation and fail to build. Select REGMAP_I2C so the backend is enabled at the linkage level required by this consumer, rather than relying on another driver to pull it in. The issue was found by our static-analysis tool and manually reviewed. Fixes: 62f9529b8d5c ("platform/mellanox: mlxreg-lc: Add initial support for Nvidia line card devices") Signed-off-by: Pengpeng Hou --- AI assistance: gpt 5 (patch preparation and review). drivers/platform/mellanox/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/mellanox/Kconfig b/drivers/platform/mellanox/Kconfig index e3afbe6..6925700 100644 --- a/drivers/platform/mellanox/Kconfig +++ b/drivers/platform/mellanox/Kconfig @@ -64,7 +64,7 @@ config MLXREG_LC tristate "Mellanox line card platform driver support" depends on HWMON depends on I2C - select REGMAP + select REGMAP_I2C help This driver provides support for the Mellanox MSN4800-XX line cards, which are the part of MSN4800 Ethernet modular switch systems base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244