Commit bd7f77da authored by Lai Peter Jun Ann's avatar Lai Peter Jun Ann Committed by David S. Miller

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: aa5513f5 ("net: stmmac: replace the ext_snapshot_en field with a flag")
Cc: <stable@vger.kernel.org> # 6.6
Signed-off-by: default avatarSong Yoong Siang <yoong.siang.song@intel.com>
Signed-off-by: default avatarLai Peter Jun Ann <jun.ann.lai@intel.com>
Reviewed-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Reviewed-by: default avatarSerge Semin <fancer.lancer@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 498444e3
...@@ -237,7 +237,7 @@ static void timestamp_interrupt(struct stmmac_priv *priv) ...@@ -237,7 +237,7 @@ static void timestamp_interrupt(struct stmmac_priv *priv)
*/ */
ts_status = readl(priv->ioaddr + GMAC_TIMESTAMP_STATUS); ts_status = readl(priv->ioaddr + GMAC_TIMESTAMP_STATUS);
if (priv->plat->flags & STMMAC_FLAG_EXT_SNAPSHOT_EN) if (!(priv->plat->flags & STMMAC_FLAG_EXT_SNAPSHOT_EN))
return; return;
num_snapshot = (ts_status & GMAC_TIMESTAMP_ATSNS_MASK) >> num_snapshot = (ts_status & GMAC_TIMESTAMP_ATSNS_MASK) >>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment