[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 <joseph.wong@broadcom.com>
This commit is contained in:
Joseph Wong
2026-02-20 10:15:17 -08:00
committed by Michael Brown
parent a5e4bb98bf
commit 1eb571cef4
+1 -1
View File
@@ -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 )