]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
uas: Honor no-uas quirk set in usb-storage's quirks module parameter
authorHans de Goede <hdegoede@redhat.com>
Sat, 16 Nov 2013 11:19:36 +0000 (12:19 +0100)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 4 Mar 2014 23:38:17 +0000 (15:38 -0800)
Falling back from uas to usb-storage requires coordination between uas and
usb-storage, so use usb-storage's quirks module parameter, rather then
requiring the user to pass a param to 2 different modules.

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

index 1dd0604d1911d683015bedfe28ab86cdd42e8db4..666dcb692e12698b31b014850d5be752666859f6 100644 (file)
@@ -204,7 +204,7 @@ config USB_STORAGE_ENE_UB6250
 
 config USB_UAS
        tristate "USB Attached SCSI"
-       depends on SCSI && BROKEN
+       depends on SCSI && USB_STORAGE && BROKEN
        help
          The USB Attached SCSI protocol is supported by some USB
          storage devices.  It permits higher performance by supporting
index 02bf5ec957f5130e861c6d30ba5fc4dd85ba0e5e..082bde1fa74d6494a6ba1cf9c3b08896440127d8 100644 (file)
@@ -1,5 +1,6 @@
 #include <linux/usb.h>
 #include <linux/usb/hcd.h>
+#include "usb.h"
 
 static int uas_is_interface(struct usb_host_interface *intf)
 {
@@ -42,8 +43,11 @@ static int uas_find_uas_alt_setting(struct usb_interface *intf)
 static int uas_use_uas_driver(struct usb_interface *intf,
                              const struct usb_device_id *id)
 {
+       struct usb_device *udev = interface_to_usbdev(intf);
        unsigned long flags = id->driver_info;
 
+       usb_stor_adjust_quirks(udev, &flags);
+
        if (flags & US_FL_IGNORE_UAS)
                return 0;