[PATCH 1/6] PCI: imx6: Rename imx6_* with imx_*
Frank Li
Frank.li at nxp.com
Wed Feb 28 15:31:20 PST 2024
On Wed, Feb 28, 2024 at 08:14:16PM -0300, Fabio Estevam wrote:
> On Tue, Feb 27, 2024 at 6:47 PM Frank Li <Frank.Li at nxp.com> wrote:
> >
> > imx6_* actually mean for all imx chips (imx6x, imx7x, imx8x and imx9x).
>
> That's OK. In the kernel, we have lots of examples where the names of
> files and functions follow the first chip model.
>
> If this same IP gets used by another SoC in the future that is not
> named i.MX, will this driver get renamed again?
It will depend on the how much difference. We can't predict future. We will
discuss at that time.
We use dwc IP. Only difference was external glue logic. layerscape use
difference files.
>
> > Rename imx6_* with imx_* to avoid confuse.
>
> I don't find it confusing.
If you follow next patches, you will be confused. Some function will use
imx7_xxx_reset(), imx8_xxx_reset. We will add more soc support.
It was not easy to distinguish imx6_xxx is for all imx6 chips or all imx
chips. If you are expert at imx chips, any name should be okay. Good naming
will help for all reviewer and contributor.
Frank
>
> > Signed-off-by: Frank Li <Frank.Li at nxp.com>
> > ---
> > drivers/pci/controller/dwc/pci-imx6.c | 754 +++++++++++++++++-----------------
> > 1 file changed, 377 insertions(+), 377 deletions(-)
>
> I think this pure churn and we should not do the rename as it brings
> no benefits.
More information about the linux-arm-kernel
mailing list