USB: EHCI: add no_io_watchdog platform_data parameter to ehci-platform
authorFlorian Fainelli <florian@openwrt.org>
Mon, 8 Oct 2012 13:11:21 +0000 (15:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Oct 2012 18:15:47 +0000 (11:15 -0700)
commit4534874a8720a361845dce47d310a98e9aac8aeb
tree5eb0a1d92af8eac4d813d68dc66992f5a063b8eb
parent6d39944ee85fb46cd499b16231cbb10a00e3d878
USB: EHCI: add no_io_watchdog platform_data parameter to ehci-platform

Enhance the ehci-platform driver to also accept no_io_watchdog as a platform
data parameter. When no_io_watchdog is set to 1, the ehci controller will set
ehci->need_io_watchdog to 0. Since most EHCI controllers do need the I/O
watchdog to be on, only let those which need it to turn the watchdog off.

Make sure that we change need_io_watchdog after the call to ehci_setup()
because ehci_setup() will unconditionnaly set need_io_watchdog to 1.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-platform.c
include/linux/usb/ehci_pdriver.h