> From: linux-usb-ow...@vger.kernel.org 
> [mailto:linux-usb-ow...@vger.kernel.org] 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�����r��y����b�X��ǧv�^�)޺{.n�+����{������^n�r���z���h�����&���G���h�(�階�ݢj"���m������z�ޖ���f���h���~�m�

Reply via email to