Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 723ddd71 authored by Hemant Kumar's avatar Hemant Kumar
Browse files

usb: dwc3-msm: Change usb irq to level triggered



Currently power event irq and dp/dm hs phy irq are
configured as rising edge triggered. As per HPG
all usb interrupt are level triggered and active high.

Change-Id: I87bb6e8b7802751ea0a77fef71d3c2777bd39295
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 3b3e314b
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
 */

#include <linux/module.h>
@@ -3473,8 +3473,8 @@ static int dwc3_msm_probe(struct platform_device *pdev)

	memcpy(mdwc->wakeup_irq, usb_irq_info, sizeof(usb_irq_info));
	for (i = 0; i < USB_MAX_IRQ; i++) {
		irq_type = IRQF_TRIGGER_RISING | IRQF_EARLY_RESUME |
						IRQF_ONESHOT;
		irq_type = IRQF_TRIGGER_HIGH | IRQF_ONESHOT |
			IRQ_TYPE_LEVEL_HIGH | IRQF_EARLY_RESUME;
		mdwc->wakeup_irq[i].irq = platform_get_irq_byname(pdev,
					mdwc->wakeup_irq[i].name);
		if (mdwc->wakeup_irq[i].irq < 0) {
@@ -3490,11 +3490,6 @@ static int dwc3_msm_probe(struct platform_device *pdev)
		} else {
			irq_set_status_flags(mdwc->wakeup_irq[i].irq,
						IRQ_NOAUTOEN);
			/* ss_phy_irq is level trigger interrupt */
			if (!strcmp(mdwc->wakeup_irq[i].name, "ss_phy_irq"))
				irq_type = IRQF_TRIGGER_HIGH | IRQF_ONESHOT |
					IRQ_TYPE_LEVEL_HIGH | IRQF_EARLY_RESUME;

			ret = devm_request_threaded_irq(&pdev->dev,
					mdwc->wakeup_irq[i].irq,
					msm_dwc3_pwr_irq,