Searched hist:ddde5412 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_ptp.c | ddde5412 Mon Jul 11 21:26:18 CDT 2022 Pavan Chebbi <pavan.chebbi@broadcom.com> 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 <richardcochran@gmail.com> Signed-off-by: Pavan Chebbi <pavan.chebbi@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|