aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/config.py
diff options
context:
space:
mode:
authorPrashant Malani <[email protected]>2020-11-16 12:11:40 -0800
committerGreg Kroah-Hartman <[email protected]>2020-11-18 12:55:46 +0100
commita0ccdc4a77a1b36b682ae60361879eca0a0f88d6 (patch)
tree87efac4589cad63f175e81b86171b315b9f7756b /scripts/gdb/linux/config.py
parent8a5ca78f603977d6b9b2d7dcb3b1b6ef601d3cc7 (diff)
usb: typec: Add number of altmodes partner attr
Add a user-visible attribute for the number of alternate modes available in a partner. This allows userspace to determine whether there are any remaining alternate modes left to be registered by the kernel driver. It can begin executing any policy state machine after all available alternate modes have been registered with the connector class framework. This value is set to "-1" initially, signifying that a valid number of alternate modes haven't been set for the partner. Also add a sysfs file which exposes this attribute. The file remains hidden as long as the attribute value is -1. Cc: Benson Leung <[email protected]> Cc: Heikki Krogerus <[email protected]> Signed-off-by: Prashant Malani <[email protected]> Reviewed-by: Heikki Krogerus <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/config.py')
0 files changed, 0 insertions, 0 deletions