sata_promise.c:pdc_irq_clear() buglet?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jeff,

In the 2.6.8 kernel you added sata_promise.c:pdc_irq_clear()
which looks as follows:

>static void pdc_irq_clear(struct ata_port *ap)
>{
>        struct ata_host *host = ap->host;
>        void __iomem *mmio = host->iomap[PDC_MMIO_BAR];
>
>        readl(mmio + PDC_INT_SEQMASK);
>}

I have two issues with this code:
1. It reads from the SEQMASK register, which is global for
   all ports. Hence, calling pdc_irq_clear() on one port
   potentially affects all ports.
2. Promise's drivers (both 1st and 2nd generation chip drivers)
   instead read the port's ATA Command/Status register when
   they want to clear any pending IRQs.

Did you write the code this way on purpose, or did you just
accidentally use the wrong mechanism?

If you have no objections, I intend to change this to read
Command/Status instead.

/Mikael
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux