Reconfigure MTL_EST registers after sw reset in __stmmac_open().
Remove priv->est->enable dependency in est_configure().
Initialize est_lock at probe time.
Changes in v5:
- Reconfigure preemption_class in stmmac_setup_est().
- Bail out in stmmac_setup_est() if ptp is not enabled.
- Link to v4: https://lore.kernel.org/r/20261026-stmmac-est-fixes-v4-0-999dac4de44f@oss.qualcomm.com (local)
Changes in v4:
- Rebase on top of net main branch
Changes in v3:
- Guard priv->est.enable update using est_lock mutex.
- Embed stmmac_est in stmmac_priv struct.
- Rework locking in tc_taprio_configure().
- Fix possible divided by zero crash in tc_taprio_configure().
- Add missing reconfiguration during stmmac_resume().
- Honor ptp error code in __stmmac_open() and stmmac_resume().
- Link to v2: https://lore.kernel.org/r/20260829-stmmac-est-reapply-after-open-v2-1-5e5ccb185e92@oss.qualcomm.com (local)
Changes in v2:
- Rename stmmac_est_reconfigure() in stmmac_setup_est().
- Rely on stmmac_setup_est() in tc_taprio_configure().
- Link to v1: https://lore.kernel.org/r/20260825-stmmac-est-reapply-after-open-v1-1-dfa80735e0a1@oss.qualcomm.com (local)
---
Lorenzo Bianconi (3):
net: stmmac: initialize est_lock at probe time
net: stmmac: pass the desired EST enable state to est_configure()
net: stmmac: re-apply taprio offload in __stmmac_open() and stmmac_resume()
drivers/net/ethernet/stmicro/stmmac/hwif.h | 2 +-
drivers/net/ethernet/stmicro/stmmac/stmmac.h | 1 +
drivers/net/ethernet/stmicro/stmmac/stmmac_est.c | 61 ++++++++++++++-
drivers/net/ethernet/stmicro/stmmac/stmmac_est.h | 8 ++
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 13 +++-
drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c | 46 +++--------
drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c | 94 ++++++++++++++---------
7 files changed, 148 insertions(+), 77 deletions(-)
---
base-commit: d2bfe74a8fe219a86b86c1f126e1d722a5001790
change-id: 20261026-stmmac-est-fixes-13557ed8ab20
Best regards,
--
Lorenzo Bianconi [off-list ref]