linux/drivers/net/ethernet/broadcom/bnxt
Vadim Fedorenko 131db49916 bnxt_en: reset PHC frequency in free-running mode
When using a PHC in shared between multiple hosts, the previous
frequency value may not be reset and could lead to host being unable to
compensate the offset with timecounter adjustments. To avoid such state
reset the hardware frequency of PHC to zero on init. Some refactoring is
needed to make code readable.

Fixes: 85036aee19 ("bnxt_en: Add a non-real time mode to access NIC clock")
Signed-off-by: Vadim Fedorenko <vadfed@meta.com>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Link: https://lore.kernel.org/r/20230310151356.678059-1-vadfed@meta.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-03-13 15:57:31 -07:00
..
Makefile bnxt_en: move coredump functions into dedicated file 2021-10-29 12:13:05 +01:00
bnxt.c bnxt_en: reset PHC frequency in free-running mode 2023-03-13 15:57:31 -07:00
bnxt.h bnxt_en: reset PHC frequency in free-running mode 2023-03-13 15:57:31 -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 devlink: remove devlink features 2023-01-30 08:37:46 +00: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: Do not read past the end of test names 2023-01-20 12:52:29 +00:00
bnxt_ethtool.h bnxt_en: implement callbacks for devlink selftests 2022-07-28 21:56:53 -07:00
bnxt_fw_hdr.h
bnxt_hsi.h bnxt: Do not read past the end of test names 2023-01-20 12:52:29 +00:00
bnxt_hwrm.c bnxt_en: fix the handling of PCIE-AER 2022-11-04 19:29:02 -07: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: reset PHC frequency in free-running mode 2023-03-13 15:57:31 -07:00
bnxt_ptp.h bnxt_en: Add a non-real time mode to access NIC clock 2022-11-08 12:39:02 +01:00
bnxt_sriov.c RDMA/bnxt_re: Remove the sriov config callback 2023-02-01 19:02:18 -08: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 bnxt_en: Fix the double free during device removal 2023-03-06 09:36:08 +00:00
bnxt_ulp.h bnxt_en: Remove runtime interrupt vector allocation 2023-02-01 19:02:20 -08:00
bnxt_vfr.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07: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 drivers: net: turn on XDP features 2023-02-02 20:48:23 -08:00
bnxt_xdp.h bnxt_en: Fix XDP RX path 2022-12-28 10:16:57 +00:00