Re: [PATCH] [RFC] mtd: fixup CFI on ixp4xx

From: Arnd Bergmann
Date: Mon Sep 27 2021 - 16:31:18 EST


On Mon, Sep 27, 2021 at 6:33 PM Miquel Raynal <miquel.raynal@xxxxxxxxxxx> wrote:
>
> Hi Arnd,
>
> arnd@xxxxxxxxxx wrote on Mon, 27 Sep 2021 16:10:37 +0200:
>
> > From: Arnd Bergmann <arnd@xxxxxxxx>
> >
> > drivers/mtd/maps/ixp4xx.c requires MTD_CFI_BE_BYTE_SWAP to be set
> > in order to compile.
> >
> > drivers/mtd/maps/ixp4xx.c:57:4: error: #error CONFIG_MTD_CFI_BE_BYTE_SWAP required
> >
> > This patch avoids the #error output by enforcing the policy in
> > Kconfig. Not sure if this is the right approach, but it helps doing
> > randconfig builds.
> >
> > Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
> > ---
> > Any other ideas for how to address it?
>
> I am fine with the approach. Should I wait for someone else's Ack?

Maybe wait a few days to see if there are objections or any better
ideas then. I'd certainly be happy to never run into this problem again.

Arnd