summaryrefslogtreecommitdiff
path: root/doc/develop
diff options
context:
space:
mode:
authorMeng Li <[email protected]>2024-12-23 10:41:04 +0800
committerFabio Estevam <[email protected]>2024-12-23 08:09:53 -0300
commit2f74cac8c324339eaf123a2e7d602b4568d87ce1 (patch)
tree55debd9473f0cc189879ab06cef325687402ac85 /doc/develop
parent7f02219eb6acea0febd4e29cb2c5192b762ed213 (diff)
net: fec_mxc: add DM_FLAG_ACTIVE_DMA flag for FEC network driver
When FEC network card works as the prime one in u-boot, and is in active status, kernel might crash during booting up stage, especially working with grub. Because the DMA of FEC is still in active status, and copy data into memory if there is network data received. In this case, if kernel allocated a part of memory that has overlay with the memory used by DMA, kernel memory may be destroyed and cause kernel crashes. Because before kernel boots up really, u-boot dm_remove_devices_flags() can call the remove callback of FEC driver with DM_FLAG_ACTIVE_DMA flag. In fecmxc_remove(), phy power is disabled, so there is no data received. In this way, it makes sure that there is no DMA action, so that avoid kernel crashing occurs. Signed-off-by: Meng Li <[email protected]>
Diffstat (limited to 'doc/develop')
0 files changed, 0 insertions, 0 deletions