From c9cdfc0d01a96e3a0b2a9588ed4d829f7713ada8 Mon Sep 17 00:00:00 2001 From: a17671 Date: Thu, 17 Jan 2019 15:49:00 +0800 Subject: [PATCH] Revert "usbpd:Fix the usbpd interrupt storm issue" This reverts commit 636afbc58ed019b48aab5637d06d1c005a6d780a. Samsung change the interrupt from level to falling edge Revert the moto change to fix the usb pd storm Mot-CRs-fixed:(CR) Change-Id: I7bd5bd2ba2d2bf1e14655d48a4c8d0deb40991f4 Reviewed-on: https://gerrit.mot.com/1296008 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- drivers/ccic/s2mu106-usbpd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/ccic/s2mu106-usbpd.c b/drivers/ccic/s2mu106-usbpd.c index e0d1e7b8b564..b396d8094e8e 100644 --- a/drivers/ccic/s2mu106-usbpd.c +++ b/drivers/ccic/s2mu106-usbpd.c @@ -2514,7 +2514,6 @@ static irqreturn_t s2mu106_irq_thread(int irq, void *data) int ret = 0; unsigned attach_status = 0, rid_status = 0; - disable_irq_nosync(irq); dev_info(dev, "%s\n", __func__); mutex_lock(&pd_data->accept_mutex); @@ -2606,7 +2605,7 @@ hard_reset: mutex_unlock(&pdic_data->lpm_mutex); out: mutex_unlock(&pdic_data->_mutex); - enable_irq(irq); + return IRQ_HANDLED; } -- 2.20.1