summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/media_tests/bind_unbind_sample.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/media_tests/bind_unbind_sample.sh')
-rwxr-xr-xtools/testing/selftests/media_tests/bind_unbind_sample.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/testing/selftests/media_tests/bind_unbind_sample.sh b/tools/testing/selftests/media_tests/bind_unbind_sample.sh
new file mode 100755
index 000000000..0101c1ec4
--- /dev/null
+++ b/tools/testing/selftests/media_tests/bind_unbind_sample.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Find device number in /sys/bus/usb/drivers/drivername
+# Edit this file to update the driver numer and name
+# Example test for uvcvideo driver
+#i=0
+# while :; do
+# i=$((i+1))
+# echo 1-5:1.0 > /sys/bus/usb/drivers/uvcvideo/unbind;
+# echo 1-5:1.0 > /sys/bus/usb/drivers/uvcvideo/bind;
+# clear
+# echo $i
+#done