Re: [PATCH 2/5] mtd: block2mtd: Add support for specifying MTD write size and subpage shift

From: Pali RohÃr
Date: Wed Jun 07 2017 - 04:47:06 EST


On Monday 05 June 2017 13:27:18 Richard Weinberger wrote:
> Pali,
>
> Am 05.06.2017 um 13:25 schrieb Pali RohÃr:
> > On Monday 05 June 2017 13:23:22 Richard Weinberger wrote:
> >> Pali,
> >>
> >> Am 05.06.2017 um 13:21 schrieb Pali RohÃr:
> >>> On Friday 02 June 2017 18:13:02 Richard Weinberger wrote:
> >>>> Pali,
> >>>>
> >>>> Am 02.06.2017 um 17:43 schrieb Pali RohÃr:
> >>>>> It is needed for creating emulated devices suitable for using in UBI layer
> >>>>> and with UBIFS.
> >>>>
> >>>> Why?
> >>>
> >>> ubifs depends on write size of nand. And without those parameters as
> >>> specified in cover letter I'm unable to mount N900 rootfs image exported
> >>> via block2mtd. ubifs reject such image.
> >>
> >> Hmm, so you render block2mtd into a semi-NAND chip? :)
> >
> > Probably you can call it like that. But it is still MTD device...
>
> This is what I meant in my other mail.
> You add NAND specific properties but still denote it as MTD_RAM/ROM.
> I'm not sure whether this is a good idea.

Ok, lets wait what other people think.

At least patches like fallback or check should be less problematic and
could be applied separately.

--
Pali RohÃr
pali.rohar@xxxxxxxxx