From: wlf Date: Tue, 19 Mar 2013 13:35:42 +0000 (+0800) Subject: USB: do not call disconnect callback func in dwc_otg_hcd_enable X-Git-Tag: firefly_0821_release~7382 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=46fa5a365ff42c2e1d6b9536724b1c8dce18f176;p=firefly-linux-kernel-4.4.55.git USB: do not call disconnect callback func in dwc_otg_hcd_enable --- diff --git a/drivers/usb/dwc_otg/dwc_otg_hcd.c b/drivers/usb/dwc_otg/dwc_otg_hcd.c index aab0562f524e..708243190dd7 100755 --- a/drivers/usb/dwc_otg/dwc_otg_hcd.c +++ b/drivers/usb/dwc_otg/dwc_otg_hcd.c @@ -656,11 +656,11 @@ static void dwc_otg_hcd_enable(struct work_struct *work) goto out; } DWC_PRINT("%s, disable host controller\n", __func__); - #if 1 +#if 0 if (_core_if->hcd_cb && _core_if->hcd_cb->disconnect) { _core_if->hcd_cb->disconnect( _core_if->hcd_cb->p ); } - #endif +#endif dwc_otg_disable_host_interrupts( _core_if ); //if (_core_if->hcd_cb && _core_if->hcd_cb->stop) { // _core_if->hcd_cb->stop( _core_if->hcd_cb->p );