Skip to content

Commit

Permalink
[PATCH] ahci: skip protocol test altogether in spurious interrupt code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Unicorn Chang authored and Jeff Garzik committed Aug 3, 2006
1 parent fd60ae4 commit f1d39b2
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions drivers/scsi/ahci.c
Original file line number Diff line number Diff line change
Expand Up @@ -940,14 +940,8 @@ static void ahci_host_intr(struct ata_port *ap)
return;

/* ignore interim PIO setup fis interrupts */
if (ata_tag_valid(ap->active_tag)) {
struct ata_queued_cmd *qc =
ata_qc_from_tag(ap, ap->active_tag);

if (qc && qc->tf.protocol == ATA_PROT_PIO &&
(status & PORT_IRQ_PIOS_FIS))
return;
}
if (ata_tag_valid(ap->active_tag) && (status & PORT_IRQ_PIOS_FIS))
return;

if (ata_ratelimit())
ata_port_printk(ap, KERN_INFO, "spurious interrupt "
Expand Down

0 comments on commit f1d39b2

Please sign in to comment.