Skip to content

Commit ca2c39e

Browse files
Michael Chandavem330
authored andcommitted
bnxt_en: Do not set firmware time from VF driver on older firmware.
Older firmware will reject this call and cause an error message to be printed by the VF driver. Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 59895f5 commit ca2c39e

File tree

1 file changed

+2
-1
lines changed
  • drivers/net/ethernet/broadcom/bnxt

1 file changed

+2
-1
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5379,7 +5379,8 @@ int bnxt_hwrm_fw_set_time(struct bnxt *bp)
53795379
struct tm tm;
53805380
time64_t now = ktime_get_real_seconds();
53815381

5382-
if (bp->hwrm_spec_code < 0x10400)
5382+
if ((BNXT_VF(bp) && bp->hwrm_spec_code < 0x10901) ||
5383+
bp->hwrm_spec_code < 0x10400)
53835384
return -EOPNOTSUPP;
53845385

53855386
time64_to_tm(now, 0, &tm);

0 commit comments

Comments
 (0)