>
> Hmm, gadget gets zeroed out on every gadget->whatever switch, but it
> also gets reinitialized on every whatever->gadget transition. And it
> really shouldn't cause a null dereference.
>
When gadget->host, the call sequence like below:
udc_stop -> usb_del_gadget_udc -> usb_gadget_remove_dr
Chen Peter-B29397 writes:
>
>> > > hw_write(ci, OP_USBINTR, ~0,
>> > >
>> USBi_UI|USBi_UEI|USBi_PCI|USBi_URI|USBi_SLI);
>> > > - hw_write(ci, OP_USBCMD, USBCMD_RS, USBCMD_RS);
>> > > } else {
>> > > - hw_write(ci, OP_USBCMD, USBCMD_RS, 0);
>>
> > > hw_write(ci, OP_USBINTR, ~0,
> > >
> USBi_UI|USBi_UEI|USBi_PCI|USBi_URI|USBi_SLI);
> > > - hw_write(ci, OP_USBCMD, USBCMD_RS, USBCMD_RS);
> > > } else {
> > > - hw_write(ci, OP_USBCMD, USBCMD_RS, 0);
> > > hw_write(ci, OP_U
Hi,
On Thu, Sep 20, 2012 at 03:08:15PM +0800, Peter Chen wrote:
> On Wed, Sep 12, 2012 at 7:58 PM, Alexander Shishkin
> wrote:
> > From: Michael Grzeschik
> >
> > Add function to physicaly enable or disable of pullup connection on the
> > USB-D+
> > line. The uvc gaget will fail, if this functi
On Wed, Sep 12, 2012 at 7:58 PM, Alexander Shishkin
wrote:
> From: Michael Grzeschik
>
> Add function to physicaly enable or disable of pullup connection on the USB-D+
> line. The uvc gaget will fail, if this function is not implemented.
>
> Cc:
> Signed-off-by: Michael Grzeschik
> Acked-by: Fe