Hi Dave,
Thanks for your prompt response. I had already referred this link http://www.linux-usb.org/gadget/h2-otg.html and google too. This is the one of the best source about otg_transceiver which no one can skip. What is the functionally of each api and when and where these API will be called from application is somewhat unclear. For example in set_peripheral we have to just assign gadget object only or we have also suspend the bus and initiate action for bus suspension. I try to refine my questions. How these API will be called from Host/Gadget application? What should be expected sequence of API? How should we test OTG functionality? I hope these will be clear what I want. Regards Sanjay Patel Embedded Engineer - Embedded Division eInfochips Ltd Phone: +91-79-26563705 x208 Mobile: 98258-81447 -----Original Message----- From: David Brownell [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 10:11 AM To: [EMAIL PROTECTED] Subject: Re: Query regarding usb otg implementation > I am exploring possibility to implement a USB OTG controller > driver on Linux 2.6.10. I would like to use the existing Linux > framework available for OTG support. As per my understanding > the Linux provides following files as part of OTG framework: > <include/linux/usb_otg.h> > <drivers/usb/core/otg_whitelist.h> 2.6.10 is quite old by now; the host side framework in particular has evolved and improved a lot. > I could not locate documentation related to this OTG framework regarding how > to use this framework while implementing my controller driver. Even google's top listing for "linux usb otg"? http://www.linux-usb.org/gadget/h2-otg.html That talks about other changes made for OTG... > I intend to use USB OTG controller with MSC applications in dual role (host > & peripheral). > I am also looking for information on how can I interface this OTG framework > for the same. > > I would appreciate help identifying answers to following queries: > 1. Any source of documentation for using 'otg_transceiver' structure to > implement > USB OTG controller driver. > - What is expected behavior for the APIs given in > include/linux/usb_otg.h? What > are the expected return values (with conditions under which the same > should > be returned)? > i.e. set_host, set_peripheral, set_power, start_srp, start_hnp function > pointers > in 'otg_transceiver' structure See the writeup above. It's not a fully general interface... > - Who can call the OTG APIs (user application, class driver or any other > layer) > otg_set_transceiver(), otg_get_transceiver(), otg_start_hnp(), > otg_set_host(), > otg_set_peripheral(), otg_set_power(), otg_start_srp(), > usb_bus_start_enum()? USB controller driver internals -- ONLY !! > 2. Any reference USB OTG driver availability using 'otg_transceiver' > framework? > 3. Are there any test applications for HNP verification? If you had googled before emailing, you'd have those answers already ... > 4. Ideally how should we implement the TPL (Targeted Peripheral List) in our > driver if we want to support all MSC pen drives? Is there any expectation > from > Linux OTG framework for TPL implementation? Did you actually look at the OTG whitelist and how it's used??? - Dave eInfochips Business Disclaimer: This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by eInfochips Limited and/or eInfochips Inc("eInfochips") unless sent with that express intent and with due authority of eInfochips. eInfochips has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. eInfochips Business Disclaimer: This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by eInfochips Limited and/or eInfochips Inc("eInfochips") unless sent with that express intent and with due authority of eInfochips. eInfochips has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel