Re: [PATCH] updates to Vitesse SATA driver
From: Jeremy Higdon <hidden>
Date: 2004-09-30 02:34:49
On Wed, Sep 29, 2004 at 03:32:34PM -0700, Dave wrote:
On Wed, 29 Sep 2004 18:19:40 -0400, Jeff Garzik [off-list ref] wrote:quoted
So where did the discussion on this patch land?
The only part that made sense to me was the LED patch, which should just be a single line of code.
Jeff, I believe waiting for you to comment on whether to put in a hook for controllers that do not support ATA_NIEN so it can mask/unmask IRQ with a fixup. Even though the spec for this particular SATA controller says the bit is reserved, it seems to work just fine. From my understanding, the registers are actually on the drives, and the ones we write to the HBAs are just shadow registers right? I suppose either we can use the "undocumented" reserved bit for ATA_NIEN, or provide some sort of special hook in lib_ata core to clear the interrupt bit....
I don't think we need this. In vsc_sata_tf_load(), we see if the ATA_NIEN bit has changed and call vsc_intr_mask_update() as necessary.
Obviosly if it is working on IA32 or IA64, this code must be only scanning device 0 per port and not device 1. Not sure why it is only scanning 1 device on IA platforms, but both on XScale. Either way we have a corner case here that should be addressed....
Jeff, I don't remember how libata knows how many devices a port can have. Which field is it? jeremy