Revert "usbpd:Fix the usbpd interrupt storm issue"
authora17671 <a17671@motorola.com>
Thu, 17 Jan 2019 07:49:00 +0000 (15:49 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:30:33 +0000 (17:30 +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 02ea5f4ca61ea54ba2a94397f7958f2c29de654a..462d6f1af3340f2b4bcbe01c5e31a4935d378e2a 100644 (file)
@@ -2479,7 +2479,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);
@@ -2571,7 +2570,7 @@ hard_reset:
        mutex_unlock(&pdic_data->lpm_mutex);
 out:
        mutex_unlock(&pdic_data->_mutex);
-       enable_irq(irq);
+
        return IRQ_HANDLED;
 }