From 1eb571cef4f21647f55691c7b2c28588a8e66870 Mon Sep 17 00:00:00 2001 From: Joseph Wong Date: Fri, 20 Feb 2026 10:15:17 -0800 Subject: [PATCH] [bnxt] Remove access of deprecated link speed variables Remove access of deprecated link speed variables for 5750x devices. Update test flag to include CHIP_P5_PLUS when excluding access of certain NVM variables. Signed-off-by: Joseph Wong --- src/drivers/net/bnxt/bnxt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/net/bnxt/bnxt.c b/src/drivers/net/bnxt/bnxt.c index 54ed7b00d..f79b54968 100644 --- a/src/drivers/net/bnxt/bnxt.c +++ b/src/drivers/net/bnxt/bnxt.c @@ -1347,7 +1347,7 @@ static int bnxt_get_link_speed ( struct bnxt *bp ) u32 *ptr32 = ( u32 * ) DMA_DMA_ADDR ( bp ); DBGP ( "%s\n", __func__ ); - if ( ! ( FLAG_TEST (bp->flags, BNXT_FLAG_IS_CHIP_P7 ) ) ) { + if ( ! ( FLAG_TEST (bp->flags, BNXT_FLAG_IS_CHIP_P5_PLUS ) ) ) { if ( bnxt_hwrm_nvm_get_variable_req ( bp, 4, ( u16 ) LINK_SPEED_DRV_NUM, 1, ( u16 ) bp->port_idx ) != STATUS_SUCCESS )