FreeBSD Bugzilla – Attachment 233691 Details for
Bug 262882
USB disconnects repeatedly, losing all attached devices on that USB hub
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to test (v3)
a.diff (text/plain), 725 bytes, created by
Hans Petter Selasky
on 2022-05-03 07:36:58 UTC
(
hide
)
Description:
Patch to test (v3)
Filename:
MIME Type:
Creator:
Hans Petter Selasky
Created:
2022-05-03 07:36:58 UTC
Size:
725 bytes
patch
obsolete
>diff --git a/sys/dev/usb/controller/xhci.c b/sys/dev/usb/controller/xhci.c >index 72d1ff5e0ae..0195db7e8b7 100644 >--- a/sys/dev/usb/controller/xhci.c >+++ b/sys/dev/usb/controller/xhci.c >@@ -2272,9 +2272,12 @@ xhci_configure_mask(struct usb_device *udev, uint32_t mask, uint8_t drop) > } else { > /* > * Some hardware requires that we drop the endpoint >- * context before adding it again: >+ * context before adding it again. Only drop >+ * configured endpoints. > */ >- input->dwInCtx0 = htole32(mask & XHCI_INCTX_NON_CTRL_MASK); >+ input->dwInCtx0 = htole32(mask & >+ sc->sc_hw.devs[index].ep_configured & >+ XHCI_INCTX_NON_CTRL_MASK); > > /* Add new endpoint context */ > input->dwInCtx1 = htole32(mask);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 262882
:
232775
|
232776
|
232856
|
232857
|
232880
|
232881
|
232882
|
233314
|
233622
|
233623
|
233625
|
233647
|
233659
|
233669
|
233691
|
233692
|
233705