All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: Pengpeng Hou <hppiscas@163.com>
Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] usb: typec: hd3ss3220: select REGMAP_I2C
Date: Mon, 30 Nov 2026 16:05:40 +0100	[thread overview]
Message-ID: <aw2QxOWoWxPUANdX@black.igk.intel.com> (raw)
In-Reply-To: <20261130125841.77570-1-hppiscas@163.com>

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

      parent reply	other threads:[~2026-11-30 15:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 12:58 [PATCH] usb: typec: hd3ss3220: select REGMAP_I2C Pengpeng Hou
2026-11-30 13:01 ` sashiko-bot
2026-11-30 15:05 ` Heikki Krogerus [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aw2QxOWoWxPUANdX@black.igk.intel.com \
    --to=heikki.krogerus@linux.intel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=hppiscas@163.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.