Skip to content

Commit bd7f77d

Browse files
JunAnnLaiInteldavem330
authored andcommitted
net: stmmac: fix incorrect flag check in timestamp interrupt
The driver should continue get the timestamp if STMMAC_FLAG_EXT_SNAPSHOT_EN flag is set. Fixes: aa5513f ("net: stmmac: replace the ext_snapshot_en field with a flag") Cc: <[email protected]> # 6.6 Signed-off-by: Song Yoong Siang <[email protected]> Signed-off-by: Lai Peter Jun Ann <[email protected]> Reviewed-by: Jacob Keller <[email protected]> Reviewed-by: Serge Semin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 498444e commit bd7f77d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ static void timestamp_interrupt(struct stmmac_priv *priv)
237237
*/
238238
ts_status = readl(priv->ioaddr + GMAC_TIMESTAMP_STATUS);
239239

240-
if (priv->plat->flags & STMMAC_FLAG_EXT_SNAPSHOT_EN)
240+
if (!(priv->plat->flags & STMMAC_FLAG_EXT_SNAPSHOT_EN))
241241
return;
242242

243243
num_snapshot = (ts_status & GMAC_TIMESTAMP_ATSNS_MASK) >>

0 commit comments

Comments
 (0)