mirror of
https://github.com/ipxe/ipxe
synced 2026-05-16 15:00:48 +03:00
[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:
committed by
Michael Brown
parent
a5e4bb98bf
commit
1eb571cef4
@@ -1347,7 +1347,7 @@ static int bnxt_get_link_speed ( struct bnxt *bp )
|
|||||||
u32 *ptr32 = ( u32 * ) DMA_DMA_ADDR ( bp );
|
u32 *ptr32 = ( u32 * ) DMA_DMA_ADDR ( bp );
|
||||||
|
|
||||||
DBGP ( "%s\n", __func__ );
|
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,
|
if ( bnxt_hwrm_nvm_get_variable_req ( bp, 4,
|
||||||
( u16 ) LINK_SPEED_DRV_NUM,
|
( u16 ) LINK_SPEED_DRV_NUM,
|
||||||
1, ( u16 ) bp->port_idx ) != STATUS_SUCCESS )
|
1, ( u16 ) bp->port_idx ) != STATUS_SUCCESS )
|
||||||
|
|||||||
Reference in New Issue
Block a user