[PATCH] ahci: skip protocol test altogether in spurious interrupt code

Skip protocol test altogether in spurious interrupt code. If PIOS is received
when it shouldn't, ahci will raise protocol violation.

Signed-off-by: Unicorn Chang <uchang@tw.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>

authored by Unicorn Chang and committed by Jeff Garzik f1d39b29 fd60ae40

+2 -8
+2 -8
drivers/scsi/ahci.c
··· 940 return; 941 942 /* ignore interim PIO setup fis interrupts */ 943 - if (ata_tag_valid(ap->active_tag)) { 944 - struct ata_queued_cmd *qc = 945 - ata_qc_from_tag(ap, ap->active_tag); 946 - 947 - if (qc && qc->tf.protocol == ATA_PROT_PIO && 948 - (status & PORT_IRQ_PIOS_FIS)) 949 - return; 950 - } 951 952 if (ata_ratelimit()) 953 ata_port_printk(ap, KERN_INFO, "spurious interrupt "
··· 940 return; 941 942 /* ignore interim PIO setup fis interrupts */ 943 + if (ata_tag_valid(ap->active_tag) && (status & PORT_IRQ_PIOS_FIS)) 944 + return; 945 946 if (ata_ratelimit()) 947 ata_port_printk(ap, KERN_INFO, "spurious interrupt "