On Fri, 24 Feb 2012 10:01:19 +0530 Pratyush Anand <pratyush.anand@xxxxxxxxx> wrote: > Have looked driver drivers/usb/gadget/s3c-hsotg.c. It seems that, > this driver has support of only device. So job would be to first make > it platform independent, then to add support for "host only" and > "otg" (hnp/srp) mode. Yes, indeed for now the s3c-hsotg supports the device mode. But as you wrote, first the driver needs to be made a platform independent (the IP core common part), then vendor (e.g. Samsung/others) dependent part shall be added. > If we see drivers floated by apm guys (dwc_otg), then yes it is big > and ugly, but has support of all use case scenarios. With little > effort its ugly part can be > removed, but author is very slow and not ready to allow others to take > initiative. I'm quite fresh on the linux-usb mailing list, but I've seen several attempts to make the dw_otg (dwc2) driver mainline acceptable (v15 of Synopsys DWC OTG) with no success. I think, that starting from the device mode is good for beginning. Other use cases can be added later, after some discussion on the device mode implementation (Yes, architecturally the driver will be prepared for OTG extension). As a side note, I can test the driver with Samsung devices, but I will need some testing help with other SoC vendors. And finally, I will work on the s3c-hsotg driver to became the dw2 mainline kernel driver. -- Best regards, Lukasz Majewski Samsung Poland R&D Center Platform Group -- 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