Re: [PATCH v5 3/4] mtd: core: protect access to MTD devices while in suspend

From: Miquel Raynal
Date: Mon Nov 29 2021 - 04:21:24 EST


Hi Sean,

boris.brezillon@xxxxxxxxxxxxx wrote on Tue, 23 Nov 2021 14:07:15 +0100:

> On Tue, 23 Nov 2021 13:50:12 +0100
> Sean Nyekjaer <sean@xxxxxxxxxx> wrote:
>
> > @Boris do we need to do something similar here to what we did with the
> > mtdconcat stuff?
>
> Absolutely, physmasp subdevices are never initialized/registered, so
> you can't call any of the mtd helpers taking the suspend lock on those.
> I guess it'd be better to call mtd_suspend/resume() on the concat device
> in though:

Any chance that you will come up with a fix or v6 of the series anytime
soon?

>
> static void physmap_flash_shutdown(struct platform_device *dev)
> {
> struct physmap_flash_info *info = platform_get_drvdata(dev);
>
> mtd_suspend(info->cmtd);
> }


Thanks,
Miquèl