net: phy: aquantia: clear PMD Global Transmit Disable bit during init
authorRobert Marko <robimarko@gmail.com>
Sun, 11 Feb 2024 18:16:41 +0000 (19:16 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 13 Feb 2024 14:46:42 +0000 (15:46 +0100)
commitbed90b06b6812d9c8c848414b090ddf38f0e6cc1
tree46ff373ff8111f95f4e1ecc95ef377a6bbea3d23
parent32c7eec21c11e149a9195cf0d48cc530d1e5a637
net: phy: aquantia: clear PMD Global Transmit Disable bit during init

PMD Global Transmit Disable bit should be cleared for normal operation.
This should be HW default, however I found that on Asus RT-AX89X that uses
AQR113C PHY and firmware 5.4 this bit is set by default.

With this bit set the AQR cannot achieve a link with its link-partner and
it took me multiple hours of digging through the vendor GPL source to find
this out, so lets always clear this bit during .config_init() to avoid a
situation like this in the future.

Signed-off-by: Robert Marko <robimarko@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20240211181732.646311-1-robimarko@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/phy/aquantia/aquantia_main.c