aboutsummaryrefslogtreecommitdiff
path: root/drivers/acpi/acpica/acapps.h
diff options
context:
space:
mode:
authorMario Limonciello2023-05-18 11:11:50 -0500
committerGreg Kroah-Hartman2023-07-19 16:22:12 +0200
commit759e582b1cea5457ed058f42c60c9bef4b30db9d (patch)
tree3bf7c8e0fa622b94b2e3960fcd1ffe68b8dab616 /drivers/acpi/acpica/acapps.h
parentf2a6ce3eec14bc8912c949d53b0902b5bedbcdc2 (diff)
usb: typec: ucsi: Mark dGPUs as DEVICE scope
commit a7fbfd44c0204f0629288edfd0d77829edb4a2f8 upstream. 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/20230516182541.5836-2-mario.limonciello@amd.com/ Reviewed-by: Evan Quan <evan.quan@amd.com> Tested-by: Evan Quan <evan.quan@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com> Acked-by: Andi Shyti <andi.shyti@kernel.org> Signed-off-by: Wolfram Sang <wsa@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/acpi/acpica/acapps.h')
0 files changed, 0 insertions, 0 deletions