[RFC PATCH 4/9] nand/denali: split the generic driver and PCI layer

Jamie Iles jamie at jamieiles.com
Thu May 12 04:31:02 EDT 2011


On Thu, May 12, 2011 at 09:15:48AM +0100, David Woodhouse wrote:
> On Thu, 2011-05-12 at 11:08 +0300, Artem Bityutskiy wrote:
> > 
> > I do not know for sure, but I bet there is a way to avoid adding
> > another
> > config option. In general - the Linux kernel is overloaded with config
> > options and we try to avoid adding new ones.
> > 
> > Can this be done the following way? - you check if there is a PCI bus,
> > if no - try mmio. If yes, try to discover the device in PCI.
> 
> Better still, support *only* device-tree. The Intel board should have
> been doing that instead of its stupid fake-pci thing anyway, and using
> device properties instead of that stupid hack with putting information
> at an MMIO address.

We don't _yet_ have device tree support on ARM, so that's why I used a 
platform_device.  There are patches circulating at the moment so I guess 
it won't be long though.

The other problem is that x86 doesn't support the clk API and that's 
something we need for our ARM system hence the dependency on HAVE_CLK 
for the MMIO driver.  But these could be stubbed out for X86.

Jamie



More information about the linux-mtd mailing list