usb: r8a66597-hdc disable interrupts fix
authorMagnus Damm <damm@opensource.se>
Wed, 27 Jan 2010 07:41:19 +0000 (07:41 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 9 Feb 2010 12:50:59 +0000 (04:50 -0800)
commitf06f00e00cbf497623fda3c1c317f28cf5d9a770
treea004bc24f7026bd64fd16e19779bd5df7ac14988
parent0ae2b7de3957a477ec0f332c4da5633499b4d3aa
usb: r8a66597-hdc disable interrupts fix

commit e5ff15bec96ba18698dae5de0bbf7e6a0653ca65 upstream.

This patch improves disable_controller() in the r8a66597-hdc
driver to disable all interrupts and clear status flags. It
also makes sure that disable_controller() is called during
probe(). This fixes the relatively rare case of unexpected
pending interrupts after kexec reboot.

Signed-off-by: Magnus Damm <damm@opensource.se>
Acked-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/r8a66597-hcd.c