[PATCH] Change linking order of SPI and MTD.

Fabio Estevam festevam at gmail.com
Tue May 1 23:09:24 EDT 2012


On Tue, May 1, 2012 at 5:12 PM, Shawn J. Goff <shawn7400 at gmail.com> wrote:
> From: "Shawn J. Goff" <shawn7400 at gmail.com>
>
> 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:
>
> UBI error: ubi_init: UBI error: cannot initialize UBI, error -19
>
> 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.

Could EPROBE_DEFER help in this case?



More information about the linux-mtd mailing list