lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGb2v64My=A_Jw+CBCsqno3SsSSTtBFKXOrgLv+Nyq_z5oeYBg@mail.gmail.com>
Date: Sat, 5 Jul 2025 21:20:29 +0900
From: Chen-Yu Tsai <wens@...nel.org>
To: Andre Przywara <andre.przywara@....com>
Cc: Andrew Lunn <andrew+netdev@...n.ch>, "David S. Miller" <davem@...emloft.net>, 
	Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>, 
	Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>, 
	Jernej Skrabec <jernej@...nel.org>, Samuel Holland <samuel@...lland.org>, netdev@...r.kernel.org, 
	devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org, 
	linux-sunxi@...ts.linux.dev
Subject: Re: [PATCH net 0/2] allwinner: a523: Rename emac0 to gmac0

On Sat, Jul 5, 2025 at 4:37 PM Andre Przywara <andre.przywara@....com> wrote:
>
> On Sat, 28 Jun 2025 13:44:36 +0800
> Chen-Yu Tsai <wens@...nel.org> wrote:
>
> Hi,
>
> > From: Chen-Yu Tsai <wens@...e.org>
> >
> > Hi folks,
> >
> > This small series aims to align the name of the first ethernet
> > controller found on the Allwinner A523 SoC family with the name
> > found in the datasheets. It renames the compatible string and
> > any other references from "emac0" to "gmac0".
>
> To be honest I am not a big fan of those cosmetic renames when it
> touches DT files. It seems to not break compatibility in this case,
> since we don't use the specific compatible string, but leaves a bitter
> taste anyway. Also I pick DT patches out of -rc releases for U-Boot,
> and did so internally already, so it's not without churns.

I'd say that new stuff shouldn't really be considered stable until
it is actually released, hence why I wanted to get this series merged
now. Picking from an -rc release is a tradeoff of getting new stuff
faster vs having something changed or reverted during the -rc process.
I'm sorry that it went the other way this time.

> So is this really necessary, and what is the purpose of this patch?

It's really about aligning the names used throughout the kernel with
the ones seen in the datasheet.

> I am fine with using GMAC for the GMAC200 part in the SoC, but the A64,
> H6, H616, A133 all use the same IP - as the fallback compatible proves -
> and they call it all EMAC.

There's also an EMAC in the A10 and A20 that only does up to 100 Mbps,
and there's no lineage there. Also, not all datasheets for SoCs with
this gigabit-capable EMAC call it the EMAC. Off the top of my head, I
believe the R40 calls it the GMAC. And the R40's compatible string
in this binding even uses the string "gmac".

So it's really whatever Allwinner wants to call it. I would rather have
the names follow the datasheet than us making some scheme up. We just
have to remember that this funky gigabit-capable Ethernet controller
is this piece of hardware.

Hope that explains things.

Thanks
ChenYu

> That's not a NAK, but just wanted to bring this up.
>
> Cheers,
> Andre.
>
> > When support of the hardware was introduced, the name chosen was
> > "EMAC", which followed previous generations. However the datasheets
> > use the name "GMAC" instead, likely because there is another "GMAC"
> > based on a newer DWMAC IP.
> >
> > The first patch fixes the compatible string entry in the device tree
> > binding.
> >
> > The second patch fixes all references in the existing device trees.
> >
> > Since this was introduced in v6.16-rc1, I hope to land this for v6.16
> > as well.
> >
> > There's a small conflict in patch one around the patch context with
> >
> >     dt-bindings: net: sun8i-emac: Add A100 EMAC compatible
> >
> > that just landed in net-next today. I will leave this patch to the net
> > mainainers to merge to avoid making a bigger mess. Once that is landed
> > I will merge the second patch through the sunxi tree.
> >
> >
> > Thanks
> > ChenYu
> >
> >
> > Chen-Yu Tsai (2):
> >   dt-bindings: net: sun8i-emac: Rename A523 EMAC0 to GMAC0
> >   arm64: dts: allwinner: a523: Rename emac0 to gmac0
> >
> >  .../devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml  | 2 +-
> >  arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi              | 6 +++---
> >  arch/arm64/boot/dts/allwinner/sun55i-a527-cubie-a5e.dts     | 4 ++--
> >  arch/arm64/boot/dts/allwinner/sun55i-t527-avaota-a1.dts     | 4 ++--
> >  4 files changed, 8 insertions(+), 8 deletions(-)
> >
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ