File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,12 @@ static int slave_alloc (struct scsi_device *sdev)
79
79
if (us -> protocol == USB_PR_BULK && us -> max_lun > 0 )
80
80
sdev -> sdev_bflags |= BLIST_FORCELUN ;
81
81
82
+ /*
83
+ * Some USB storage devices reset if the IO advice hints grouping mode
84
+ * page is queried. Hence skip that mode page.
85
+ */
86
+ sdev -> sdev_bflags |= BLIST_SKIP_IO_HINTS ;
87
+
82
88
return 0 ;
83
89
}
84
90
Original file line number Diff line number Diff line change 21
21
#include <scsi/scsi.h>
22
22
#include <scsi/scsi_eh.h>
23
23
#include <scsi/scsi_dbg.h>
24
+ #include <scsi/scsi_devinfo.h>
24
25
#include <scsi/scsi_cmnd.h>
25
26
#include <scsi/scsi_device.h>
26
27
#include <scsi/scsi_host.h>
@@ -820,6 +821,12 @@ static int uas_slave_alloc(struct scsi_device *sdev)
820
821
struct uas_dev_info * devinfo =
821
822
(struct uas_dev_info * )sdev -> host -> hostdata ;
822
823
824
+ /*
825
+ * Some USB storage devices reset if the IO advice hints grouping mode
826
+ * page is queried. Hence skip that mode page.
827
+ */
828
+ sdev -> sdev_bflags |= BLIST_SKIP_IO_HINTS ;
829
+
823
830
sdev -> hostdata = devinfo ;
824
831
return 0 ;
825
832
}
You can’t perform that action at this time.
0 commit comments