[RFC PATCH 4/9] nand/denali: split the generic driver and PCI layer
David Woodhouse
dwmw2 at infradead.org
Thu May 12 04:15:48 EDT 2011
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.
Let the Moorestown *platform* code register the device-tree at startup,
if the NAND code is present, and don't worry about that crap in the
generic driver.
--
dwmw2
More information about the linux-mtd
mailing list