usb: typec: pd: Add higher capability sysfs for sink PDO
authorSaranya Gopal <saranya.gopal@intel.com>
Tue, 14 Feb 2023 11:45:43 +0000 (17:15 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Feb 2023 18:03:47 +0000 (19:03 +0100)
commitc620f4d5b25bcbb851daa1f88edc764cf5f29cb6
treea7dba1db8cee1bc4c77a1ee27827efd3dc5c07aa
parente4e7b2dc27c4bb877d850eaff69d41410b2f4237
usb: typec: pd: Add higher capability sysfs for sink PDO

28th bit of fixed supply sink PDO represents higher capability.
When this bit is set, the sink device needs more than vsafe5V
(eg: 12 V) to provide full functionality. This patch adds
this higher capability sysfs interface for sink PDO.
28th bit of fixed supply source PDO represents usb_suspend_supported
attribute. This usb_suspend_supported sysfs is already exposed for
source PDOs. This patch adds 'source-capabilities' in
usb_suspend_supported sysfs documentation for additional clarity.

Signed-off-by: Saranya Gopal <saranya.gopal@intel.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20230214114543.205103-2-saranya.gopal@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-class-usb_power_delivery
drivers/usb/typec/pd.c