提交 ca2c39e2 编写于 作者: M Michael Chan 提交者: David S. Miller

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: NMichael Chan <michael.chan@broadcom.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 59895f59
...@@ -5379,7 +5379,8 @@ int bnxt_hwrm_fw_set_time(struct bnxt *bp) ...@@ -5379,7 +5379,8 @@ int bnxt_hwrm_fw_set_time(struct bnxt *bp)
struct tm tm; struct tm tm;
time64_t now = ktime_get_real_seconds(); time64_t now = ktime_get_real_seconds();
if (bp->hwrm_spec_code < 0x10400) if ((BNXT_VF(bp) && bp->hwrm_spec_code < 0x10901) ||
bp->hwrm_spec_code < 0x10400)
return -EOPNOTSUPP; return -EOPNOTSUPP;
time64_to_tm(now, 0, &tm); time64_to_tm(now, 0, &tm);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册