aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSumit Saxena <sumit.saxena@broadcom.com>2022-11-04 22:31:24 +0000
committerWarner Losh <imp@FreeBSD.org>2022-11-04 22:31:24 +0000
commit19a57f85baac915a3642733c8a856517f4e95cb3 (patch)
tree9d99d9df046f378dad08cbf85fb91055e6070e10
parentbaef1301a2bc60be3908f44dff1f83dbbd8f812a (diff)
downloadsrc-19a57f85baac915a3642733c8a856517f4e95cb3.tar.gz
src-19a57f85baac915a3642733c8a856517f4e95cb3.zip
if_bnxt: Fix the PORT_PHY_CFG HWRM requests while setting Pause
Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D36446
-rw-r--r--sys/dev/bnxt/bnxt_hwrm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/bnxt/bnxt_hwrm.c b/sys/dev/bnxt/bnxt_hwrm.c
index 40c47ffe372c..9d74b1ebf65b 100644
--- a/sys/dev/bnxt/bnxt_hwrm.c
+++ b/sys/dev/bnxt/bnxt_hwrm.c
@@ -868,6 +868,9 @@ bnxt_hwrm_set_pause_common(struct bnxt_softc *softc,
HWRM_PORT_PHY_CFG_INPUT_FORCE_PAUSE_TX;
req->enables |=
htole32(HWRM_PORT_PHY_CFG_INPUT_ENABLES_FORCE_PAUSE);
+ req->auto_pause = req->force_pause;
+ req->enables |=
+ htole32(HWRM_PORT_PHY_CFG_INPUT_ENABLES_AUTO_PAUSE);
}
}