Re: [PATCH] usb: typec: hd3ss3220: select REGMAP_I2C

From: Heikki Krogerus

Date: Mon Nov 30 2026 - 10:05:52 EST


On Mon, Nov 30, 2026 at 08:58:41PM +0800, Pengpeng Hou wrote:
> hd3ss3220.c initializes an I2C regmap using devm_regmap_init_i2c(),
> but TYPEC_HD3SS3220 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: 1c48c759ef4b ("usb: typec: driver for TI HD3SS3220 USB Type-C DRP port controller")

Why no CC stable?

Thanks,

> Signed-off-by: Pengpeng Hou <hppiscas@xxxxxxx>
> ---
> AI assistance: gpt 5 (patch preparation and review).
>
> drivers/usb/typec/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/usb/typec/Kconfig b/drivers/usb/typec/Kconfig
> index 2f80c27..98c7aa2 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: fe6ff8d5d675c01793b9f051d16055dd4aa75244
>

--
heikki