summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/media_tests/bind_unbind_sample.sh
blob: 0101c1ec4ff7384ae329e489df4a8059a2324c43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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