[PATCH v4 01/11] mtd: core: always create master device
Usyskin, Alexander
alexander.usyskin at intel.com
Mon Jan 6 11:03:27 UTC 2025
> Subject: Re: [PATCH v4 01/11] mtd: core: always create master device
>
> Hi Alexander,
>
> On 01/01/2025 at 17:39:15 +02, Alexander Usyskin
> <alexander.usyskin at intel.com> wrote:
>
> > Create master device without partition when
> > CONFIG_MTD_PARTITIONED_MASTER flag is unset.
>
> I don't think you took into consideration my remarks regarding the fact
> that you would break userspace. If you enable the master, you no longer
> have the same device numbering in userspace. I know people should not
> care about these numbers, but in practice they do.
>
> If I'm wrong, please be a little more verbose about why :)
>
> Thanks,
> Miquèl
Hi Miquel
I've created separate class (mtd_master) for such devices.
Uses-space looking for mtd device continues to receive same number of /dev/mtdX devices.
There will be additional /dev/mtd_masterX devices, but this is unavoidable, I suppose.
Maybe we can rename it to something that not in /dev/mtd* expression (e.g. mastermtdX),
if it helps.
- -
Thanks,
Sasha
More information about the Intel-gfx
mailing list