]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: fec_mxc: Skip recv packet process when fec is halted
authorYe Li <ye.li@nxp.com>
Tue, 24 Sep 2024 07:32:00 +0000 (15:32 +0800)
committerFabio Estevam <festevam@gmail.com>
Tue, 24 Sep 2024 19:55:14 +0000 (16:55 -0300)
commit99abeaa648052e8e99682f046b8dfd3739b4e181
treecd9fc129986df27bc029e1c954211c8132afcb9a
parent94d02f13dbc582cf0644a53da33cc4ad9213661f
net: fec_mxc: Skip recv packet process when fec is halted

After FEC is halted by calling fec_halt callback, we should not continue
receiving packet. Otherwise it will process previous pending interrupts
on EIR register and uses wrong rbd index as this has been reset to 0.

The GRA interrupt which is triggered by issuing graceful stop command to
FEC transmitter in fec_halt is processed in this case. It causes wrong
receive buffer descriptors be used by FEC in next time.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/net/fec_mxc.c