On 03/14/2014 07:51 PM, dingu...@altera.com wrote:
> From: Dinh Nguyen <dingu...@altera.com>
> 
> Modify the dwc2 Kconfig and Makefile so that it will build the dwc2_gadget
> driver when peripheral only mode is selected. The dwc_platform.ko and dwc2.ko
> will get built when dynamic linked modules are selected for Host mode. For
> peripheral mode only dwc2_gadget.ko will get built.
> 
> NOTE: You can build both host and peripheral as a dynamically linked module,
> but be aware that if you insmod dwc2_gadget, then rmmod it, then insmod
> dwc2 and dwc2_platform for host mode, this will not work. As the step to
> rmmod dwc2_gadget.ko will turn off the clock to the USB IP. The dwc2 host
> driver currently does not look to turn on a clock yet. A patch to fix that
> will be coming soon.
> 
> Signed-off-by: Dinh Nguyen <dingu...@altera.com>
> Tested-by: Jingoo Han <jg1....@samsung.com>
> Tested-by: Paul Zimmerman <pa...@synopsys.com>
> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org>
> Cc: Felipe Balbi <ba...@ti.com>
> Cc: Ben Dooks <ben-li...@fluff.org>
> Cc: Matt Porter <mpor...@linaro.org>
> Cc: Kukjin Kim <kgene....@samsung.com>
> Cc: Stephen Warren <swar...@wwwdotorg.org>
> Cc: Matthijs Kooijman <matth...@stdin.nl>
> Cc: Sachin Kamat <sachin.ka...@linaro.org>
> Cc: Robert Baldyga <r.bald...@samsung.com>
> Cc: Federico Vaga <federico.v...@gmail.com>
> ---
> v5: Remove condition that only host or peripheral can be built at the same 
> time.
> v4: Remove PCI dependency for USB_DWC2_PLATFORM
> v3: Created
> v2: none
> ---
>  drivers/usb/dwc2/Kconfig    |   36 +++++++++++++++++++++++++++++-------
>  drivers/usb/dwc2/Makefile   |   27 +++++++++++++++------------
>  drivers/usb/gadget/Kconfig  |    7 -------
>  drivers/usb/gadget/Makefile |    1 -
>  4 files changed, 44 insertions(+), 27 deletions(-)

[gadget part only]
Tested-by: Robert Baldyga <r.bald...@samsung.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to