The first two patches of this series extends the MAC statistics support to also work for network interfaces which have their link status handled by firmware (TYPE_FIXED).
The next two patches are fixing a sporadic problem which happens when the connected DPMAC object is not yet discovered by the fsl-mc bus, thus the dpaa2-eth is not able to get a reference to it. A referred probe will be requested in this case. Finally, the last two patches make some cosmetic changes, mostly removing comments and unnecessary checks. Changes in v2: - replaced IS_ERR_OR_NULL() by IS_ERR() in patch 4/6 - reworded the commit message of patch 6/6 Ioana Ciornei (6): dpaa2-mac: split up initializing the MAC object from connecting to it dpaa2-mac: export MAC counters even when in TYPE_FIXED bus: fsl-mc: return -EPROBE_DEFER when a device is not yet discovered dpaa2-eth: retry the probe when the MAC is not yet discovered on the bus dpaa2-mac: remove an unnecessary check dpaa2-mac: remove a comment regarding pause settings drivers/bus/fsl-mc/fsl-mc-bus.c | 9 ++ .../net/ethernet/freescale/dpaa2/dpaa2-eth.c | 53 ++++--- .../net/ethernet/freescale/dpaa2/dpaa2-eth.h | 13 ++ .../ethernet/freescale/dpaa2/dpaa2-ethtool.c | 16 +-- .../net/ethernet/freescale/dpaa2/dpaa2-mac.c | 135 ++++++++---------- .../net/ethernet/freescale/dpaa2/dpaa2-mac.h | 5 + 6 files changed, 126 insertions(+), 105 deletions(-) -- 2.29.2