Commit 121a09e590d54be840289c6feac840453aa999d9

Authored by Alan Cox
Committed by Jeff Garzik
1 parent 0f7577434b

libata: correct handling of TSS DVD

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>

Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff

... ... @@ -554,8 +554,6 @@
554 554  
555 555 static inline int ata_drive_40wire_relaxed(const u16 *dev_id)
556 556 {
557   - if (ata_id_is_sata(dev_id))
558   - return 0; /* SATA */
559 557 if ((dev_id[93] & 0x2000) == 0x2000)
560 558 return 0; /* 80 wire */
561 559 return 1;