uas: Reset device on reboot
authorHans de Goede <hdegoede@redhat.com>
Mon, 11 Nov 2013 10:51:42 +0000 (11:51 +0100)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 4 Mar 2014 23:38:21 +0000 (15:38 -0800)
commitda65c2bb99542d05f2d8f67efe6627915f4c5ea4
tree5da639fe4034ea9bd1a3e5426f822cac6e1247fe
parent0df1f663f32e5dc28cba68375b09bba5eaad103f
uas: Reset device on reboot

Some BIOS-es will hang on reboot when an uas device is attached and left in
uas mode on reboot.

This commit adds a shutdown handler which on reboot puts the device back into
usb-storage mode, fixing the hang on reboot on these systems.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/storage/uas.c