> From: linux-usb-owner@xxxxxxxxxxxxxxx [mailto:linux-usb-owner@xxxxxxxxxxxxxxx] On Behalf Of Haibo Zhang > Sent: Tuesday, November 11, 2014 6:37 AM > > We know that dwc2 is the USB2.0 driver for DesignWare IP. But it only > has host’s code without device’s code. So I have two questions: > 1. Will I develop or port the part of device’s code if I want to > use dwc2 to support both host and device’s functions? In the latest versions of the mainline kernel, the dwc2 driver supports both host and device modes. Maybe you are using an older version of the kernel where this wasn't true? > 2. Another question, I know that many chip companies use dwc2. > How do they solve the question above? See my previous answer. Also, many companies are using the Synopsys vendor driver, which has been available for many years, before the dwc2 driver existed. If you are a Synopsys customer, you should have access to that driver. There are also third parties who will sell you drivers for the Synopsys controllers. -- Paul > If anyone has a similar experience or know well about this dwc2 > driver, please reply me. > Any help will be greatly appreciated. > > Thanks, > > -- > > > *Zhang Haibo* ��.n��������+%������w��{.n�����{���)��jg��������ݢj����G�������j:+v���w�m������w�������h�����٥