mirror of
https://github.com/torvalds/linux.git
synced 2024-12-23 03:11:46 +00:00
a932a8041f
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>
10 lines
337 B
Plaintext
10 lines
337 B
Plaintext
What: /sys/bus/platform/devices/ci_hdrc.0/role
|
|
Date: Mar 2017
|
|
Contact: Peter Chen <peter.chen@nxp.com>
|
|
Description:
|
|
It returns string "gadget" or "host" when read it, it indicates
|
|
current controller role.
|
|
|
|
It will do role switch when write "gadget" or "host" to it.
|
|
Only controller at dual-role configuration supports writing.
|