bnxt_en: fix free-runnig PHC mode
authorVadim Fedorenko <vadfed@meta.com>
Tue, 18 Apr 2023 20:25:11 +0000 (13:25 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 20 Apr 2023 00:43:07 +0000 (17:43 -0700)
commit8c154d272c3e03b100baaf1df473f22a78fa403e
tree69c17f3cc28fd66670071d1bf269d79f5935e35b
parent3d2f8f1f184c60508f7af3022536651d7ac2dd07
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: 131db4991622 ("bnxt_en: reset PHC frequency in free-running mode")
Signed-off-by: Vadim Fedorenko <vadfed@meta.com>
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Link: https://lore.kernel.org/r/20230418202511.1544735-1-vadfed@meta.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c