Hi all, Here are a couple of race condition fixes for the macb driver. The first two are for issues observed at runtime on real HW.
v2: - added received Tested-bys and Acked-bys to the first two patches - in patch 3/3, moved the timestamp protection barrier closer to the timestamp reads - in patch 3/3, removed unnecessary move of the addr assignment in gem_rx() to keep the patch minimal for maximum clarity - in patch 3/3, clarified commit message and comments The 3/3 is the same one I improperly sent last week as a standalone patch. Anssi Hannula (3): net: macb: fix random memory corruption on RX with 64-bit DMA net: macb: fix dropped RX frames due to a race net: macb: add missing barriers when reading descriptors drivers/net/ethernet/cadence/macb_main.c | 27 +++++++++++++++++++----- drivers/net/ethernet/cadence/macb_ptp.c | 2 ++ 2 files changed, 24 insertions(+), 5 deletions(-) -- Anssi Hannula / Bitwise Oy