[PATCH] Change linking order of SPI and MTD.

Mike Frysinger vapier at gentoo.org
Wed May 2 13:12:37 EDT 2012


On Tue, May 1, 2012 at 4:12 PM, Shawn J. Goff wrote:
> Currently, UBI initializes before SPI. This is a problem
> if you intend to boot to a UBI volume on an SPI device.  UBI will
> fail to initialize with the following message:

this is why many SPI bus masters use subsys_initcall() now

> The initialization order is determined by the order the modules are
> linked into the kernel, so the fix was to change this order. UBI is
> under the MTD tree, so SPI is now linked in before MTD.

NAK: linking order is arbitrary and always has been
-mike



More information about the linux-mtd mailing list