Re: cirrus ep93xx pata driver

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

 



Lennert Buytenhek wrote:
On Mon, May 28, 2007 at 09:27:10PM -0400, Jeff Garzik wrote:

I know it's probably a low priority, but could you rediff this against the current libata?

I'm wondering where we are in terms of hooks that you need. Since you posted this we added some hooks for the pata_scc driver, most notably ->irq_on() hooks. And other code you modify, such as the ata_bus_reset() function, is slated for deletion once all drivers have been converted over to the new EH (done, in testing).

The main problem on ep93xx is that the IDE registers aren't accessible
via memory space or I/O space reads/writes -- instead, you get to put
the address/data on the bus by hand, twiddle the nRD/nWR lines by hand,
enforcing PIO timings as you go along by manually delaying for the right
number of nanoseconds, etc.

Nod, your patch explained that :)


The libata methods I added hooks for were all methods that check
ATA_FLAG_MMIO and do {read,write}[bwl] or {in,out}[bwl] accesses
based on the state of that flag.  What I did in those cases was to
verbatim cut-'n-paste the libata code into pata_ep93xx, changing
the {read,write,in,out}[bwl] calls into calls to pata_ep93xx's
accessor functions.  Of course, this is ugly, duplicates code, and
will break whenever someone adds new code to libata that accesses
the task file registers directly.

Well, judging solely from the patch you sent, it looks like we already have the necessary hooks for everything you need. After reviewing each modification, ata_devchk() appeared to be the only function that did not have a directly corresponding hook. Several of your modifications were to old-EH functions that your driver never calls, etc.

So if you could refresh the patch from Jan 28th, I bet recent API improvements can get it into upstream-mergeable shape, without having to create low-level IO accessor hooks.

	Jeff


-
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