net: stmmac: fix incorrect flag check in timestamp interrupt
authorLai Peter Jun Ann <jun.ann.lai@intel.com>
Mon, 18 Dec 2023 07:51:32 +0000 (15:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Dec 2023 11:21:10 +0000 (11:21 +0000)
commitbd7f77dae69532ffc027ee50ff99e3792dc30b7f
tree3039bee61c4bec18f733867b0d23ea456ab8e08b
parent498444e390b48134e550c9d65b5a1b1f56745acd
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: aa5513f5d95f ("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>
drivers/net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c