[PATCH] pata-generic/of: Make probing via device tree non-powerpc-specific
Arnd Bergmann
arnd at arndb.de
Sat Sep 17 14:35:57 EDT 2011
On Friday 16 September 2011 22:43:13 Russell King - ARM Linux wrote:
> On Fri, Sep 16, 2011 at 03:38:10PM +0100, Dave Martin wrote:
> > This patch enables device-tree-based probing of the pata-generic
> > platform driver across all architectures:
> >
> > * make the pata_of_generic module depend on OF instead of PPC_OF;
> > * supply some missing inclues;
> > * replace endianness-sensitive raw access to device tree data
> > with of_property_read_u32() calls.
> >
> > Signed-off-by: Dave Martin <dave.martin at linaro.org>
> > ---
> >
> > Tested on ARM Versatile Express, with my soon-to-be-posted device
> > tree support patches.
>
> This may not be the correct way to support the CF slot on Versatile
> Express - it depends whether the CF slot on VE supports just CF
> memory cards or whether it can take any CF card.
>
> If the latter, then what may be inserted could be a CF network card,
> and that means it's probably wrong to tell the kernel that what's
> there is a PATA interface.
The documentation at
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0447e/CACECHFJ.html
claims that the slot only supports TrueIDE and PIO/Taskfile mode, which
are the two modes for CF memory cards. Of course this is highly dependent
on what you load into the FPGA that implements the CF interface on
the versatile express, but at least for the currect Versatile Express
FPGA load it should be right.
Also, the patch makes sense regardless of versatile express, it's just
basic cleanup.
One extension we might want to add eventually is support for the UDMA
modes that are present on most of the current CF cards but not supported
by this driver (AFAICT).
Arnd
More information about the linux-arm-kernel
mailing list