RE: [PATCH v2] usb: musb: only set test mode once

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Felipe,

> -----Original Message-----
> From: Balbi, Felipe
> Sent: Thursday, April 02, 2015 2:53 PM
> To: Liu, Bin
> Cc: Balbi, Felipe; linux-usb@xxxxxxxxxxxxxxx
> Subject: Re: [PATCH v2] usb: musb: only set test mode once
> 
> Hi,
> 
> On Thu, Apr 02, 2015 at 02:50:05PM -0500, Liu, Bin wrote:
> > > > I really don't care about reset or not, it is just about board
> > > > reboot, not a big deal. The only thing I want to do is prevent the
> > > > *** user using the current driver loading test packets to FIFO
> > > > multiple times which breaks the test.
> > >
> > > You don't need to reboot the board at all. When USB spec says
> > > 'reset', it's referring to a USB bus reset. See if my device-reset
> > > tool helps you out [1]
> > >
> > > [1] https://gitorious.org/usb/usb-
> > > tools/source/373b417a9f0ded25312d0626486f6e7a2d660c32:device-reset.c
> >
> > This is to reset the bus, not the controller right? For the MUSB case,
> > the controller itself needs reset, no device/hub is connected on the
> > bus.
> 
> IIRC, device-reset -D 1d6b:0002 -c 1 should work, but needs testing.

I thought about this. It will interesting to know how resetting the roothub will trigger the controller reset, it needs a hook in musb driver to do hw reset and EP re-config kind of init sequence, similar to the babble recover routine...

Regards,
-Bin.

> 
> (run this from within AM335x itself)
> 
> --
> balbi
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux