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: <stable@vger.kernel.org> # 6.6 Signed-off-by: Song Yoong Siang <yoong.siang.song@intel.com> Signed-off-by: Lai Peter Jun Ann <jun.ann.lai@intel.com> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Reviewed-by: Serge Semin <fancer.lancer@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 498444e commit bd7f77d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)