From: Li Jun Date: Thu, 9 Jul 2015 07:18:47 +0000 (+0800) Subject: usb: gadget: add usb otg descriptor allocate and init interface X-Git-Tag: omap-for-v4.3/fixes-merge-window~42^2~35^2~101 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1606dfb98e59221332704c05f5908d9116456ab;p=pandora-kernel.git usb: gadget: add usb otg descriptor allocate and init interface Allocate usb otg descriptor and initialize it according to gadget's otg capabilities, if usb_otg_caps is not set, keep settings as current gadget drivers. With this 2 new interfaces, gadget can use usb_otg_descriptor for OTG 1.x, and usb_otg20_descriptor for OTG 2.0 or above, and otg features can be decided by the combination of usb hardware property and driver config. Signed-off-by: Li Jun Reviewed-by: Roger Quadros Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed