mtd: block2mtd: wait until block devices are presented
authorFelix Fietkau <nbd@openwrt.org>
Sun, 9 Nov 2014 12:21:13 +0000 (07:21 -0500)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 24 Feb 2015 07:44:12 +0000 (23:44 -0800)
commitd6a3f0176fe03c33f2853dfef33e15547e357dd0
treecdd2733467a2f092db3f06d6e35fc4ba74f21a35
parentc517d838eb7d07bbe9507871fab3931deccff539
mtd: block2mtd: wait until block devices are presented

Ensures that block2mtd is triggered after the block devices are enumerated
at boot time.
This issue is seen on BCM2835 (Raspberry Pi) systems when mounting JFFS2
block2mtd filesystems, probably because of the delay on enumerating a USB
MMC card reader.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Rodrigo Freire <rfreire@redhat.com>
Signed-off-by: Herton Krzesinski <herton@redhat.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/devices/block2mtd.c