Patch "bnxt_en: Do not initialize PTP on older P3/P4 chips" has been added to the 6.1-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    bnxt_en: Do not initialize PTP on older P3/P4 chips

to the 6.1-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     bnxt_en-do-not-initialize-ptp-on-older-p3-p4-chips.patch
and it can be found in the queue-6.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 8520075971deb6e6077d37641270ba537e6b0c92
Author: Michael Chan <michael.chan@xxxxxxxxxxxx>
Date:   Sun Apr 16 23:58:18 2023 -0700

    bnxt_en: Do not initialize PTP on older P3/P4 chips
    
    [ Upstream commit e8b51a1a15d5a3cce231e0669f6a161dc5bb9b75 ]
    
    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: ae5c42f0b92c ("bnxt_en: Get PTP hardware capability from firmware")
    Signed-off-by: Michael Chan <michael.chan@xxxxxxxxxxxx>
    Signed-off-by: Paolo Abeni <pabeni@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
index c6e36603bd2db..e3e5a427222f6 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
@@ -7597,7 +7597,7 @@ static int __bnxt_hwrm_ptp_qcfg(struct bnxt *bp)
 	u8 flags;
 	int rc;
 
-	if (bp->hwrm_spec_code < 0x10801) {
+	if (bp->hwrm_spec_code < 0x10801 || !BNXT_CHIP_P5_THOR(bp)) {
 		rc = -ENODEV;
 		goto no_ptp;
 	}



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux