Commit:     23c3e290fb9ce38cabc2822b47583fc8702411bf
Parent:     366ca51f30de1cbb5b356c70b7bb22051c558e41
Author:     Hans de Goede <[EMAIL PROTECTED]>
AuthorDate: Sun Jan 20 11:27:29 2008 +0100
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Fri Jan 25 16:50:31 2008 -0600

    [SCSI] usbstorage: use last_sector_bug flag universally
    This patch sets the last_sector_bug flag to 1 for all USB disks. This is
    needed to makes the cardreader on various HP multifunction printers work.
    Since the performance impact is negible we set this flag for all USB disks 
    avoid an unusual_devs.h nightmare.
    Signed-off-by: Hans de Goede <[EMAIL PROTECTED]>
    Acked-by: Matthew Dharm <[EMAIL PROTECTED]>
    Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
 drivers/usb/storage/scsiglue.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/storage/scsiglue.c b/drivers/usb/storage/scsiglue.c
index dd8b13e..8c1e295 100644
--- a/drivers/usb/storage/scsiglue.c
+++ b/drivers/usb/storage/scsiglue.c
@@ -187,6 +187,10 @@ static int slave_configure(struct scsi_device *sdev)
                 * automatically, requiring a START-STOP UNIT command. */
                sdev->allow_restart = 1;
+               /* Some USB cardreaders have trouble reading an sdcard's last
+                * sector in a larger then 1 sector read, since the performance
+                * impact is negible we set this flag for all USB disks */
+               sdev->last_sector_bug = 1;
        } else {
                /* Non-disk-type devices don't need to blacklist any pages
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to