Tejun Heo 51b94d2a5a sata_promise: use TF interface for polling NODATA commands
sata_promise uses two different command modes - packet and TF.  Packet mode
is intelligent low-overhead mode while TF is the same old taskfile
interface.  As with other advanced interface (ahci/sil24),
ATA_TFLAG_POLLING has no effect in packet mode.  However, PIO commands are
issued using TF interface in polling mode, so pdc_interrupt() considers
interrupts spurious if ATA_TFLAG_POLLING is set.

This is broken for polling NODATA commands because command is issued using
packet mode but the interrupt handler ignores it due to ATA_TFLAG_POLLING.
Fix pdc_qc_issue_prot() such that ATA/ATAPI NODATA commands are issued
using TF interface if ATA_TFLAG_POLLING is set.

This patch fixes detection failure introduced by polling SETXFERMODE.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Acked-by: Mikael Pettersson <mikpe@it.uu.se>
Acked-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-06-08 17:23:33 -07:00
..
2007-06-02 01:02:09 -04:00
2007-06-03 18:08:44 -07:00
2007-05-21 09:18:19 -07:00
2007-05-24 02:42:39 +02:00
2007-06-08 17:23:33 -07:00
2007-06-02 00:48:48 -04:00
2007-06-04 17:54:09 -07:00
2007-06-07 13:38:40 -07:00
2007-05-21 09:18:19 -07:00
2007-05-16 21:19:15 -07:00
2007-05-08 13:37:51 +10:00
2007-06-04 13:25:09 -07:00
2007-06-08 17:23:33 -07:00