aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/storage/scsiglue.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/storage/scsiglue.c')
-rw-r--r--drivers/usb/storage/scsiglue.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/storage/scsiglue.c b/drivers/usb/storage/scsiglue.c
index 11418da9bc09..a3d54366afcc 100644
--- a/drivers/usb/storage/scsiglue.c
+++ b/drivers/usb/storage/scsiglue.c
@@ -236,6 +236,11 @@ static int slave_configure(struct scsi_device *sdev)
236 US_FL_SCM_MULT_TARG)) && 236 US_FL_SCM_MULT_TARG)) &&
237 us->protocol == USB_PR_BULK) 237 us->protocol == USB_PR_BULK)
238 us->use_last_sector_hacks = 1; 238 us->use_last_sector_hacks = 1;
239
240 /* Check if write cache default on flag is set or not */
241 if (us->fflags & US_FL_WRITE_CACHE)
242 sdev->wce_default_on = 1;
243
239 } else { 244 } else {
240 245
241 /* Non-disk-type devices don't need to blacklist any pages 246 /* Non-disk-type devices don't need to blacklist any pages