HI Gred,

> -----Original Message-----
> From: Gerd Hoffmann <[email protected]>
> Sent: Monday, August 31, 2020 12:36 PM
> To: Sai Pavan Boddu <[email protected]>
> Cc: Peter Maydell <[email protected]>; Markus Armbruster
> <[email protected]>; 'Marc-André Lureau'
> <[email protected]>; Paolo Bonzini <[email protected]>;
> Edgar Iglesias <[email protected]>; Francisco Eduardo Iglesias
> <[email protected]>; [email protected]; Alistair Francis
> <[email protected]>; Eduardo Habkost <[email protected]>;
> Ying Fang <[email protected]>; 'Philippe Mathieu-Daudé'
> <[email protected]>; Vikram Garhwal <[email protected]>; Paul
> Zimmerman <[email protected]>
> Subject: Re: [PATCH v4 6/7] usb: Add DWC3 model
> 
> On Sat, Aug 29, 2020 at 12:49:39AM +0530, Sai Pavan Boddu wrote:
> > From: Vikram Garhwal <[email protected]>
> >
> > This patch adds skeleton model of dwc3 usb controller attached to
> > xhci-sysbus device.
> 
> --verbose.
> 
> This looks like xhci with a bunch of extra registers?
[Sai Pavan Boddu] 
> What these registers are good for?
These are also put to make the guest happy.
This module contain dwc3 global registers which deal with power management, phy 
config and ID registers.
And also has Device and OTG registers which are incomplete at present.

What I realized is, we could clean many of these registers and only emulate ID 
registers at present. As others are meaningless. I would just define a reserved 
space, to skip io access errors.

Thanks,
Sai Pavan
> 
> > +/*
> > + * QEMU model of the USB DWC3 host controller emulation.
> 
> (answer should go to both this comment and the commit message).
> 
> thanks,
>   Gerd


Reply via email to