linux/drivers/net/phy/qcom
Maxime Chevallier e7a62edd34 net: phy: qcom: at803x: Use the correct bit to disable extended next page
As noted in the blamed commit, the AR8035 and other PHYs from this
family advertise the Extended Next Page support by default, which may be
understood by some partners as this PHY being multi-gig capable.

The fix is to disable XNP advertising, which is done by setting bit 12
of the Auto-Negotiation Advertisement Register (MII_ADVERTISE).

The blamed commit incorrectly uses MDIO_AN_CTRL1_XNP, which is bit 13 as per
802.3 : 45.2.7.1 AN control register (Register 7.0)

BIT 12 in MII_ADVERTISE is wrapped by ADVERTISE_RESV, used by some
drivers such as the aquantia one. 802.3 Clause 28 defines bit 12 as
Extended Next Page ability, at least in recent versions of the standard.

Let's add a define for it and use it in the at803x driver.

Fixes: 3c51fa5d2a ("net: phy: ar803x: disable extended next page bit")
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20260410171021.1277138-1-maxime.chevallier@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-04-13 14:36:22 -07:00
..
at803x.c net: phy: qcom: at803x: Use the correct bit to disable extended next page 2026-04-13 14:36:22 -07:00
Kconfig net: phy: qcom: at803x: Add Qualcomm IPQ5018 Internal PHY support 2025-06-23 11:14:05 -07:00
Makefile net: phy: qcom: add support for QCA807x PHY Family 2024-02-10 15:36:19 +00:00
qca83xx.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
qca807x.c net: phy: qcom: qca807x: normalize return value of gpio_get 2026-02-20 16:09:07 -08:00
qca808x.c net: phy: qcom: qca808x: Support PHY counter 2025-07-17 18:35:50 -07:00
qcom-phy-lib.c net: phy: qcom: Add PHY counter support 2025-07-17 18:35:50 -07:00
qcom.h net: phy: qcom: Add PHY counter support 2025-07-17 18:35:50 -07:00