[LINUX PATCH] net: axienet: Fix axiethernet register description
Pandey, Radhey Shyam
radhey.shyam.pandey at amd.com
Tue Jul 16 12:40:57 PDT 2024
> -----Original Message-----
> From: Andrew Lunn <andrew at lunn.ch>
> Sent: Saturday, July 13, 2024 8:25 PM
> To: Gupta, Suraj <Suraj.Gupta2 at amd.com>
> Cc: Pandey, Radhey Shyam <radhey.shyam.pandey at amd.com>;
> davem at davemloft.net; edumazet at google.com; kuba at kernel.org;
> pabeni at redhat.com; Simek, Michal <michal.simek at amd.com>;
> netdev at vger.kernel.org; linux-arm-kernel at lists.infradead.org; linux-
> kernel at vger.kernel.org; git (AMD-Xilinx) <git at amd.com>; Katakam, Harini
> <harini.katakam at amd.com>
> Subject: Re: [LINUX PATCH] net: axienet: Fix axiethernet register description
>
> On Sat, Jul 13, 2024 at 06:48:07PM +0530, Suraj Gupta wrote:
> > Rename axiethernet register description to be inline with product guide
> > register names. It also removes obsolete registers and bitmasks. There is
> > no functional impact since the modified offsets are only renamed.
> >
> > Rename XAE_PHYC_OFFSET->XAE_RMFC_OFFSET (Only used in ethtool
> get_regs)
> > XAE_MDIO_* : update documentation comment.
> > Remove unused Bit masks for Axi Ethernet PHYC register.
> > Remove bit masks for MDIO interface MIS, MIP, MIE, MIC registers.
> > Rename XAE_FMI -> XAE_FMC.
>
> Might be too way out there, but why not modify the documentation to
> fit Linux? This driver is likely to get bug fixes, and renames like
The problem is documentation is common for other software stacks as well
like baremetal/RTOS.
Considering this i feel better to correct the names and align with IP register
description else someone reading code may think this reg is related to
some other configurations.
Example: XAE_PHYC_OFFSET is corrected/renamed to XAE_RMFC_OFFSET.
RX Max Frame Configuration 0x00000414 R/W
XAE_RMFC_OFFSET is only used in ethtool get_regs.
Other changes are removing unused bits masks (Remove unused Bit masks for
Axi Ethernet PHYC register, Remove bit masks for MDIO interface MIS, MIP,
MIE, MIC registers) so should be fine to remove the dead code.
Thanks.
> this make it harder to backport those fixes. Documentation on the
> other hand just tends to get erratas, either in a separate document,
> or appended to the beginning/end. There is no applying patches to
> documentation.
>
> Andrew
More information about the linux-arm-kernel
mailing list