[PATCH] mtd/powernv_flash: Enable partition support

Rafał Miłecki zajec5 at gmail.com
Thu Mar 29 15:11:23 PDT 2018


On 29 March 2018 at 23:43, Timothy Pearson
<tpearson at raptorengineering.com> wrote:
> Will resend with Signed-off-by.
>
> Before this patch, the driver was not picking up the OF-provided
> partition list.  It seemed specifically designed to register only one
> large partition covering the entire PNOR; mtd_device_register() does not
> run parsing of any type AFAIK.

Please don't top post.

This is how mtd_device_register is defined:
#define mtd_device_register(master, parts, nr_parts) \
        mtd_device_parse_register(master, NULL, NULL, parts, nr_parts)

So your patch seems to be replacing
mtd_device_parse_register(&data->mtd, NULL, NULL, NULL, 0);
with
mtd_device_parse_register(&data->mtd, part_probes, NULL, NULL, 0);

I still claim that all it does is replacing list of default parsers:
"cmdlinepart", "ofpart", NULL
with a custom list:
"ofpart", NULL

I don't think you need that. Probably the only change you really need is to add:
mtd_set_of_node(&data->mtd, dev->of_node);



More information about the linux-mtd mailing list