From: Kever Yang Date: Wed, 6 Aug 2014 01:01:50 +0000 (+0800) Subject: usb: dwc2: add 'mode' which based on Kconfig select or dts setting X-Git-Tag: fixes-for-v3.18-merge-window~16^2~125 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0155b9d5ef29092d39502ec57b0454b2b3c7cc9;p=pandora-kernel.git usb: dwc2: add 'mode' which based on Kconfig select or dts setting According to the "dr_mode", the otg controller can work as device role and host role. Some boards always want to use host mode and some other boards want to use gadget mode. We use the dts setting to set dwc2's mode, rather than fixing it to whatever hardware says. Signed-off-by: Kever Yang Acked-by: Paul Zimmerman Tested-by: Doug Anderson Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed