From 5132975b6ec14f1092d8f77e7672866082475505 Mon Sep 17 00:00:00 2001 From: Qi Duan Date: Thu, 7 Sep 2017 17:10:07 +0800 Subject: [PATCH] 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 --- drivers/amlogic/usb/dwc_otg/310/dwc_otg_pcd_linux.c | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.7.4