Searched hist:"865 fce80b799dfba06699fb7b89c2a45f3c40fe6" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/net/ |
| H A D | dwc_eth_qos.c | 865fce80b799dfba06699fb7b89c2a45f3c40fe6 Mon Mar 23 01:09:21 UTC 2020 Marek Vasut <marex@denx.de> UPSTREAM: net: dwc_eth_qos: Invalidate RX descriptor before reading
The current code polls the RX desciptor ring for new packets by reading the RX descriptor status. This works by accident, as the RX descriptors are often in non-cacheable memory. However, the driver does support use of RX descriptors in cacheable memory.
This patch adds a missing RX descriptor invalidation, which assures the CPU will read a fresh copy of the RX descriptor instead of a cached one.
Reviewed-by: Patrick Delaunay <patrick.delaunay@st.com> Signed-off-by: Marek Vasut <marex@denx.de> Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Patrice Chotard <patrice.chotard@st.com> Cc: Patrick Delaunay <patrick.delaunay@st.com> Cc: Ramon Fried <rfried.dev@gmail.com> Cc: Stephen Warren <swarren@nvidia.com> Signed-off-by: David Wu <david.wu@rock-chips.com> Change-Id: Ia05e8a43d707088bc3699b7d00434c8d12d2692f
|