diff options
author | Hans de Goede <j.w.r.degoede@hhs.nl> | 2008-01-20 11:12:26 +0100 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-01-23 11:29:34 -0600 |
commit | a0899d4df534d2bcf671b0f647b809842309a9ae (patch) | |
tree | 990c3eb7876f6f8a6dee37ec2ecd4684c11b1f74 /include/scsi | |
parent | b523381e325366cc54a2548df418c2a427b2f2ee (diff) | |
download | linux-a0899d4df534d2bcf671b0f647b809842309a9ae.tar.gz linux-a0899d4df534d2bcf671b0f647b809842309a9ae.tar.bz2 linux-a0899d4df534d2bcf671b0f647b809842309a9ae.zip |
[SCSI] sd: add fix for devices with last sector access problems
This patch adds a new scsi_device flag (last_sector_bug) for devices
which contain a bug where the device crashes when the last sector is
read in a larger then 1 sector read.
This is for example the case with sdcards in the HP PSC1350 printer
cardreader and in the HP PSC1610 printer cardreader.
Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/scsi_device.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h index e0c645ac5014..3c8f898b160e 100644 --- a/include/scsi/scsi_device.h +++ b/include/scsi/scsi_device.h @@ -139,6 +139,7 @@ struct scsi_device { unsigned fix_capacity:1; /* READ_CAPACITY is too high by 1 */ unsigned guess_capacity:1; /* READ_CAPACITY might be too high by 1 */ unsigned retry_hwerror:1; /* Retry HARDWARE_ERROR */ + unsigned last_sector_bug:1; /* Always read last sector in a 1 sector read */ DECLARE_BITMAP(supported_events, SDEV_EVT_MAXBITS); /* supported events */ struct list_head event_list; /* asserted events */ |