[PATCH v2 0/3] UCSI Power Supply Updates

Jameson Thies posted 3 patches 3 months, 3 weeks ago
drivers/usb/typec/ucsi/psy.c  | 26 ++++++++++++++++++++++++++
drivers/usb/typec/ucsi/ucsi.c |  5 ++++-
drivers/usb/typec/ucsi/ucsi.h |  4 ++++
3 files changed, 34 insertions(+), 1 deletion(-)
[PATCH v2 0/3] UCSI Power Supply Updates
Posted by Jameson Thies 3 months, 3 weeks ago
This series includes the following minor changes to power supply
handling by the UCSI driver.

1) Adds the "Status" property to power supplies registered by the UCSI
driver.
2) Updates ucsi.c to report a power supply change all power opmode
changes. Currently this only gets reported when opmode is PD.
3) Updates ucsi.c to report a power supply change when the PPM signals
a sink path change.

v2 changes
- Removed patch adding support for reporting DRP power supply types.
  It led to spam in dmesg and needs further debug.
- Removed patch to report 0 max current when a port is not connected.
  This is a bug fix and should be reviewed separately.
- Removed patch to refresh connector status after PR swaps. This is
  not directly related to the power supply and should be sent up
  separately.
- Updated patch notify the power supply class of sink path status
  changes. It now uses a single bit mask for checking both sink path
  status changes and battery charging status changes.

Jameson Thies (3):
  usb: typec: ucsi: psy: Add power supply status
  usb: typec: ucsi: Report power supply changes on power opmode changes
  usb: typec: ucsi: Report power supply change on sink path change

 drivers/usb/typec/ucsi/psy.c  | 26 ++++++++++++++++++++++++++
 drivers/usb/typec/ucsi/ucsi.c |  5 ++++-
 drivers/usb/typec/ucsi/ucsi.h |  4 ++++
 3 files changed, 34 insertions(+), 1 deletion(-)


base-commit: e40b984b6c4ce3f80814f39f86f87b2a48f2e662
-- 
2.51.0.858.gf9c4a03a3a-goog
Re: [PATCH v2 0/3] UCSI Power Supply Updates
Posted by Kenneth Crudup 3 months, 3 weeks ago
Tested-By: Kenneth R. Crudup <kenny@panix.com>

On 10/16/25 16:59, Jameson Thies wrote:
> This series includes the following minor changes to power supply
> handling by the UCSI driver.
> 
> 1) Adds the "Status" property to power supplies registered by the UCSI
> driver.
> 2) Updates ucsi.c to report a power supply change all power opmode
> changes. Currently this only gets reported when opmode is PD.
> 3) Updates ucsi.c to report a power supply change when the PPM signals
> a sink path change.
> 
> v2 changes
> - Removed patch adding support for reporting DRP power supply types.
>    It led to spam in dmesg and needs further debug.
> - Removed patch to report 0 max current when a port is not connected.
>    This is a bug fix and should be reviewed separately.
> - Removed patch to refresh connector status after PR swaps. This is
>    not directly related to the power supply and should be sent up
>    separately.
> - Updated patch notify the power supply class of sink path status
>    changes. It now uses a single bit mask for checking both sink path
>    status changes and battery charging status changes.
> 
> Jameson Thies (3):
>    usb: typec: ucsi: psy: Add power supply status
>    usb: typec: ucsi: Report power supply changes on power opmode changes
>    usb: typec: ucsi: Report power supply change on sink path change
> 
>   drivers/usb/typec/ucsi/psy.c  | 26 ++++++++++++++++++++++++++
>   drivers/usb/typec/ucsi/ucsi.c |  5 ++++-
>   drivers/usb/typec/ucsi/ucsi.h |  4 ++++
>   3 files changed, 34 insertions(+), 1 deletion(-)
> 
> 
> base-commit: e40b984b6c4ce3f80814f39f86f87b2a48f2e662

-- 
Kenneth R. Crudup / Sr. SW Engineer, Scott County Consulting, Orange 
County CA
Re: [PATCH v2 0/3] UCSI Power Supply Updates
Posted by Kenneth Crudup 3 months, 3 weeks ago
On 10/16/25 16:59, Jameson Thies wrote:

> v2 changes
> - Removed patch adding support for reporting DRP power supply types.
>    It led to spam in dmesg and needs further debug.

So far, so good! I'm currently booted (along with the "Add power supply 
status" patch) and no issues so far.

I'll look for the sysfs entries and report back with a Tested-By: if all 
is well.

-Kenny--
Kenneth R. Crudup / Sr. SW Engineer, Scott County Consulting, Orange 
County CA