summaryrefslogtreecommitdiff
path: root/multitech/recipes/multitech/mts-io/radio-reset-h5
blob: 22616febc494edeeb8aa89cdb57af7f24d599975 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# This script works around a USB full-speed H5 radio quirk by disabling USB and 
# waiting for the radio to power up before re-enabling it.  Note that
# this will disable all USB devices connected to the USB host controller
# until the reset is finished.  USB device port is not affected.

# This script is *only* needed for devices with an H5 operating at USB full speed (MTCDP, MT100EOCG).
# Devices with high speed USB are not affected (MTOCGD2, MTOCGD).

rmmod ohci_hcd
mts-io-sysfs store radio-reset 0
sleep 8
modprobe ohci_hcd