diff options
-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, |