* [PATCH] usb: typec: hd3ss3220: select REGMAP_I2C
@ 2026-11-30 12:58 Pengpeng Hou
2026-11-30 15:05 ` Heikki Krogerus
0 siblings, 1 reply; 2+ messages in thread
From: Pengpeng Hou @ 2026-11-30 12:58 UTC (permalink / raw)
To: heikki.krogerus; +Cc: gregkh, linux-usb, linux-kernel, hppiscas
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")
Signed-off-by: Pengpeng Hou <hppiscas@163.com>
---
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] usb: typec: hd3ss3220: select REGMAP_I2C
2026-11-30 12:58 [PATCH] usb: typec: hd3ss3220: select REGMAP_I2C Pengpeng Hou
@ 2026-11-30 15:05 ` Heikki Krogerus
0 siblings, 0 replies; 2+ messages in thread
From: Heikki Krogerus @ 2026-11-30 15:05 UTC (permalink / raw)
To: Pengpeng Hou; +Cc: gregkh, linux-usb, linux-kernel
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@163.com>
> ---
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-30 15:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 12:58 [PATCH] usb: typec: hd3ss3220: select REGMAP_I2C Pengpeng Hou
2026-11-30 15:05 ` Heikki Krogerus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®