From: sashiko-bot@kernel.org
To: "Birger Koblitz" <mail@birger-koblitz.de>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH net-next v17 13/13] ax88796b: Add support for AX88772D, AX88179A and AX88279
Date: Wed, 07 Oct 2026 03:05:47 +0000 [thread overview]
Message-ID: <sashiko-outbox-162613@kernel.org> (raw)
In-Reply-To: <20261006-ax88179a-v17-13-252814fe35ea@birger-koblitz.de>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] net: phy: ax88796b: missing aneg restart and race in asix_ax88279_config_aneg
- [Medium] net: phy: ax88796b: incomplete clearance of 1000baseT capabilities for AX88772D
--
commit bc582050068fafd1fce54d8108ca8616b6ee048a
Author: Birger Koblitz <mail@birger-koblitz.de>
ax88796b: Add support for AX88772D, AX88179A and AX88279
This commit adds support for the AX88772D, AX88179A and AX88279 PHYs found
in ASIX USB-Ethernet controllers. It introduces vendor-specific configuration
and status reading functions to support 100MBit, 1GBit, and 2.5GBit link modes.
> diff --git a/drivers/net/phy/ax88796b.c b/drivers/net/phy/ax88796b.c
> index f20ddf6491499..a427292759a24 100644
> --- a/drivers/net/phy/ax88796b.c
> +++ b/drivers/net/phy/ax88796b.c
[ ... ]
> +static int asix_ax88279_config_aneg(struct phy_device *phydev)
> +{
> + bool adv_2500;
> + int ret;
> +
> + if (phydev->autoneg == AUTONEG_DISABLE) {
> + phydev_warn(phydev, "Disabling autoneg is not supported\n");
> + return -EOPNOTSUPP;
> + }
> +
> + ret = genphy_config_aneg(phydev);
> +
> + if (ret < 0)
> + return ret;
> +
> + adv_2500 = linkmode_test_bit(ETHTOOL_LINK_MODE_2500baseT_Full_BIT, phydev->advertising);
> + ret = phy_modify(phydev, MII_ADVERTISE, AX_ADVERTISE_2500,
> + adv_2500 ? AX_ADVERTISE_2500 : 0);
> +
> + return ret;
> +}
[Severity: High]
Can this ordering cause autonegotiation to either miss a restart or race
with the 2.5G advertisement update?
genphy_config_aneg() evaluates changes and restarts autonegotiation
immediately if required. Modifying MII_ADVERTISE afterward bypasses the
change detection for the 2.5G bit and races with the already-started
autonegotiation.
Would it be better to check for changes to both standard and custom bits,
apply all register modifications, and only then restart autonegotiation?
[ ... ]
> +static int asix_ax88772D_get_features(struct phy_device *phydev)
> +{
> + int ret;
> +
> + /* MDIO_DEVS1/2 empty, so set mmds_present bits to allow reading abilities */
> + phydev->c45_ids.mmds_present |= MDIO_DEVS_PMAPMD | MDIO_DEVS_AN;
> +
> + ret = genphy_read_abilities(phydev);
> + if (ret < 0)
> + return ret;
> +
> + /* AX88772D does not support reported 1000baseT mode */
> + linkmode_clear_bit(ETHTOOL_LINK_MODE_1000baseT_Full_BIT, phydev->supported);
[Severity: Medium]
Does this completely clear the errantly reported gigabit capabilities?
genphy_read_abilities() reads MII_ESTATUS and can also populate
ETHTOOL_LINK_MODE_1000baseT_Half_BIT and
ETHTOOL_LINK_MODE_1000baseX_Full_BIT if they are present.
Since this is a 100MBit PHY, should all gigabit modes be explicitly cleared
to prevent broken autonegotiation if the remote link partner attempts to
negotiate them?
> +
> + return 0;
> +}
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261006-ax88179a-v17-0-252814fe35ea@birger-koblitz.de?part=13
next prev parent reply other threads:[~2026-10-07 3:05 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-06 3:05 [PATCH net-next v17 00/13] ax88179_178a: Add support for AX88179A-based chips Birger Koblitz
2026-10-06 3:05 ` [PATCH net-next v17 01/13] phylink: Add phylink_mac_interrupt Birger Koblitz
2026-10-07 3:05 ` sashiko-bot
2026-10-07 3:55 ` Fwd: " Birger Koblitz
2026-10-07 12:18 ` Andrew Lunn
2026-10-07 14:16 ` Birger Koblitz
2026-10-08 3:34 ` Birger Koblitz
2026-10-06 3:05 ` [PATCH net-next v17 02/13] phylib: Add support for PHYs with broken forced mode Birger Koblitz
2026-10-07 3:05 ` sashiko-bot
2026-10-08 3:36 ` Birger Koblitz
2026-10-06 3:05 ` [PATCH net-next v17 03/13] ax88179_178a: Split driver into library and device specific code Birger Koblitz
2026-10-07 3:05 ` sashiko-bot
2026-10-08 3:38 ` Birger Koblitz
2026-10-06 3:05 ` [PATCH net-next v17 04/13] ax88179_178a: Add HW support for AX179A-based chips Birger Koblitz
2026-10-07 3:05 ` sashiko-bot
2026-10-08 3:41 ` Birger Koblitz
2026-10-06 3:05 ` [PATCH net-next v17 05/13] ax88179_178a: Add EEE configuration support for AX88179A MACs Birger Koblitz
2026-10-07 3:05 ` sashiko-bot
2026-10-06 3:05 ` [PATCH net-next v17 06/13] ax88179_178a: Add EEE configuration support for AX88179A PHYs Birger Koblitz
2026-10-07 3:05 ` sashiko-bot
2026-10-06 3:05 ` [PATCH net-next v17 07/13] ax88179_178a: Add VLAN offload support for AX88179A Birger Koblitz
2026-10-07 3:05 ` sashiko-bot
2026-10-08 3:44 ` Birger Koblitz
2026-10-06 3:05 ` [PATCH net-next v17 08/13] ax88179_178a: Add AX179A/AX279 multicast configuration Birger Koblitz
2026-10-07 3:05 ` sashiko-bot
2026-10-06 3:05 ` [PATCH net-next v17 09/13] ax88179_178a: Add Suspend/resume support for AX88179A/772D/279 Birger Koblitz
2026-10-07 3:05 ` sashiko-bot
2026-10-08 3:47 ` Birger Koblitz
2026-10-06 3:05 ` [PATCH net-next v17 10/13] ax88179_178a: Add ethtool get_drvinfo Birger Koblitz
2026-10-07 3:05 ` sashiko-bot
2026-10-06 3:05 ` [PATCH net-next v17 11/13] ax88179_178a: Update driver name and information Birger Koblitz
2026-10-07 3:05 ` sashiko-bot
2026-10-08 3:48 ` Birger Koblitz
2026-10-06 3:05 ` [PATCH net-next v17 12/13] ax88179_178a: Add support for AX88179A/772D/279 EEPROM access Birger Koblitz
2026-10-07 3:05 ` sashiko-bot
2026-10-06 3:05 ` [PATCH net-next v17 13/13] ax88796b: Add support for AX88772D, AX88179A and AX88279 Birger Koblitz
2026-10-07 3:05 ` sashiko-bot [this message]
2026-10-08 3:50 ` Birger Koblitz
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=sashiko-outbox-162613@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mail@birger-koblitz.de \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.