linux/drivers/net/ethernet/broadcom
Michael Chan fa82a725e8 bnxt_en: Do not initialize PTP on older P3/P4 chips
[ Upstream commit e8b51a1a15 ]

The driver does not support PTP on these older chips and it is assuming
that firmware on these older chips will not return the
PORT_MAC_PTP_QCFG_RESP_FLAGS_HWRM_ACCESS flag in __bnxt_hwrm_ptp_qcfg(),
causing the function to abort quietly.

But newer firmware now sets this flag and so __bnxt_hwrm_ptp_qcfg()
will proceed further.  Eventually it will fail in bnxt_ptp_init() ->
bnxt_map_ptp_regs() because there is no code to support the older chips.
The driver will then complain:

"PTP initialization failed.\n"

Fix it so that we abort quietly earlier without going through the
unnecessary steps and alarming the user with the warning log.

Fixes: ae5c42f0b9 ("bnxt_en: Get PTP hardware capability from firmware")
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-04-26 14:28:34 +02:00
..
bnx2x
bnxt bnxt_en: Do not initialize PTP on older P3/P4 chips 2023-04-26 14:28:34 +02:00
genet net: bcmgenet: Add a check for oversized packets 2023-03-10 09:33:51 +01:00
b44.c
b44.h
bcm63xx_enet.c
bcm63xx_enet.h
bcm4908_enet.c
bcm4908_enet.h
bcmsysport.c
bcmsysport.h
bgmac-bcma-mdio.c
bgmac-bcma.c net: bgmac: fix BCM5358 support by setting correct flags 2023-02-22 12:59:51 +01:00
bgmac-platform.c
bgmac.c bgmac: fix *initial* chip reset to support BCM5358 2023-03-17 08:50:22 +01:00
bgmac.h bgmac: fix *initial* chip reset to support BCM5358 2023-03-17 08:50:22 +01:00
bnx2_fw.h
bnx2.c
bnx2.h
cnic_defs.h
cnic_if.h
cnic.c
cnic.h
Kconfig
Makefile
sb1250-mac.c
tg3.c net/tg3: resolve deadlock in tg3_reset_task() during EEH 2023-02-01 08:34:48 +01:00
tg3.h
unimac.h