]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: dwc3: Do core validation early on probe
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Thu, 25 Apr 2019 21:19:21 +0000 (14:19 -0700)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 3 May 2019 06:13:49 +0000 (09:13 +0300)
commitb873e2d0ea1efc91fb603b727733525f07419f2b
tree1d326b4eea43e1c5525e458ff04a2731422b2935
parentc729969b2b692ce3ed362e60d38391e7671758ff
usb: dwc3: Do core validation early on probe

The setting of the dr_mode may need to check the controller's revision.
The revision is set in the dwc3_core_is_valid(), which comes after
dr_mode setting. Let's move it closer to the start of the dwc3_probe()
function and before calling dwc3_get_dr_mode().

Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/core.c