[PATCH v2] usb: typec: hd3ss3220: select REGMAP_I2C
From: Pengpeng Hou
Date: Wed Dec 02 2026 - 22:30:37 EST
HD3SS3220 initializes an I2C regmap in probe. Select REGMAP_I2C so that
enabling the driver also builds the transport that provides that
initialization.
The issue was found by our static-analysis tool and manually reviewed.
Fixes: 1c48c759ef4b ("usb: typec: driver for TI HD3SS3220 USB Type-C DRP port controller")
Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Pengpeng Hou <hppiscas@xxxxxxx>
---
Changes since v1:
Mark the fix for stable, as Heikki requested.
Previous version: https://lore.kernel.org/r/20261130125841.77570-1-hppiscas@xxxxxxx
Codex assisted with patch preparation and the changelog.
Current review: Codex (Assisted-by: gpt 5).
Static review only; this revision was not built.
drivers/usb/typec/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/typec/Kconfig b/drivers/usb/typec/Kconfig
index 2f80c2792dbdaf8bc7e161924326eb9230569a76..98c7aa25545b69157f86e21f5aea14f6ae2b1a6d 100644
--- a/drivers/usb/typec/Kconfig
+++ b/drivers/usb/typec/Kconfig
@@ -81,6 +81,7 @@ config TYPEC_HD3SS3220
tristate "TI HD3SS3220 Type-C DRP Port controller driver"
depends on I2C
depends on USB_ROLE_SWITCH
+ select REGMAP_I2C
help
Say Y or M here if your system has TI HD3SS3220 Type-C DRP Port
controller driver.
base-commit: 693c2e04e3f1d4c59af236e1211b7b8cb165a790