FreeBSD Bugzilla – Attachment 172054 Details for
Bug 210736
Disconnecting USB cable in device/gadget mode breaks usbconfig(8)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
DWC OTG patch
dwc_otg.diff (text/plain), 1.16 KB, created by
Hans Petter Selasky
on 2016-07-03 11:16:05 UTC
(
hide
)
Description:
DWC OTG patch
Filename:
MIME Type:
Creator:
Hans Petter Selasky
Created:
2016-07-03 11:16:05 UTC
Size:
1.16 KB
patch
obsolete
>Index: sys/dev/usb/controller/dwc_otg.c >=================================================================== >--- sys/dev/usb/controller/dwc_otg.c (revision 302306) >+++ sys/dev/usb/controller/dwc_otg.c (working copy) >@@ -97,10 +97,8 @@ > (GINTMSK_ENUMDONEMSK | \ > GINTMSK_USBRSTMSK | \ > GINTMSK_USBSUSPMSK | \ >- GINTMSK_IEPINTMSK | \ > GINTMSK_SESSREQINTMSK | \ > GINTMSK_RXFLVLMSK | \ >- GINTMSK_HCHINTMSK | \ > GINTMSK_OTGINTMSK | \ > GINTMSK_PRTINTMSK) > >@@ -376,6 +374,11 @@ > /* enable all host channel interrupts */ > DWC_OTG_WRITE_4(sc, DOTG_HAINTMSK, > (1U << sc->sc_host_ch_max) - 1U); >+ >+ /* enable proper host channel interrupts */ >+ sc->sc_irq_mask |= GINTMSK_HCHINTMSK; >+ sc->sc_irq_mask &= ~GINTMSK_IEPINTMSK; >+ DWC_OTG_WRITE_4(sc, DOTG_GINTMSK, sc->sc_irq_mask); > } > > if (mode == DWC_MODE_DEVICE) { >@@ -436,6 +439,11 @@ > pf->usb.max_in_frame_size, > pf->usb.max_out_frame_size); > } >+ >+ /* enable proper device channel interrupts */ >+ sc->sc_irq_mask &= ~GINTMSK_HCHINTMSK; >+ sc->sc_irq_mask |= GINTMSK_IEPINTMSK; >+ DWC_OTG_WRITE_4(sc, DOTG_GINTMSK, sc->sc_irq_mask); > } > > /* reset RX FIFO */
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 210736
:
172054
|
172056
|
172095