aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-starfive.c
diff options
context:
space:
mode:
authorMario Limonciello <[email protected]>2023-05-18 16:11:50 +0000
committerGreg Kroah-Hartman <[email protected]>2023-05-29 14:17:34 +0000
commit7b7efc925042ef72f8a64a14226a76e8c98c7732 (patch)
treeb418cadca7a8cbd4b1f89d2a051fb3ca488ab78e /drivers/usb/cdns3/cdns3-starfive.c
parentusb: dwc3: qcom: Fix potential memory leak (diff)
downloadkernel-7b7efc925042ef72f8a64a14226a76e8c98c7732.tar.gz
kernel-7b7efc925042ef72f8a64a14226a76e8c98c7732.zip
usb: typec: ucsi: Mark dGPUs as DEVICE scope
power_supply_is_system_supplied() checks whether any power supplies are present that aren't batteries to decide whether the system is running on DC or AC. Downstream drivers use this to make performance decisions. Navi dGPUs include an UCSI function that has been exported since commit 17631e8ca2d3 ("i2c: designware: Add driver support for AMD NAVI GPU"). This UCSI function registers a power supply since commit 992a60ed0d5e ("usb: typec: ucsi: register with power_supply class") but this is not a system power supply. As the power supply for a dGPU is only for powering devices connected to dGPU, create a device property to indicate that the UCSI endpoint is only for the scope of `POWER_SUPPLY_SCOPE_DEVICE`. Link: https://lore.kernel.org/lkml/[email protected]/ Reviewed-by: Evan Quan <[email protected]> Tested-by: Evan Quan <[email protected]> Signed-off-by: Mario Limonciello <[email protected]> Reviewed-by: Heikki Krogerus <[email protected]> Reviewed-by: Sebastian Reichel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-starfive.c')
0 files changed, 0 insertions, 0 deletions