From: "Bjørn Mork" <bjorn@mork.no>
To: Andrew Lunn <andrew@lunn.ch>
Cc: netdev@vger.kernel.org, "Lucien.Jheng" <lucienzx159@gmail.com>,
Daniel Golle <daniel@makrotopia.org>,
Vladimir Oltean <vladimir.oltean@nxp.com>,
Heiner Kallweit <hkallweit1@gmail.com>,
Russell King <linux@armlinux.org.uk>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v2 2/3] net: phy: air_en8811h: add Airoha AN8811HB support
Date: Sat, 24 Jan 2026 17:53:03 +0100 [thread overview]
Message-ID: <87ecnfj6kw.fsf@miraculix.mork.no> (raw)
In-Reply-To: <4a3430cc-5a9a-414e-9dbf-cbc34c8fd019@lunn.ch> (Andrew Lunn's message of "Sat, 24 Jan 2026 00:01:29 +0100")
Andrew Lunn <andrew@lunn.ch> writes:
>> +#define AN8811HB_GPIO_OUTPUT 0x5cf8b8
>> +#define AN8811HB_GPIO_OUTPUT_345 (BIT(3) | BIT(4) | BIT(5))
>
>> + /* Configure led gpio pins as output */
>> + ret = air_buckpbus_reg_modify(phydev, AN8811HB_GPIO_OUTPUT,
>> + AN8811HB_GPIO_OUTPUT_345,
>> + AN8811HB_GPIO_OUTPUT_345);
>
> The code/comment probably does not describe what is actually happening
> here. My _guess_ is you are setting a pinmux, disconnecting the pins
> from the GPIO controller and connecting them to the LED controller.
Possibly. This code is copied from the out-of-tree vendor driver. We
already have similar code and comment in the en8811h probe:
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/tree/drivers/net/phy/air_en8811h.c#n959
The register addresses and layouts are suspiciously similar:
#define EN8811H_GPIO_OUTPUT 0xcf8b8
#define EN8811H_GPIO_OUTPUT_345 (BIT(3) | BIT(4) | BIT(5))
Without any docs, or a way to test this particular feature, I
believe the safest option is to assume that the vendor driver is
correct. Can't start guessing no matter how tempting it is :-)
> I assume there is no open data sheet for this device?
Correct AFAIK.
I have no other docs either. The code is based solely on the vendor
driver. But trying to reuse as much as possible of the existing en8811h
driver instead of duplicating it like the vendor did.
I have two almost identical boards with this phy connected to a Mediatek
MT7988D SoC. I can test, and have tested, the features exposed by those
boards. But this is obviously a limited test environment. There are
for example no port LEDs on any of the boards.
But that's what I got.
Bjørn
next prev parent reply other threads:[~2026-01-24 16:53 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-23 7:58 [PATCH net-next v2 0/3] Airoha AN8811HB 2.5 Gbps phy support Bjørn Mork
2026-01-23 7:58 ` [PATCH net-next v2 1/3] net: phy: air_en8811h: factor out shareable code Bjørn Mork
2026-01-23 22:50 ` Andrew Lunn
2026-01-24 16:55 ` Bjørn Mork
2026-01-24 18:38 ` Andrew Lunn
2026-01-25 10:51 ` Bjørn Mork
2026-01-25 16:23 ` Andrew Lunn
2026-01-23 7:58 ` [PATCH net-next v2 2/3] net: phy: air_en8811h: add Airoha AN8811HB support Bjørn Mork
2026-01-23 23:01 ` Andrew Lunn
2026-01-24 16:53 ` Bjørn Mork [this message]
2026-01-24 18:33 ` Andrew Lunn
2026-01-25 11:07 ` Bjørn Mork
2026-01-23 7:58 ` [PATCH net-next v2 3/3] net: phy: air_en8811h: Add clk provider for an8811hb Bjørn Mork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ecnfj6kw.fsf@miraculix.mork.no \
--to=bjorn@mork.no \
--cc=andrew@lunn.ch \
--cc=daniel@makrotopia.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=lucienzx159@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=vladimir.oltean@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox