Re: Working of musb driver

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

 



On Sat, Apr 18, 2009 at 05:42:19PM +0530, pradeep singh wrote:
> On Sat, Apr 18, 2009 at 5:16 PM, Arjun Joshi <arjun.joshi@xxxxxxxxxxxxxx> wrote:
> > Hi,
> >
> > I think my question might have been little less specific.
> > I want to how the MUSB drivers for the Host Controller are used?
> >
> > Suppose I want to do a BULK OUT transaction. So the data packet must be
> > loaded in the FIFO and set the TX Ready bit of the control register for the
> > endpoint to which the data is to be transferred. When an ACK is received by
> > the HC (sent by the peripheral device after the data is recvd by it) the HC
> > will generate an interrupt which must be handled by the software.
> >
> > Similarly, For a BULK IN transaction, software must enable the REQPKT bit in
> > a register
> > which causes the HC to send a IN token. When data is recvd by the HC, the
> > RXPKTRDY bit is set in the register  and appropriate interrupt generated.
> >
> > So I want to know which functions of musb drivers in the linux kernel handle
> > this?
> > ( I think musb_core.c, musb_host.c files holds the answer.. But I am not
> > sure which of the function defined in these files will be called first and
> > who calls them? )
> >
> > Hope I am much more clear than the previous post.
> 
> Yes you are :). Sorry for misinterpreting your intentions.
> 
> Getting such specific info may be difficult from the general audience here.
> But yes Greg(USB Maintainer) may be the right person who can help you.
> As far as musb drvier is concerned, someone who has worked on it will
> be able to help.

The musb driver is very difficult to understand, as it is a very complex
device.  If you have specific questions on how it operates, please ask
them on the linux-usb mailing list, as that would be the better place
for it.

It sounds like you can answer your own question quite easily by using
the function tracer feature in the kernel, so you might want to do that
first.

good luck,

greg k-h

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux