aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorPavan Chebbi <[email protected]>2022-07-11 22:26:18 -0400
committerJakub Kicinski <[email protected]>2022-07-12 20:35:56 -0700
commitddde5412fdaa5048bbca31529d46cb8da882870c (patch)
tree7b494232cb656a66fa43d8a449e4e5ee7171d258 /lib/netdev-notifier-error-inject.c
parent53f8c2d37efb5b03b9527ad04332df3bb889f0fa (diff)
bnxt_en: Fix bnxt_refclk_read()
The upper 32-bit PHC register is not latched when reading the lower 32-bit PHC register. Current code leaves a small window where we may not read correct higher order bits if the lower order bits are just about to wrap around. This patch fixes this by reading higher order bits twice and makes sure that final value is correctly paired with its lower 32 bits. Fixes: 30e96f487f64 ("bnxt_en: Do not read the PTP PHC during chip reset") Cc: Richard Cochran <[email protected]> Signed-off-by: Pavan Chebbi <[email protected]> Signed-off-by: Michael Chan <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions