git: 1c5c1e44862a - stable/13 - upgt(4): Adjust all pause calls to use milliseconds instead of ticks.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 16 Jun 2022 02:56:12 UTC
The branch stable/13 has been updated by hselasky:
URL: https://cgit.FreeBSD.org/src/commit/?id=1c5c1e44862a6b7fd6b10b99a65002c82fc15ba4
commit 1c5c1e44862a6b7fd6b10b99a65002c82fc15ba4
Author: Hans Petter Selasky <hselasky@FreeBSD.org>
AuthorDate: 2022-06-09 13:14:17 +0000
Commit: Hans Petter Selasky <hselasky@FreeBSD.org>
CommitDate: 2022-06-16 02:55:52 +0000
upgt(4): Adjust all pause calls to use milliseconds instead of ticks.
Sponsored by: NVIDIA Networking
(cherry picked from commit bc2e447338b7ade8d800d1f24913bb3873c65f99)
---
sys/dev/usb/wlan/if_upgt.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/dev/usb/wlan/if_upgt.c b/sys/dev/usb/wlan/if_upgt.c
index 26c57d7944f5..b8ae41418695 100644
--- a/sys/dev/usb/wlan/if_upgt.c
+++ b/sys/dev/usb/wlan/if_upgt.c
@@ -1274,7 +1274,7 @@ upgt_eeprom_read(struct upgt_softc *sc)
int block, error, offset;
UPGT_LOCK(sc);
- usb_pause_mtx(&sc->sc_mtx, 100);
+ usb_pause_mtx(&sc->sc_mtx, USB_MS_TO_TICKS(100));
offset = 0;
block = UPGT_EEPROM_BLOCK_SIZE;
@@ -1887,7 +1887,7 @@ upgt_device_reset(struct upgt_softc *sc)
memcpy(data->buf, init_cmd, sizeof(init_cmd));
data->buflen = sizeof(init_cmd);
upgt_bulk_tx(sc, data);
- usb_pause_mtx(&sc->sc_mtx, 100);
+ usb_pause_mtx(&sc->sc_mtx, USB_MS_TO_TICKS(100));
UPGT_UNLOCK(sc);
DPRINTF(sc, UPGT_DEBUG_FW, "%s: device initialized\n", __func__);