From e08bc0c0312b3e91fe5b752768608e4a209182f6 Mon Sep 17 00:00:00 2001 From: Albert Wang Date: Thu, 18 Mar 2021 18:13:03 +0800 Subject: usb: new attributes implementation to enable/disable usb data Bug: 184613044 Test: driver probe and attributes access normally Signed-off-by: Albert Wang Change-Id: Ia34cfd8e76a21f7239e356608e46ddeebd6fa10a --- Documentation/ABI/testing/sysfs-class-udc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-class-udc (limited to 'Documentation/ABI/testing/sysfs-class-udc') diff --git a/Documentation/ABI/testing/sysfs-class-udc b/Documentation/ABI/testing/sysfs-class-udc new file mode 100644 index 000000000000..1b9c566d0552 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-class-udc @@ -0,0 +1,16 @@ +What: /sys/class/udc//device/usb_data_enabled +Date: December 2020 +Contact: "Ray Chi" +Description: + The attribute can allow user space can check and modify + the value to enable or disable usb functionality. Therefore, + if the attritube is set to 0, USB host and USB peripheral + modes wouldn't be working. + + Example: + Enable USB data functionality + # echo 1 > /sys/class/udc/.../device/usb_data_enabled + + Disable USB data functionality + # echo 0 > /sys/class/udc/.../device/usb_data_enabled + -- cgit v1.2.3