Skip to content

Commit

Permalink
libata: correct handling of TSS DVD
Browse files Browse the repository at this point in the history
Devices that misreport the validity bit for word 93 look like SATA.  If
they are on the blacklist then we must not test for SATA but assume 40 wire
in the 40 wire case (The TSSCorp reports 80 wire on SATA it seems!)

Signed-off-by: Alan Cox <alan@redhat.com>
Cc: Tejun Heo <htejun@gmail.com>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Alan-Cox authored and Jeff Garzik committed Jan 15, 2008
1 parent 0f75774 commit 121a09e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions include/linux/ata.h
Expand Up @@ -554,8 +554,6 @@ static inline int ata_drive_40wire(const u16 *dev_id)

static inline int ata_drive_40wire_relaxed(const u16 *dev_id)
{
if (ata_id_is_sata(dev_id))
return 0; /* SATA */
if ((dev_id[93] & 0x2000) == 0x2000)
return 0; /* 80 wire */
return 1;
Expand Down

0 comments on commit 121a09e

Please sign in to comment.