UPSTREAM: usb: dwc2: gadget: Use hw params from core
authorJohn Youn <John.Youn@synopsys.com>
Thu, 17 Dec 2015 19:17:45 +0000 (11:17 -0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 3 Jan 2017 10:47:52 +0000 (18:47 +0800)
commit3dceea8517fefc557b0220cb312f6000fad6a75b
tree2b518b6fc8d14827effc18eb3a00478efc6ec59e
parentf1d08ed2b02c571664c46cfce96a03bc8e9f1a43
UPSTREAM: usb: dwc2: gadget: Use hw params from core

Use the previously cached hw params in the gadget. This saves a reset
and force mode in the gadget initialization during probe and makes
getting the hardware parameters consistent between gadget and host.

Change-Id: I62e3f1fadfc5a3a4e5af24b671e5a71e616c48e1
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit 43e9034904dd37db7ed87fa8f5039c561c4004cd)
drivers/usb/dwc2/gadget.c