|
@@ -47,6 +47,8 @@
|
|
|
#include <linux/errno.h>
|
|
|
#include <linux/slab.h>
|
|
|
|
|
|
+#include <linux/usb/quirks.h>
|
|
|
+
|
|
|
#include <scsi/scsi.h>
|
|
|
#include <scsi/scsi_eh.h>
|
|
|
#include <scsi/scsi_device.h>
|
|
@@ -1297,6 +1299,10 @@ int usb_stor_port_reset(struct us_data *us)
|
|
|
{
|
|
|
int result;
|
|
|
|
|
|
+ /*for these devices we must use the class specific method */
|
|
|
+ if (us->pusb_dev->quirks & USB_QUIRK_RESET_MORPHS)
|
|
|
+ return -EPERM;
|
|
|
+
|
|
|
result = usb_lock_device_for_reset(us->pusb_dev, us->pusb_intf);
|
|
|
if (result < 0)
|
|
|
US_DEBUGP("unable to lock device for reset: %d\n", result);
|