]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: use correct define to get rx timestamp on GMAC4
authorAlexandre Torgue <alexandre.torgue@st.com>
Thu, 14 Feb 2019 16:03:44 +0000 (17:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Feb 2019 02:13:58 +0000 (18:13 -0800)
commit8167cff7c06db1ea3a4f60dba2bdae878fe4795a
tree215778932d2db2f262f997007a84ea1eff53d1e1
parent6253998e330d0451cfeb117e9942057bf6ed79dd
net: stmmac: use correct define to get rx timestamp on GMAC4

In dwmac4_wrback_get_rx_timestamp_status we looking for a RX timestamp.
For that receive descriptors are handled and so we should use defines
related to receive descriptors. It'll no change the functional behavior
as RDES3_RDES1_VALID=TDES3_RS1V=BIT(26) but it makes code easier to read.

Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c