Re: how OUT/IN request from host are propogated on gadget side

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

 



On Mon, Jun 21, 2010 at 4:33 PM, Viral Mehta
<Viral.Mehta@xxxxxxxxxxxxxxx> wrote:
> Hi,
>
> I am looking at gadget driver code.
> I have a question understanding how OUT/IN request, sent by USB host, travels on Gadget Side Stack. The requests will be received in terms of OUT/IN token by gadget controller hardware. Gadget controller driver will receive an interrupt for the same. What happens afterwards ? In any case, gadget controller driver should notify gadget side driver about such request. But, I do not see any such mechanism.
>
> Going through, file_storage.c, I do see that gadget driver always polls for any OUT/IN request. Is it the *only* mechanism ?
> Is there any other in-kernel mechanism through which gadget controller driver can notify about OUT/IN request to gadget driver ?

Did you had a chance to read this document ?

http://tali.admingilde.org/linux-docbook/gadget.pdf

In case of net2280(gadget/net2280.c), pls see net2280_irq and the
following routines take care of it.

 /* handle disconnect, dma, and more */
2709         handle_stat1_irqs (dev, readl (&dev->regs->irqstat1));
2710
2711         /* control requests and PIO */
2712         handle_stat0_irqs (dev, readl (&dev->regs->irqstat0));

HTH

>
> Thanks,
> Viral
>
> This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
>
> ______________________________________________________________________
> --
> 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
>
--
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