Re: [PATCH net-next 01/12] net: stmmac: Get correct timestamp values from XGMAC

2019-08-09 Thread David Miller
From: Jose Abreu Date: Fri, 9 Aug 2019 20:36:09 +0200 > + void __iomem *ioaddr = hw->pcsr; > + int count = 0; > + u32 value; > + > + do { > + if (readl_poll_timeout_atomic(ioaddr + XGMAC_TIMESTAMP_STATUS, > + value, value & XG

[PATCH net-next 01/12] net: stmmac: Get correct timestamp values from XGMAC

2019-08-09 Thread Jose Abreu
TX Timestamp in XGMAC comes from MAC instead of descriptors. Implement this in a new callback. Also, RX Timestamp in XGMAC must be cheked against corruption and we need a barrier to make sure that descriptor fields are read correctly. Signed-off-by: Jose Abreu --- .../net/ethernet/stmicro/stmma