diff options
| author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2022-07-05 00:53:42 +0000 |
|---|---|---|
| committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2022-07-05 00:53:42 +0000 |
| commit | ec32fc2af52530e49d8a522ae29bf20b2e57603b (patch) | |
| tree | a25d184423485abcbdf49c68f1695772108e9dfc /sys/dev/usb/controller | |
| parent | 03473e8ec8fa8d0f1ea30f85d8796ea9bf94bf29 (diff) | |
Diffstat (limited to 'sys/dev/usb/controller')
| -rw-r--r-- | sys/dev/usb/controller/dwc3.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/controller/dwc3.c b/sys/dev/usb/controller/dwc3.c index da64512af647..a71f92abebd9 100644 --- a/sys/dev/usb/controller/dwc3.c +++ b/sys/dev/usb/controller/dwc3.c @@ -207,11 +207,12 @@ snps_dwc3_reset(struct snps_dwc3_softc *sc) if (sc->usb3_phy) phy_enable(sc->usb3_phy); + ghwp0 = DWC3_READ(sc, DWC3_GHWPARAMS0); + gctl = DWC3_READ(sc, DWC3_GCTL); gctl |= DWC3_GCTL_CORESOFTRESET; DWC3_WRITE(sc, DWC3_GCTL, gctl); - ghwp0 = DWC3_READ(sc, DWC3_GHWPARAMS0); phy2 = DWC3_READ(sc, DWC3_GUSB2PHYCFG0); phy2 |= DWC3_GUSB2PHYCFG0_PHYSOFTRST; if ((ghwp0 & DWC3_GHWPARAMS0_MODE_MASK) == |
