projects
/
platform
/
kernel
/
linux-rpi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: stmmac: replace the ext_snapshot_en field with a flag
[platform/kernel/linux-rpi.git]
/
drivers
/
net
/
ethernet
/
stmicro
/
stmmac
/
stmmac_hwtstamp.c
diff --git
a/drivers/net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c
b/drivers/net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c
index
8b50f03
..
afd81aa
100644
(file)
--- a/
drivers/net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c
+++ b/
drivers/net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c
@@
-195,7
+195,7
@@
static void timestamp_interrupt(struct stmmac_priv *priv)
*/
ts_status = readl(priv->ioaddr + GMAC_TIMESTAMP_STATUS);
- if (
!priv->plat->ext_snapshot_en
)
+ if (
priv->plat->flags & STMMAC_FLAG_EXT_SNAPSHOT_EN
)
return;
num_snapshot = (ts_status & GMAC_TIMESTAMP_ATSNS_MASK) >>