mirror of
https://github.com/opnsense/src.git
synced 2026-04-23 15:19:31 -04:00
dwc3: fix from not working
During the review of09cdf4878cwe switched from cached registers to reading them as needed. One read of the two reads was moved after the softreset got triggered and as a result returned 0 rather than the proper register value. Moving the read before the softreset gets initiated seems to make things work again and xhci.c no longer complains about "Controller does not support 4K page size.". MFC after: 10 days X-MFC with:09cdf4878cPointy hat to: bz
This commit is contained in:
parent
03473e8ec8
commit
ec32fc2af5
1 changed files with 2 additions and 1 deletions
|
|
@ -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) ==
|
||||
|
|
|
|||
Loading…
Reference in a new issue