[PATCH 2/6] net: dwc_eth_qos: Correctly wrap around TX descriptor tail pointer

Patrick DELAUNAY patrick.delaunay at st.com
Mon Apr 6 16:04:05 CEST 2020


Dear Marek,

> From: Marek Vasut <marex at denx.de>
> Sent: lundi 23 mars 2020 02:45
> 
> This code programs the next descriptor in the TX descriptor ring into the hardware
> as the last valid TX descriptor. The problem is that if the currenty descriptor is the
> last one in the array, the code will not wrap around correctly and use TX
> descriptor 0 again, but instead will use TX descriptor at address right past the TX
> descriptor ring, which is the first descriptor in the RX ring.
> 
> Fix this by adding the necessary wrap-around.
> 
> Signed-off-by: Marek Vasut <marex at denx.de>
> Cc: Joe Hershberger <joe.hershberger at ni.com>
> Cc: Patrice Chotard <patrice.chotard at st.com>
> Cc: Patrick Delaunay <patrick.delaunay at st.com>
> Cc: Ramon Fried <rfried.dev at gmail.com>
> Cc: Stephen Warren <swarren at nvidia.com>
> ---

Reviewed-by: Patrick Delaunay <patrick.delaunay at st.com>

Thanks

Patrick


More information about the U-Boot mailing list