Re: [PATCH v5 4/7] dwc-hsotg (dwc2) USB host controller emulation

2020-05-26 Thread Damien Hedde
On 5/20/20 11:24 PM, Paul Zimmerman wrote: > On Wed, May 20, 2020 at 6:18 AM Peter Maydell > wrote: > > On Wed, 20 May 2020 at 06:49, Paul Zimmerman > wrote: > > Is there a tree somewhere that has a working example of a >

Re: [PATCH v5 4/7] dwc-hsotg (dwc2) USB host controller emulation

2020-05-20 Thread Paul Zimmerman
On Wed, May 20, 2020 at 6:18 AM Peter Maydell wrote: > On Wed, 20 May 2020 at 06:49, Paul Zimmerman wrote: > > Is there a tree somewhere that has a working example of a > > three-phase reset? I did a 'git grep' on the master branch and didn't > > find any code that is actually using it. I tried

Re: [PATCH v5 4/7] dwc-hsotg (dwc2) USB host controller emulation

2020-05-20 Thread Peter Maydell
On Wed, 20 May 2020 at 06:49, Paul Zimmerman wrote: > Is there a tree somewhere that has a working example of a > three-phase reset? I did a 'git grep' on the master branch and didn't > find any code that is actually using it. I tried to implement it from > the example in reset.rst, but I'm gettin

Re: [PATCH v5 4/7] dwc-hsotg (dwc2) USB host controller emulation

2020-05-19 Thread Paul Zimmerman
On Mon, May 18, 2020 at 8:34 AM Peter Maydell wrote: > On Tue, 12 May 2020 at 07:50, Paul Zimmerman wrote: > > > > > +static void dwc2_reset(DeviceState *dev) > > +{ > > +DWC2State *s = DWC2_USB(dev); > > +int i; > > + > > +trace_usb_dwc2_reset(); > > +timer_del(s->frame_timer);

Re: [PATCH v5 4/7] dwc-hsotg (dwc2) USB host controller emulation

2020-05-18 Thread Peter Maydell
On Tue, 12 May 2020 at 07:50, Paul Zimmerman wrote: > > Add the dwc-hsotg (dwc2) USB host controller emulation code. > Based on hw/usb/hcd-ehci.c and hw/usb/hcd-ohci.c. > > Note that to use this with the dwc-otg driver in the Raspbian > kernel, you must pass the option "dwc_otg.fiq_fsm_enable=0" o

[PATCH v5 4/7] dwc-hsotg (dwc2) USB host controller emulation

2020-05-11 Thread Paul Zimmerman
Add the dwc-hsotg (dwc2) USB host controller emulation code. Based on hw/usb/hcd-ehci.c and hw/usb/hcd-ohci.c. Note that to use this with the dwc-otg driver in the Raspbian kernel, you must pass the option "dwc_otg.fiq_fsm_enable=0" on the kernel command line. Emulation of slave mode and of descr