mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-22 04:44:46 +00:00
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>
This commit is contained in:
parent
39f315e942
commit
83fe92f3cf
1 changed files with 1 additions and 1 deletions
|
@ -817,5 +817,5 @@ U_BOOT_DRIVER(am65_cpsw_nuss_port) = {
|
||||||
.ops = &am65_cpsw_ops,
|
.ops = &am65_cpsw_ops,
|
||||||
.priv_auto = sizeof(struct am65_cpsw_priv),
|
.priv_auto = sizeof(struct am65_cpsw_priv),
|
||||||
.plat_auto = sizeof(struct eth_pdata),
|
.plat_auto = sizeof(struct eth_pdata),
|
||||||
.flags = DM_FLAG_ALLOC_PRIV_DMA,
|
.flags = DM_FLAG_ALLOC_PRIV_DMA | DM_FLAG_OS_PREPARE,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue