usb: dwc3: dwc3-omap: Fix disable IRQ
authorGeorge Cherian <george.cherian@ti.com>
Fri, 13 Feb 2015 04:43:24 +0000 (10:13 +0530)
committerFelipe Balbi <balbi@ti.com>
Mon, 23 Feb 2015 15:36:34 +0000 (09:36 -0600)
commit96e5d31244c5542f5b2ea81d76f14ba4b8a7d440
tree4f3e02b8104dc6d3f460bd0990bd7ddaf3bbcdbf
parent1f754ef10350681f3dc1980d357e77487d308c52
usb: dwc3: dwc3-omap: Fix disable IRQ

In the wrapper the IRQ disable should be done by writing 1's to the
IRQ*_CLR register. Existing code is broken because it instead writes
zeros to IRQ*_SET register.

Fix this by adding functions dwc3_omap_write_irqmisc_clr() and
dwc3_omap_write_irq0_clr() which do the right thing.

Fixes: 72246da40f37 ("usb: Introduce DesignWare USB3 DRD Driver")
Cc: <stable@vger.kernel.org> # v3.2+
Signed-off-by: George Cherian <george.cherian@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/dwc3-omap.c