]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: ti: am65-cpsw: Cleanup resources before jump to kernel
authorVignesh Raghavendra <vigneshr@ti.com>
Fri, 28 Jan 2022 05:51:19 +0000 (11:21 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 3 Feb 2022 17:15:35 +0000 (12:15 -0500)
commit83fe92f3cfd426429f10a37d93b8c04cd05d8c3a
treed006a94abc484ee7a53f573ebaf44dffac101559
parent39f315e9420bacca558972f2d3add8e0ac34fad8
net: ti: am65-cpsw: Cleanup resources before jump to kernel

In case fastboot over Ethernet, am65_cpsw_stop() is not called unless
DM_FLAG_OS_PREPARE is set. Without call to am65_cpsw_stop(), DMA
resources are not released thus leading to failures in kernel.
Fix this by adding DM_FLAG_OS_PREPARE flag to am65_cpsw_nuss_port
driver.

Reported-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
drivers/net/ti/am65-cpsw-nuss.c