[RFC 06/12] mtd: nand: add reworked Marvell NAND controller driver
Miquel RAYNAL
miquel.raynal at free-electrons.com
Mon Nov 6 05:49:44 PST 2017
Hi Boris,
> > +enum marvell_nfc_variant {
> > + MARVELL_NFC_VARIANT_PXA3XX,
> > + MARVELL_NFC_VARIANT_ARMADA370,
> > + MARVELL_NFC_VARIANT_ARMADA_8K,
> > +};
> > +
> > +/*
> > + * NAND controller capabilities for distinction between compatible
> > strings
> > + *
> > + * @variant: Board type
> > + * @max_cs_nb: Number of Chip Select lines available
> > + * @max_rb_nb: Number of Ready/Busy lines available
> > + * @legacy_of_bindings Indicates if DT parsing must be done
> > using the old
> > + * fashion way
> > + */
> > +struct marvell_nfc_caps {
> > + enum marvell_nfc_variant variant;
>
> Do you really need this variant field. It seems you're only using it
> to detect if you should MUX the NAND pins using the Special Function
> registers on armada8k. Maybe you should just have:
>
> bool need_system_controller;
>
> and set it to true for the "armada8k" compatible.
Ok. After Rob's review I also added a "bool need_arbiter" to avoid
using any "variant == PXA_VARIANT" in the code.
>
> > + unsigned int max_cs_nb;
> > + unsigned int max_rb_nb;
> > + bool legacy_of_bindings;
> > +};
> > +
Thanks,
Miquèl
More information about the linux-mtd
mailing list