Skip to content

Commit 8c154d2

Browse files
vvfedorenkokuba-moo
authored andcommitted
bnxt_en: fix free-runnig PHC mode
The patch in fixes changed the way real-time mode is chosen for PHC on the NIC. Apparently there is one more use case of the check outside of ptp part of the driver which was not converted to the new macro and is making a lot of noise in free-running mode. Fixes: 131db49 ("bnxt_en: reset PHC frequency in free-running mode") Signed-off-by: Vadim Fedorenko <[email protected]> Reviewed-by: Michael Chan <[email protected]> Reviewed-by: Pavan Chebbi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 3d2f8f1 commit 8c154d2

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/broadcom/bnxt

1 file changed

+1
-1
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2388,7 +2388,7 @@ static int bnxt_async_event_process(struct bnxt *bp,
23882388
case ASYNC_EVENT_CMPL_EVENT_ID_PHC_UPDATE: {
23892389
switch (BNXT_EVENT_PHC_EVENT_TYPE(data1)) {
23902390
case ASYNC_EVENT_CMPL_PHC_UPDATE_EVENT_DATA1_FLAGS_PHC_RTC_UPDATE:
2391-
if (bp->fw_cap & BNXT_FW_CAP_PTP_RTC) {
2391+
if (BNXT_PTP_USE_RTC(bp)) {
23922392
struct bnxt_ptp_cfg *ptp = bp->ptp_cfg;
23932393
u64 ns;
23942394

0 commit comments

Comments
 (0)