| To: | David Daney <ddaney@caviumnetworks.com> |
|---|---|
| Subject: | Re: [PATCH] ide: New libata driver for OCTEON SOC Compact Flash interface. |
| From: | Alan Cox <alan@lxorguk.ukuu.org.uk> |
| Date: | Fri, 21 Nov 2008 17:49:44 +0000 |
| Cc: | linux-ide@vger.kernel.org, linux-mips <linux-mips@linux-mips.org> |
| In-reply-to: | <4926EA6A.7040704@caviumnetworks.com> |
| Organization: | Red Hat UK Cyf., Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, Y Deyrnas Gyfunol. Cofrestrwyd yng Nghymru a Lloegr o'r rhif cofrestru 3798903 |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <49261BE5.2010406@caviumnetworks.com> <20081121102137.634616c5@lxorguk.ukuu.org.uk> <4926EA6A.7040704@caviumnetworks.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
> > Even if you wanted to do it this way you could just use arrays and lookup > > tables as many other drivers do - ie > > > > pio = dev->pio_mode - XFER_PIO_0; > > t1 = data[pio]; > > > > The timing calculations are based on the CPU clock rate, It is difficult > to encapsulate that in a table. The lookup part of the switch you can however. If you can use the ata_timing interface then it will also do the clock adjusting for you and has a FIT() macro that can be quite handy for clipping. > It appears to be broken. One would expect ioread16 and ioread16_rep to > do endian swapping in the same manner. On MIPS they do not. Perhaps it > would be better to fix the problem at the source. I think the MIPS tree needs fixing then. Alan |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] ide: New libata driver for OCTEON SOC Compact Flash interface., David Daney |
|---|---|
| Next by Date: | Re: [PATCH] ide: New libata driver for OCTEON SOC Compact Flash interface., Alan Cox |
| Previous by Thread: | Re: [PATCH] ide: New libata driver for OCTEON SOC Compact Flash interface., Alan Cox |
| Next by Thread: | Re: [PATCH] ide: New libata driver for OCTEON SOC Compact Flash interface., Sergei Shtylyov |
| Indexes: | [Date] [Thread] [Top] [All Lists] |