[PATCH 6/6] memory: renesas-rpc-if: Add support for RZ/G2L
Wolfram Sang
wsa+renesas at sang-engineering.com
Fri Oct 1 05:04:21 PDT 2021
Hi Prabhakar,
I checked the G2L datasheet and reconsidered. It is better if your patch
goes in first. That means...
> > > > Is RPCIF_CMNCR_IO3FV and RPCIF_CMNCR_IO2FV actually documented in your
> > > > datasheets? I am asking because I have a patch pending to remove writing
> > > > to undocumented locations. So, I was aboout to remove the IO3FV and
> > > > IO2FV macros.
> > > >
> > > Yes they are documented, you should be able to download the HW manual from [1]
> >
> > Great, then I will keep them!
... that you could change the comments here from "undocumented" to
"documened for G2L" or similar.
> > > > > + regmap_read(rpc->regmap, RPCIF_PHYCNT, &dummy);
> > > > > + dummy &= ~RPCIF_PHYCNT_PHYMEM_MASK;
> > > > > + dummy |= RPCIF_PHYCNT_PHYMEM(hyperflash ? 3 : 0) | 0x260;
> > > > > + regmap_write(rpc->regmap, RPCIF_PHYCNT, dummy);
> > > >
> > > > regmap_update_bits?
> > > >
> > > Im a bit hesitant to use regmap_update_bits() here as some of the bits
> > > are not documented.
Here you can keep your code as is. I will change it afterwards if needed
once I clarified all undocumented locations.
Thanks and have a nice weekend,
Wolfram
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20211001/2bf8d4cf/attachment.sig>
More information about the linux-mtd
mailing list