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

MFC after:	1 week
Sponsored by:	NVIDIA Networking
This commit is contained in:
Hans Petter Selasky 2022-06-09 15:14:17 +02:00
parent c6c22ebb38
commit bc2e447338

View File

@ -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__);