Skip to content

Commit

Permalink
libata: use ATA_HORKAGE_STUCK_ERR for ATAPI tape drives
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Mark Lord <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
  • Loading branch information
Albert Lee authored and htejun committed Nov 19, 2007
1 parent 2d3b8ee commit f442cd8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/ata/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2307,8 +2307,10 @@ int ata_dev_configure(struct ata_device *dev)
}

if ((dev->class == ATA_DEV_ATAPI) &&
(atapi_command_packet_set(id) == TYPE_TAPE))
(atapi_command_packet_set(id) == TYPE_TAPE)) {
dev->max_sectors = ATA_MAX_SECTORS_TAPE;
dev->horkage |= ATA_HORKAGE_STUCK_ERR;
}

if (dev->horkage & ATA_HORKAGE_MAX_SEC_128)
dev->max_sectors = min_t(unsigned int, ATA_MAX_SECTORS_128,
Expand Down

0 comments on commit f442cd8

Please sign in to comment.