OSDN Git Service

ANDROID: usb: phy: Dual role sysfs class definition
authorBadhri Jagan Sridharan <Badhri@google.com>
Tue, 1 Sep 2015 04:36:07 +0000 (21:36 -0700)
committerDmitry Shmidt <dimitrysh@google.com>
Fri, 27 Jan 2017 21:49:16 +0000 (13:49 -0800)
commit7dfee9ca8fc4b03867b6089db9b0e645e9ba164f
tree6c42d38828066c2aa0dd0ced8b93437d5c488301
parent171b8124fe40a7b37050425f0ab59c66a436d79f
ANDROID: 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]