Hello.

On 06-04-2013 1:27, Matthijs Kooijman wrote:

This simply defines a list of interrupts handled by the the host
interrupt handler.

Signed-off-by: Matthijs Kooijman <matth...@stdin.nl>
[...]

diff --git a/drivers/staging/dwc2/core.c b/drivers/staging/dwc2/core.c
index a3b8556..ab6844c 100644
--- a/drivers/staging/dwc2/core.c
+++ b/drivers/staging/dwc2/core.c
@@ -480,9 +480,7 @@ void dwc2_disable_host_interrupts(struct dwc2_hsotg *hsotg)
        u32 intmsk = readl(hsotg->regs + GINTMSK);

        /* Disable host mode interrupts without disturbing common interrupts */
-       intmsk &= ~(GINTSTS_SOF | GINTSTS_PRTINT | GINTSTS_HCHINT |
-                   GINTSTS_PTXFEMP | GINTSTS_NPTXFEMP | GINTSTS_RXFLVL |
-                   GINTSTS_I2CINT);
+       intmsk &= ~(GINTMSK_HOST);

   Unneeded () again -- GINTMSK_HOST already includes them.

[...]
diff --git a/drivers/staging/dwc2/core.h b/drivers/staging/dwc2/core.h
index 0fa479e..aed18e1 100644
--- a/drivers/staging/dwc2/core.h
+++ b/drivers/staging/dwc2/core.h
@@ -757,4 +757,8 @@ extern u16 dwc2_get_otg_version(struct dwc2_hsotg *hsotg);
                         GINTSTS_MODEMIS | GINTSTS_DISCONNINT | \
                         GINTSTS_USBSUSP | GINTSTS_RESTOREDONE)

+#define GINTMSK_HOST   (GINTSTS_SOF | GINTSTS_RXFLVL | GINTSTS_NPTXFEMP | \
+                        GINTSTS_I2CINT | GINTSTS_PRTINT | GINTSTS_HCHINT | \
+                        GINTSTS_PTXFEMP)
+
  #endif /* __DWC2_CORE_H__ */

WBR, Sergei

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to