mbox series

[net-next,0/5] net: tn40xx: add support for AQR105 based cards (was: net: phy: aquantia: emable firmware loading for aqr105)

Message ID trinity-33332a4a-1c44-46b7-8526-b53b1a94ffc2-1726082106356@3c-app-gmx-bs04 (mailing list archive)
Headers show
Series net: tn40xx: add support for AQR105 based cards (was: net: phy: aquantia: emable firmware loading for aqr105) | expand

Message

Hans-Frieder Vogt Sept. 11, 2024, 7:15 p.m. UTC
This patch series adds support to the Tehuti tn40xx driver for TN9510 cards
which combine a TN4010 MAC with an Aquantia AQR105.
It is a replacement for the proposed patch series "net: phy: aquantia: enable
firmware loading for aqr105 on PCIe cards" for firmware loading to Aquantia PHYs
from the filesystem, see
https://lore.kernel.org/netdev/c7c1a3ae-be97-4929-8d89-04c8aa870209@gmx.net/

As suggested by Andrew Lunn, I have replaced the potentially unreliable
firmware-name composition deriving a name from MDIO and phy names with a
more robust method, where the MAC provides a file name via software nodes.

Therefore, this is now a combined patch series adding functionality to the
aquantia PHY driver to read a file name from swnode and to the tn40xx MAC driver
to create the swnode.
Additionally, a few small changes are added to allow firmware loading from the
filesystem for the Aquantia AQR105 phy and loading of the tn40xx driver for the
TN9510 card (TN4010 MAC + AQR105 PHY).

The patch was tested on a Tehuti TN9510 card (1fc9:4025).

Hans-Frieder Vogt (5):
   net: phy: aquantia: add probe function to aqr105 for firmware loading
   net: phy: aquantia: allow firmware loading after aqr_wait_reset_complete
   net: phy: aquantia: search for firmware-name in fwnode
   net: tn40xx: enable driver to support TN4010 cards with AQR105 PHY
   net: tn40xx: register swnode and connect it to the mdiobus

 drivers/net/ethernet/tehuti/tn40.c             |    4 +
 drivers/net/ethernet/tehuti/tn40.c             |   10 +++
 drivers/net/ethernet/tehuti/tn40.h             |   25 +++++++++
 drivers/net/ethernet/tehuti/tn40_mdio.c        |   63 ++++++++++++++++++++++++-
 drivers/net/phy/aquantia/aquantia_firmware.c   |    2
 drivers/net/phy/aquantia/aquantia_firmware.c   |   25 +++++++++
 drivers/net/phy/aquantia/aquantia_main.c       |    1
 7 files changed, 126 insertions(+), 4 deletions(-)