git: bc2e447338b7 - main - upgt(4): Adjust all pause calls to use milliseconds instead of ticks.

From: Hans Petter Selasky <hselasky_at_FreeBSD.org>
Date: Thu, 09 Jun 2022 13:19:05 UTC
The branch main has been updated by hselasky:

URL: https://cgit.FreeBSD.org/src/commit/?id=bc2e447338b7ade8d800d1f24913bb3873c65f99

commit bc2e447338b7ade8d800d1f24913bb3873c65f99
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-09 13:18:02 +0000

    upgt(4): Adjust all pause calls to use milliseconds instead of ticks.
    
    MFC after:      1 week
    Sponsored by:   NVIDIA Networking
---
 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 4adbea4fbaaf..190a4b8e0252 100644
--- a/sys/dev/usb/wlan/if_upgt.c
+++ b/sys/dev/usb/wlan/if_upgt.c
@@ -1270,7 +1270,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;
@@ -1883,7 +1883,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__);