summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorAlbert Wang <albertccwang@google.com>2021-03-18 18:13:03 +0800
committerMichael Bestas <mkbestas@lineageos.org>2024-03-21 17:43:49 +0200
commite08bc0c0312b3e91fe5b752768608e4a209182f6 (patch)
tree73507fb9cb4b045304161d4bf5eb4c5b01891178 /Documentation
parent069ac1bc7175e12f6d2d9f92be4687146918da86 (diff)
usb: new attributes implementation to enable/disable usb data
Bug: 184613044 Test: driver probe and attributes access normally Signed-off-by: Albert Wang <albertccwang@google.com> Change-Id: Ia34cfd8e76a21f7239e356608e46ddeebd6fa10a
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/ABI/testing/sysfs-class-udc16
1 files changed, 16 insertions, 0 deletions
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/<udc name>/device/usb_data_enabled
+Date: December 2020
+Contact: "Ray Chi" <raychi@google.com>
+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
+