summaryrefslogtreecommitdiff
path: root/Documentation/ABI/testing/sysfs-class-udc
blob: 1b9c566d0552f8cdb2b6387c9963c979ec33a178 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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