diff options
author | Rob Swindell <rob.swindell@broadcom.com> | 2016-07-01 18:46:23 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-02 14:52:35 -0400 |
commit | 08141e0bf4f6cb82d51930e34e6a8e4af46c776f (patch) | |
tree | 277dd241eb8424438cc0a4b57d95b3e49792d40d | |
parent | a4c363471f2fa2b0f0abbd9f0563b034340585c3 (diff) | |
download | lwn-08141e0bf4f6cb82d51930e34e6a8e4af46c776f.tar.gz lwn-08141e0bf4f6cb82d51930e34e6a8e4af46c776f.zip |
bnxt_en: Request firmware reset after successful firwmare update
Upon successful mgmt processor firmware update, request a self
reset upon next PCIe reset (e.g. system reboot).
Signed-off-by: Rob Swindell <rob.swindell@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c index 3328aa5b30dc..12a5141dde8c 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c @@ -1059,6 +1059,8 @@ static int bnxt_firmware_reset(struct net_device *dev, case BNX_DIR_TYPE_APE_FW: case BNX_DIR_TYPE_APE_PATCH: req.embedded_proc_type = FW_RESET_REQ_EMBEDDED_PROC_TYPE_MGMT; + /* Self-reset APE upon next PCIe reset: */ + req.selfrst_status = FW_RESET_REQ_SELFRST_STATUS_SELFRSTPCIERST; break; case BNX_DIR_TYPE_KONG_FW: case BNX_DIR_TYPE_KONG_PATCH: |