usb: chipidea: core: add sysfs group
authorPeter Chen <peter.chen@nxp.com>
Mon, 27 Mar 2017 02:54:27 +0000 (10:54 +0800)
committerPeter Chen <peter.chen@nxp.com>
Fri, 14 Apr 2017 01:26:37 +0000 (09:26 +0800)
commita932a8041ff9941a244619555f1c75ecf299f662
tree327a92c46c42a92c000557389777540fdad74737
parent4f4555cfe704913ce4ce836ab2707825d784a7cc
usb: chipidea: core: add sysfs group

Sometimes, the user needs to adjust some properties for controllers, eg
the role for controller, we add sysfs group for them.

The attribute 'role' is used to switch host/gadget role dynamically, the
uewr can read the current role, and write the other role compare to
current one to finish the switch.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
Documentation/ABI/testing/sysfs-platform-chipidea-usb2 [new file with mode: 0644]
drivers/usb/chipidea/core.c
drivers/usb/chipidea/udc.c