usb: phy: Dual role sysfs class definition
authorBadhri Jagan Sridharan <Badhri@google.com>
Thu, 27 Aug 2015 04:12:54 +0000 (21:12 -0700)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 27 Oct 2015 08:38:24 +0000 (16:38 +0800)
commit20a191e67fd648f2db54a7d62ee1f5c80c7acb3a
tree6efe982bf91c6e77a733def6e050924fa57aa764
parent16467c95936f25e38668b8a1156d985eb951f7ce
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.

Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Bug: 21615151
Change-Id: I121b4a94437972b5abe8f781e3007efa8531978
(cherry picked from commit f3061b9d608ce2314f24088281131ebadafa3985)
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]