diff options
author | Albert Lee <albertcc@tw.ibm.com> | 2007-11-14 20:35:47 -0500 |
---|---|---|
committer | Tejun Heo <htejun@gmail.com> | 2007-11-18 22:28:11 -0500 |
commit | f442cd86c1c86c5f44bc2cf23f89536f7e4cfe59 (patch) | |
tree | ff5dfc8e1dc17aeb3f690d48a667d55fcc8c3ad8 /drivers/ata/libata-core.c | |
parent | 2d3b8eea7f2fbafd5d779cc92f7aedbd1ef575e9 (diff) |
libata: use ATA_HORKAGE_STUCK_ERR for ATAPI tape drives
Per Mark's comments, maybe all ATAPI tape drives need ATA_HORKAGE_STUCK_ERR.
This patch applys ATA_HORKAGE_STUCK_ERR for all ATAPI tape drives.
Signed-off-by: Albert Lee <albertcc@tw.ibm.com>
Cc: Mark Lord <liml@rtr.ca>
Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r-- | drivers/ata/libata-core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 5478b4c6c6e9..f7f6ca991e32 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -2307,8 +2307,10 @@ int ata_dev_configure(struct ata_device *dev) | |||
2307 | } | 2307 | } |
2308 | 2308 | ||
2309 | if ((dev->class == ATA_DEV_ATAPI) && | 2309 | if ((dev->class == ATA_DEV_ATAPI) && |
2310 | (atapi_command_packet_set(id) == TYPE_TAPE)) | 2310 | (atapi_command_packet_set(id) == TYPE_TAPE)) { |
2311 | dev->max_sectors = ATA_MAX_SECTORS_TAPE; | 2311 | dev->max_sectors = ATA_MAX_SECTORS_TAPE; |
2312 | dev->horkage |= ATA_HORKAGE_STUCK_ERR; | ||
2313 | } | ||
2312 | 2314 | ||
2313 | if (dev->horkage & ATA_HORKAGE_MAX_SEC_128) | 2315 | if (dev->horkage & ATA_HORKAGE_MAX_SEC_128) |
2314 | dev->max_sectors = min_t(unsigned int, ATA_MAX_SECTORS_128, | 2316 | dev->max_sectors = min_t(unsigned int, ATA_MAX_SECTORS_128, |