]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
dwc3: fix from not working
authorBjoern A. Zeeb <bz@FreeBSD.org>
Tue, 5 Jul 2022 00:53:42 +0000 (00:53 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Tue, 5 Jul 2022 00:53:42 +0000 (00:53 +0000)
commitec32fc2af52530e49d8a522ae29bf20b2e57603b
treea25d184423485abcbdf49c68f1695772108e9dfc
parent03473e8ec8fa8d0f1ea30f85d8796ea9bf94bf29
dwc3: fix from not working

During the review of 09cdf4878c621be4cd229fa88cdccdcdc8c101f7 we
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: 09cdf4878c621be4cd229fa88cdccdcdc8c101f7
Pointy hat to: bz
sys/dev/usb/controller/dwc3.c