bnxt_en: Disable workaround for lost interrupts on 575XX B0 and newer chips.

The hardware bug has been fixed on B0 and newer chips, so disable the
workaround on these chips.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Michael Chan 2020-01-27 04:56:19 -05:00 committed by David S. Miller
parent 87d67f59d6
commit 5313845f49
2 changed files with 5 additions and 1 deletions

View File

@ -7288,6 +7288,7 @@ static int bnxt_hwrm_ver_get(struct bnxt *bp)
bp->hwrm_max_ext_req_len = HWRM_MAX_REQ_LEN; bp->hwrm_max_ext_req_len = HWRM_MAX_REQ_LEN;
bp->chip_num = le16_to_cpu(resp->chip_num); bp->chip_num = le16_to_cpu(resp->chip_num);
bp->chip_rev = resp->chip_rev;
if (bp->chip_num == CHIP_NUM_58700 && !resp->chip_rev && if (bp->chip_num == CHIP_NUM_58700 && !resp->chip_rev &&
!resp->chip_metal) !resp->chip_metal)
bp->flags |= BNXT_FLAG_CHIP_NITRO_A0; bp->flags |= BNXT_FLAG_CHIP_NITRO_A0;
@ -10057,7 +10058,8 @@ static void bnxt_timer(struct timer_list *t)
} }
} }
if ((bp->flags & BNXT_FLAG_CHIP_P5) && netif_carrier_ok(dev)) { if ((bp->flags & BNXT_FLAG_CHIP_P5) && !bp->chip_rev &&
netif_carrier_ok(dev)) {
set_bit(BNXT_RING_COAL_NOW_SP_EVENT, &bp->sp_event); set_bit(BNXT_RING_COAL_NOW_SP_EVENT, &bp->sp_event);
bnxt_queue_sp_work(bp); bnxt_queue_sp_work(bp);
} }

View File

@ -1457,6 +1457,8 @@ struct bnxt {
#define CHIP_NUM_58804 0xd804 #define CHIP_NUM_58804 0xd804
#define CHIP_NUM_58808 0xd808 #define CHIP_NUM_58808 0xd808
u8 chip_rev;
#define BNXT_CHIP_NUM_5730X(chip_num) \ #define BNXT_CHIP_NUM_5730X(chip_num) \
((chip_num) >= CHIP_NUM_57301 && \ ((chip_num) >= CHIP_NUM_57301 && \
(chip_num) <= CHIP_NUM_57304) (chip_num) <= CHIP_NUM_57304)