]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: ethernet: ti: am65-cpsw-nuss: cleanup DMA Channels before using them
authorSiddharth Vadapalli <s-vadapalli@ti.com>
Wed, 17 Apr 2024 09:54:25 +0000 (15:24 +0530)
committerJakub Kicinski <kuba@kernel.org>
Thu, 18 Apr 2024 16:57:03 +0000 (09:57 -0700)
commitc24cd679b075b0e953ea167b0aa2b2d59e4eba7f
tree20673457e0452643705797151e1d8b090492fff9
parent56f78615bcb1c3ba58a5d9911bad3d9185cf141b
net: ethernet: ti: am65-cpsw-nuss: cleanup DMA Channels before using them

The TX and RX DMA Channels used by the driver to exchange data with CPSW
are not guaranteed to be in a clean state during driver initialization.
The Bootloader could have used the same DMA Channels without cleaning them
up in the event of failure. Thus, reset and disable the DMA Channels to
ensure that they are in a clean state before using them.

Fixes: 93a76530316a ("net: ethernet: ti: introduce am65x/j721e gigabit eth subsystem driver")
Reported-by: Schuyler Patton <spatton@ti.com>
Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Link: https://lore.kernel.org/r/20240417095425.2253876-1-s-vadapalli@ti.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ti/am65-cpsw-nuss.c