Skip to content

Adjust logic for power_supply_is_system_supplied()

Mario Limonciello linux-i2c linux-pm linux-usb lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2power: supply: Use the scope of power supplies to tell if power is system supplieddrivers/power/supply/power_supply_core.c+6 -23 replies
2/2usb: typec: ucsi: Don't create power supplies for dGPUsdrivers/i2c/busses/i2c-designware-pcidrv.c drivers/i2c/busses/i2c-nvidia-gpu.c drivers/usb/typec/ucsi/psy.c+29 -14 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Adjust logic for power_supply_is_system_supplied()

Some systems don't provide any ACPI power supplies, but drivers use the function power_supply_is_system_supplied() to make policy decisions.

This logic works fine until a new device is added to the system that provides a UCSI power supply. This power supply doesn't power the system but the logic assumes it does.

This series adjusts the logic so that these power supplies are not considered when making these policy decisions.

Mario Limonciello (2):
power: supply: Use the scope of power supplies to tell if power is
system supplied
usb: typec: ucsi: Don't create power supplies for dGPUs

 drivers/i2c/busses/i2c-designware-pcidrv.c | 13 ++++++++++++-
 drivers/i2c/busses/i2c-nvidia-gpu.c        |  3 +++
 drivers/power/supply/power_supply_core.c   |  8 ++++++--
 drivers/usb/typec/ucsi/psy.c               | 14 ++++++++++++++
 4 files changed, 35 insertions(+), 3 deletions(-)
Signature · 1 line
2.34.1