usb: phy: Dual role sysfs class definition
authorBadhri Jagan Sridharan <Badhri@google.com>
Tue, 1 Sep 2015 04:36:07 +0000 (21:36 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:52:13 +0000 (13:52 -0800)
commitce31762e99a3a75edb10d053dd71ec02bbe7aaa5
treec97d9127c035aac0d1fc6bbdf17a05724aaf5d9a
parenta89affddffb840da8d9d34c553d65dd1739e9ae1
usb: phy: Dual role sysfs class definition

This CL adds a new class to monitor and change
dual role usb ports from userspace. The usb
phy drivers can register to the dual_role_usb
class and expose the capabilities of the ports.
The phy drivers can decide on whether a specific
attribute can be changed from userspace by
choosing to implement the appropriate callback.

Cherry-picked from
https://android-review.googlesource.com/#/c/167310/

Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Bug: 21615151
Change-Id: Id1c4aaa97e898264d7006381a7badd029b5d9789
Documentation/ABI/testing/sysfs-class-dual-role-usb [new file with mode: 0644]
drivers/usb/phy/Kconfig
drivers/usb/phy/Makefile
drivers/usb/phy/class-dual-role.c [new file with mode: 0644]
include/linux/usb/class-dual-role.h [new file with mode: 0644]