Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

power: supply: Add PD SPR AVS support to USB type enum

Add two new members to the power_supply_usb_type to represent the
USB Power Delivery (PD) Standard Power Range (SPR) Adjustable Voltage
Supply (AVS) charging types:

POWER_SUPPLY_USB_TYPE_PD_SPR_AVS: For devices supporting only the
PD SPR AVS type.

POWER_SUPPLY_USB_TYPE_PD_PPS_SPR_AVS: For devices that support both
PD Programmable Power Supply (PPS) and PD SPR AVS.

Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Link: https://patch.msgid.link/20260316150301.3892223-3-badhri@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Badhri Jagan Sridharan and committed by
Greg Kroah-Hartman
a43dd4f6 9270102a

+7 -1
+2 -1
Documentation/ABI/testing/sysfs-class-power
··· 675 675 676 676 Valid values: 677 677 "Unknown", "SDP", "DCP", "CDP", "ACA", "C", "PD", 678 - "PD_DRP", "PD_PPS", "BrickID" 678 + "PD_DRP", "PD_PPS", "BrickID", "PD_SPR_AVS", 679 + "PD_PPS_SPR_AVS" 679 680 680 681 **Device Specific Properties** 681 682
+2
drivers/power/supply/power_supply_sysfs.c
··· 70 70 [POWER_SUPPLY_USB_TYPE_PD] = "PD", 71 71 [POWER_SUPPLY_USB_TYPE_PD_DRP] = "PD_DRP", 72 72 [POWER_SUPPLY_USB_TYPE_PD_PPS] = "PD_PPS", 73 + [POWER_SUPPLY_USB_TYPE_PD_SPR_AVS] = "PD_SPR_AVS", 74 + [POWER_SUPPLY_USB_TYPE_PD_PPS_SPR_AVS] = "PD_PPS_SPR_AVS", 73 75 [POWER_SUPPLY_USB_TYPE_APPLE_BRICK_ID] = "BrickID", 74 76 }; 75 77
+3
include/linux/power_supply.h
··· 210 210 POWER_SUPPLY_USB_TYPE_PD, /* Power Delivery Port */ 211 211 POWER_SUPPLY_USB_TYPE_PD_DRP, /* PD Dual Role Port */ 212 212 POWER_SUPPLY_USB_TYPE_PD_PPS, /* PD Programmable Power Supply */ 213 + /* PD Standard Power Range Adjustable Voltage Supply */ 214 + POWER_SUPPLY_USB_TYPE_PD_SPR_AVS, 215 + POWER_SUPPLY_USB_TYPE_PD_PPS_SPR_AVS, /* Supports both PD PPS + SPR AVS */ 213 216 POWER_SUPPLY_USB_TYPE_APPLE_BRICK_ID, /* Apple Charging Method */ 214 217 }; 215 218