[PATCH] Change linking order of SPI and MTD.
Shawn J. Goff
shawn7400 at gmail.com
Wed May 2 10:16:53 EDT 2012
On Tue, May 1, 2012 at 11:09 PM, Fabio Estevam <festevam at gmail.com> wrote:
> 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?
I hadn't known about EPROBE_DEFER until now. If it does help,
that's probably a better solution. I'll look into it, but it'll be
at least a few days before I'm able to spend time on it.
More information about the linux-mtd
mailing list