mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-30 16:51:41 +00:00
Fix initialisation order with regard to debug prints.
Reported by: Luiz Otavio O Souza MFC after: 14 days Approved by: thompsa (mentor)
This commit is contained in:
parent
bf9d222b88
commit
46873d15b1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=219983
@ -259,6 +259,8 @@ ehci_init(ehci_softc_t *sc)
|
||||
usb_callout_init_mtx(&sc->sc_tmo_pcd, &sc->sc_bus.bus_mtx, 0);
|
||||
usb_callout_init_mtx(&sc->sc_tmo_poll, &sc->sc_bus.bus_mtx, 0);
|
||||
|
||||
sc->sc_offs = EHCI_CAPLENGTH(EREAD4(sc, EHCI_CAPLEN_HCIVERSION));
|
||||
|
||||
#ifdef USB_DEBUG
|
||||
if (ehciiaadbug)
|
||||
sc->sc_flags |= EHCI_SCFLG_IAADBUG;
|
||||
@ -269,8 +271,6 @@ ehci_init(ehci_softc_t *sc)
|
||||
}
|
||||
#endif
|
||||
|
||||
sc->sc_offs = EHCI_CAPLENGTH(EREAD4(sc, EHCI_CAPLEN_HCIVERSION));
|
||||
|
||||
version = EHCI_HCIVERSION(EREAD4(sc, EHCI_CAPLEN_HCIVERSION));
|
||||
device_printf(sc->sc_bus.bdev, "EHCI version %x.%x\n",
|
||||
version >> 8, version & 0xff);
|
||||
|
Loading…
Reference in New Issue
Block a user