Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3714
b: refs/heads/master
c: 86dbde9
h: refs/heads/master
v: v3
  • Loading branch information
Matthew Dharm authored and Greg Kroah-Hartman committed Jun 27, 2005
1 parent e9f0f41 commit 8e6e829
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4d07ef762fc8d6d35ecc1511a3b953a733a61a5f
refs/heads/master: 86dbde9cbdfe8bc2c2dfe5d33027d3acc55e0470
9 changes: 9 additions & 0 deletions trunk/drivers/usb/storage/scsiglue.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,15 @@ static int slave_configure(struct scsi_device *sdev)
* If this device makes that mistake, tell the sd driver. */
if (us->flags & US_FL_FIX_CAPACITY)
sdev->fix_capacity = 1;

/* USB-IDE bridges tend to report SK = 0x04 (Non-recoverable
* Hardware Error) when any low-level error occurs,
* recoverable or not. Setting this flag tells the SCSI
* midlayer to retry such commands, which frequently will
* succeed and fix the error. The worst this can lead to
* is an occasional series of retries that will all fail. */
sdev->retry_hwerror = 1;

} else {

/* Non-disk-type devices don't need to blacklist any pages
Expand Down

0 comments on commit 8e6e829

Please sign in to comment.