[PATCH v2] mtd: Fix physmap_of to not exit upon unsuccessful partition scan

Peter Korsgaard jacmet at sunsite.dk
Thu Feb 14 09:14:49 EST 2008


>>>>> "Stefan" == Stefan Roese <sr at denx.de> writes:

 Stefan> The patch 9a310d21196f38f6ad0ad146057548653e495c09 ("[MTD]
 Stefan> Factor out OF partition support from the NOR driver.")
 Stefan> introduced an problem. Now the physmap_of driver returns with
 Stefan> error upon the first unsuccessful partition scan
 Stefan> (parse_mtd_partitions()). This is not wanted, since even when
 Stefan> the RedBoot/cmdlinepart partition scan is unsuccessful, the
 Stefan> other scan's (of_mtd_parse_partitions(),
 Stefan> parse_obsolete_partitions()) should be done nevertheless.

Doesn't it make more sense to fix the real problem (E.G. cmdlinepart.c
flagging missing partition info as an error) - See the patch I posted
earlier today.

-- 
Bye, Peter Korsgaard



More information about the linux-mtd mailing list