Skip to content

Commit

Permalink
Merge branch 'upstream'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Garzik committed Oct 9, 2005
2 parents 9dc2632 + e710245 commit ffe75ef
Show file tree
Hide file tree
Showing 13 changed files with 2,863 additions and 577 deletions.
1,072 changes: 1,072 additions & 0 deletions Documentation/DocBook/libata.tmpl

Large diffs are not rendered by default.

31 changes: 25 additions & 6 deletions drivers/scsi/ahci.c
Original file line number Diff line number Diff line change
Expand Up @@ -672,17 +672,36 @@ static irqreturn_t ahci_interrupt (int irq, void *dev_instance, struct pt_regs *

for (i = 0; i < host_set->n_ports; i++) {
struct ata_port *ap;
u32 tmp;

VPRINTK("port %u\n", i);
if (!(irq_stat & (1 << i)))
continue;

ap = host_set->ports[i];
tmp = irq_stat & (1 << i);
if (tmp && ap) {
if (ap) {
struct ata_queued_cmd *qc;
qc = ata_qc_from_tag(ap, ap->active_tag);
if (ahci_host_intr(ap, qc))
irq_ack |= (1 << i);
if (!ahci_host_intr(ap, qc))
if (ata_ratelimit()) {
struct pci_dev *pdev =
to_pci_dev(ap->host_set->dev);
printk(KERN_WARNING
"ahci(%s): unhandled interrupt on port %u\n",
pci_name(pdev), i);
}

VPRINTK("port %u\n", i);
} else {
VPRINTK("port %u (no irq)\n", i);
if (ata_ratelimit()) {
struct pci_dev *pdev =
to_pci_dev(ap->host_set->dev);
printk(KERN_WARNING
"ahci(%s): interrupt on disabled port %u\n",
pci_name(pdev), i);
}
}

irq_ack |= (1 << i);
}

if (irq_ack) {
Expand Down
Loading

0 comments on commit ffe75ef

Please sign in to comment.