From: Qi Duan Date: Thu, 7 Sep 2017 09:10:07 +0000 (+0800) Subject: USB: disable usb device interrupt when host mode X-Git-Tag: khadas-vims-v0.9.6-release~2875 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5132975b6ec14f1092d8f77e7672866082475505;p=platform%2Fkernel%2Flinux-amlogic.git USB: disable usb device interrupt when host mode PD#150668: USB: disable usb device interrupt when host mode. [1/1] Change-Id: I4888617a442e0271f238a52d3998301264d4af4a Signed-off-by: Qi Duan --- diff --git a/drivers/amlogic/usb/dwc_otg/310/dwc_otg_pcd_linux.c b/drivers/amlogic/usb/dwc_otg/310/dwc_otg_pcd_linux.c index d72c2cb..22a6a9b 100644 --- a/drivers/amlogic/usb/dwc_otg/310/dwc_otg_pcd_linux.c +++ b/drivers/amlogic/usb/dwc_otg/310/dwc_otg_pcd_linux.c @@ -1262,9 +1262,11 @@ int dwc_usb_change(struct notifier_block *nb, if (value) { DWC_DEBUGPL(DBG_PCDV, "start usb device\n"); + dwc_otg_enable_global_interrupts(otg_dev->core_if); otg_dev->pcd->core_if->pcd_cb->start(otg_dev->pcd); } else { DWC_DEBUGPL(DBG_PCDV, "stop usb device\n"); + dwc_otg_disable_global_interrupts(otg_dev->core_if); otg_dev->pcd->core_if->pcd_cb->stop(otg_dev->pcd); }