usb: musb: dsps: kill OTG timer on suspend
commite8aa6c3914195a96346457c21320e5581d3a8ac0
authorFelipe Balbi <balbi@ti.com>
Mon, 15 Sep 2014 14:03:24 +0000 (15 09:03 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Oct 2014 10:05:31 +0000 (15 12:05 +0200)
treed3673ceb9d099bb31eeb3ab4457dcaf30c1e2079
parente5c8fe8e5fec15f1ae73ce2c395498645daa6214
usb: musb: dsps: kill OTG timer on suspend

commit 468bcc2a2ca071f652009d2d20d97f2437630cae upstream.

if we don't make sure to kill the timer, it could
expire after we have already gated our clocks.

That will trigger a Data Abort exception because
we would try to access register while clock is gated.

Fix that bug.

Fixes 869c597 (usb: musb: dsps: add support for suspend and resume)
Tested-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_dsps.c