Re: [PATCH] usb: typec: tcpm: allow external charger detection to set USB_TYPE
From: Heikki Krogerus
Date: Wed Nov 11 2026 - 09:38:03 EST
On Wed, Nov 11, 2026 at 03:05:14PM +0100, Heikki Krogerus wrote:
> On Fri, Nov 06, 2026 at 01:57:41PM +0200, Daniel Baluta wrote:
> > From: Li Jun <jun.li@xxxxxxx>
> >
> > Teach tcpm_psy_set_prop() to accept writes of
> > POWER_SUPPLY_PROP_USB_TYPE and store the value in port->usb_type, and
> > advertise the BC1.2 USB types (SDP/DCP/CDP/ACA) in
> > psy_desc.usb_types so power_supply_set_property() callers are not
> > rejected by power_supply_has_property().
> >
> > This is a prerequisite for a follow-up PHY charger-detection driver
> > that calls power_supply_set_property() on the tcpm-backed power
> > supply once it determines the attached BC1.2 charger type.
> >
> > Signed-off-by: Li Jun <jun.li@xxxxxxx>
> > Signed-off-by: Daniel Baluta <daniel.baluta@xxxxxxx>
>
> Acked-by: Heikki Krogerus <heikki.krogerus@xxxxxxxxxxxxxxx>
Ah, sorry. Sashiko found some issues with this it seems.
Thanks,
--
heikki