Commit 438492ab authored by Matthijs Kooijman's avatar Matthijs Kooijman Committed by Greg Kroah-Hartman

staging: dwc2: remove dummy interrupt handling

The handling for the IC2INT and RESTOREDONE interrupts just cleared the
interrupt flag, but did not do anything else. Since these interrupts are
not enabled anywhere, they should never trigger and there should never
be a need to clear their flags, so we can safely remove this code.
Signed-off-by: default avatarMatthijs Kooijman <matthijs@stdin.nl>
Acked-by: default avatarPaul Zimmerman <paulz@synopsys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ca18f4a6
...@@ -403,8 +403,7 @@ static void dwc2_handle_usb_suspend_intr(struct dwc2_hsotg *hsotg) ...@@ -403,8 +403,7 @@ static void dwc2_handle_usb_suspend_intr(struct dwc2_hsotg *hsotg)
#define GINTMSK_COMMON (GINTSTS_WKUPINT | GINTSTS_SESSREQINT | \ #define GINTMSK_COMMON (GINTSTS_WKUPINT | GINTSTS_SESSREQINT | \
GINTSTS_CONIDSTSCHNG | GINTSTS_OTGINT | \ GINTSTS_CONIDSTSCHNG | GINTSTS_OTGINT | \
GINTSTS_MODEMIS | GINTSTS_DISCONNINT | \ GINTSTS_MODEMIS | GINTSTS_DISCONNINT | \
GINTSTS_USBSUSP | GINTSTS_RESTOREDONE | \ GINTSTS_USBSUSP | GINTSTS_PRTINT)
GINTSTS_PRTINT)
/* /*
* This function returns the Core Interrupt register * This function returns the Core Interrupt register
...@@ -478,12 +477,6 @@ irqreturn_t dwc2_handle_common_intr(int irq, void *dev) ...@@ -478,12 +477,6 @@ irqreturn_t dwc2_handle_common_intr(int irq, void *dev)
if (gintsts & GINTSTS_USBSUSP) if (gintsts & GINTSTS_USBSUSP)
dwc2_handle_usb_suspend_intr(hsotg); dwc2_handle_usb_suspend_intr(hsotg);
if (gintsts & GINTSTS_RESTOREDONE) {
gintsts = GINTSTS_RESTOREDONE;
writel(gintsts, hsotg->regs + GINTSTS);
dev_dbg(hsotg->dev, " --Restore done interrupt received--\n");
}
if (gintsts & GINTSTS_PRTINT) { if (gintsts & GINTSTS_PRTINT) {
/* /*
* The port interrupt occurs while in device mode with HPRT0 * The port interrupt occurs while in device mode with HPRT0
......
...@@ -2104,9 +2104,6 @@ irqreturn_t dwc2_handle_hcd_intr(struct dwc2_hsotg *hsotg) ...@@ -2104,9 +2104,6 @@ irqreturn_t dwc2_handle_hcd_intr(struct dwc2_hsotg *hsotg)
dwc2_rx_fifo_level_intr(hsotg); dwc2_rx_fifo_level_intr(hsotg);
if (gintsts & GINTSTS_NPTXFEMP) if (gintsts & GINTSTS_NPTXFEMP)
dwc2_np_tx_fifo_empty_intr(hsotg); dwc2_np_tx_fifo_empty_intr(hsotg);
if (gintsts & GINTSTS_I2CINT)
/* Todo: Implement i2cintr handler */
writel(GINTSTS_I2CINT, hsotg->regs + GINTSTS);
if (gintsts & GINTSTS_PRTINT) if (gintsts & GINTSTS_PRTINT)
dwc2_port_intr(hsotg); dwc2_port_intr(hsotg);
if (gintsts & GINTSTS_HCHINT) if (gintsts & GINTSTS_HCHINT)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment