]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: typec: Add a sysfs node to manage port type
authorBadhri Jagan Sridharan <badhri@google.com>
Tue, 30 May 2017 19:39:53 +0000 (12:39 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Jun 2017 09:02:58 +0000 (18:02 +0900)
commitbab3548078237706f53baafe43ae58257225549d
tree4fc0dc90f6eb3393885c0bae536502ca0c29bac1
parent7ee4ce6e933fbb2e5db2c39977b847704589575e
usb: typec: Add a sysfs node to manage port type

User space applications in some cases have the need to enforce a
specific port type(DFP/UFP/DRP). This change allows userspace to
attempt setting the desired port type. Low level drivers can
however reject the request if the specific port type is not supported.

Signed-off-by: Badhri Jagan Sridharan <Badhri@google.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-class-typec
drivers/usb/typec/typec.c
include/linux/usb/typec.h