mbox series

[v6,net-next,0/5] net: ethernet: mtk_wed: introduce reset support

Message ID cover.1673715298.git.lorenzo@kernel.org (mailing list archive)
Headers show
Series net: ethernet: mtk_wed: introduce reset support | expand

Message

Lorenzo Bianconi Jan. 14, 2023, 5:01 p.m. UTC
Introduce proper reset integration between ethernet and wlan drivers in order
to schedule wlan driver reset when ethernet/wed driver is resetting.
Introduce mtk_hw_reset_monitor work in order to detect possible DMA hangs.

Changes since v5:
- log error reported by reset callback
- convert reset_complete callback from int to void

Changes since v4:
- add missing usleep_range

Changes since v3:
- rely on msleep() utility instead of mdelay() in mtk_hw_init() and
  usleep_range() in mtk_ppe_prepare_reset() since the code runs in
  non-atomic context

Changes since v2:
- rebase on top of net-next
- move rtnl_lock/rtnl_unlock in reset callback
- re-run mtk_prepare_for_reset() after mtk_wed_fe_reset() acquiring RTNL lock

Changes since v1:
- rebase on top of net-next

Lorenzo Bianconi (5):
  net: ethernet: mtk_eth_soc: introduce mtk_hw_reset utility routine
  net: ethernet: mtk_eth_soc: introduce mtk_hw_warm_reset support
  net: ethernet: mtk_eth_soc: align reset procedure to vendor sdk
  net: ethernet: mtk_eth_soc: add dma checks to mtk_hw_reset_check
  net: ethernet: mtk_wed: add reset/reset_complete callbacks

 drivers/net/ethernet/mediatek/mtk_eth_soc.c  | 297 ++++++++++++++++---
 drivers/net/ethernet/mediatek/mtk_eth_soc.h  |  38 +++
 drivers/net/ethernet/mediatek/mtk_ppe.c      |  27 ++
 drivers/net/ethernet/mediatek/mtk_ppe.h      |   1 +
 drivers/net/ethernet/mediatek/mtk_ppe_regs.h |   6 +
 drivers/net/ethernet/mediatek/mtk_wed.c      |  42 +++
 drivers/net/ethernet/mediatek/mtk_wed.h      |   9 +
 include/linux/soc/mediatek/mtk_wed.h         |   2 +
 8 files changed, 383 insertions(+), 39 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Jan. 17, 2023, 10:50 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (master)
by Paolo Abeni <pabeni@redhat.com>:

On Sat, 14 Jan 2023 18:01:27 +0100 you wrote:
> Introduce proper reset integration between ethernet and wlan drivers in order
> to schedule wlan driver reset when ethernet/wed driver is resetting.
> Introduce mtk_hw_reset_monitor work in order to detect possible DMA hangs.
> 
> Changes since v5:
> - log error reported by reset callback
> - convert reset_complete callback from int to void
> 
> [...]

Here is the summary with links:
  - [v6,net-next,1/5] net: ethernet: mtk_eth_soc: introduce mtk_hw_reset utility routine
    https://git.kernel.org/netdev/net-next/c/bccd19bce0b6
  - [v6,net-next,2/5] net: ethernet: mtk_eth_soc: introduce mtk_hw_warm_reset support
    https://git.kernel.org/netdev/net-next/c/a9724b9c477f
  - [v6,net-next,3/5] net: ethernet: mtk_eth_soc: align reset procedure to vendor sdk
    https://git.kernel.org/netdev/net-next/c/06127504c282
  - [v6,net-next,4/5] net: ethernet: mtk_eth_soc: add dma checks to mtk_hw_reset_check
    https://git.kernel.org/netdev/net-next/c/93b2591ad0d0
  - [v6,net-next,5/5] net: ethernet: mtk_wed: add reset/reset_complete callbacks
    https://git.kernel.org/netdev/net-next/c/08a764a7c51b

You are awesome, thank you!