Revert "usbpd:Fix the usbpd interrupt storm issue"
authora17671 <a17671@motorola.com>
Thu, 17 Jan 2019 07:49:00 +0000 (15:49 +0800)
committerlingsen1 <lingsen1@lenovo.com>
Sun, 7 Feb 2021 09:36:53 +0000 (17:36 +0800)
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 <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

drivers/ccic/s2mu106-usbpd.c

index e0d1e7b8b5643fe49bcc00c76cd4a30a8db8f146..b396d8094e8ea8d8db908ac1648b99d166c0593c 100644 (file)
@@ -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;
 }