usb: dwc2: host: update hcd and lx_state during start/stop callbacks
authorGregory Herrero <gregory.herrero@intel.com>
Tue, 22 Sep 2015 13:16:41 +0000 (15:16 +0200)
committerFelipe Balbi <balbi@ti.com>
Thu, 1 Oct 2015 17:40:15 +0000 (12:40 -0500)
commit31927b6b68acd21258b1f4ef24464acae60cfd36
tree1596bff073c6b2340babcf5458b5136e79989e05
parenta2a23d3f9e6f44f900e4c4b4cd58f22490c3c200
usb: dwc2: host: update hcd and lx_state during start/stop callbacks

During hcd initialization, hardware accessible flag and lx_state must
be reset to the working state since controller is powered at this stage.

Same logic applied for stop callback.

Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Tested-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Tested-by: John Youn <johnyoun@synopsys.com>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/hcd.c