Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 027f426d authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by David S. Miller
Browse files

ftgmac100: Add missing barrier in ftgmac100_rx_packet()

parent 7b49cd1c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -444,6 +444,9 @@ static bool ftgmac100_rx_packet(struct ftgmac100 *priv, int *processed)
	if (!ftgmac100_rxdes_packet_ready(rxdes))
		return false;

	/* Order subsequent reads with the test for the ready bit */
	dma_rmb();

	/* We don't cope with fragmented RX packets */
	if (unlikely(!ftgmac100_rxdes_first_segment(rxdes) ||
		     !ftgmac100_rxdes_last_segment(rxdes)))