linux/drivers/net/ethernet/broadcom/bnxt
Pavan Chebbi ddde5412fd 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: 30e96f487f ("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>
2022-07-12 20:35:56 -07:00
..
Makefile bnxt_en: move coredump functions into dedicated file 2021-10-29 12:13:05 +01:00
bnxt.c bnxt_en: Fix bnxt_reinit_after_abort() code path 2022-07-12 20:35:55 -07:00
bnxt.h bnxt_en: reclaim max resources if sriov enable fails 2022-07-12 20:35:54 -07:00
bnxt_coredump.c bnxt_en: use firmware provided max timeout for messages 2022-01-09 16:27:23 -08:00
bnxt_coredump.h bnxt_en: move coredump functions into dedicated file 2021-10-29 12:13:05 +01:00
bnxt_dcb.c bnxt_en: Properly report no pause support on some cards 2022-03-05 11:16:56 +00:00
bnxt_dcb.h bnxt_en: Use struct_group_attr() for memcpy() region 2021-09-25 08:20:48 -07:00
bnxt_debugfs.c
bnxt_debugfs.h
bnxt_devlink.c bnxt_en: fix livepatch query 2022-07-12 20:35:55 -07:00
bnxt_devlink.h bnxt: revert hastily merged uAPI aberrations 2022-03-09 19:55:00 -08:00
bnxt_dim.c
bnxt_ethtool.c bnxt_en: parse and report result field when NVRAM package install fails 2022-05-13 12:47:40 +01:00
bnxt_ethtool.h bnxt_en: parse and report result field when NVRAM package install fails 2022-05-13 12:47:40 +01:00
bnxt_fw_hdr.h
bnxt_hsi.h bnxt_en: Update firmware interface to 1.10.2.95 2022-05-13 12:47:40 +01:00
bnxt_hwrm.c bnxt_en: Increase firmware message response DMA wait time 2022-02-20 13:47:15 +00:00
bnxt_hwrm.h bnxt_en: Increase firmware message response DMA wait time 2022-02-20 13:47:15 +00:00
bnxt_nvm_defs.h
bnxt_ptp.c bnxt_en: Fix bnxt_refclk_read() 2022-07-12 20:35:56 -07:00
bnxt_ptp.h bnxt_en: Configure ptp filters during bnxt open 2022-05-13 12:47:40 +01:00
bnxt_sriov.c bnxt_en: reclaim max resources if sriov enable fails 2022-07-12 20:35:54 -07:00
bnxt_sriov.h ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
bnxt_tc.c flow_offload: reject to offload tc actions in offload drivers 2021-12-19 14:08:47 +00:00
bnxt_tc.h
bnxt_ulp.c eth: bnxt: make ulp_id unsigned to make GCC 12 happy 2022-05-20 17:30:19 -07:00
bnxt_ulp.h eth: bnxt: make ulp_id unsigned to make GCC 12 happy 2022-05-20 17:30:19 -07:00
bnxt_vfr.c devlink: hold the instance lock during eswitch_mode callbacks 2022-03-21 14:11:38 +00:00
bnxt_vfr.h bnxt_en: Free and allocate VF-Reps during error recovery. 2021-04-12 13:20:38 -07:00
bnxt_xdp.c bnxt_en: Fix and simplify XDP transmit path 2022-07-12 20:35:55 -07:00
bnxt_xdp.h bnxt: support transmit and free of aggregation buffers 2022-04-08 11:52:48 +01:00