diff options
author | Jason Wessel <jason.wessel@windriver.com> | 2009-08-20 16:39:54 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-23 09:46:38 -0400 |
commit | 8d053c79f22462f55c02c8083580730b922cf7b4 (patch) | |
tree | 2b29c3219fec7cb622af6ffba69c8eb21650c662 /include/linux/usb | |
parent | 917778267fbe67703ab7d5c6f0b7a05d4c3df485 (diff) |
USB: ehci-dbgp,ehci: Allow early or late use of the dbgp device
If the EHCI debug port is initialized and in use, the EHCI host
controller driver must follow two rules.
1) If the EHCI host driver issues a controller reset, the debug
controller driver re-initialization must get called after the reset
is completed.
2) The EHCI host driver should ignore any requests to the physical
EHCI debug port when the EHCI debug port is in use.
The code to check for the debug port was moved from ehci_pci_reinit()
to ehci_pci_setup because it must get called prior to ehci_reset()
which will clear the debug port registers.
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: dbrownell@users.sourceforge.net
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/usb')
-rw-r--r-- | include/linux/usb/ehci_def.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/usb/ehci_def.h b/include/linux/usb/ehci_def.h index 07851e05d763..1909d924f816 100644 --- a/include/linux/usb/ehci_def.h +++ b/include/linux/usb/ehci_def.h | |||
@@ -179,6 +179,16 @@ extern struct console early_dbgp_console; | |||
179 | #ifdef CONFIG_EARLY_PRINTK_DBGP | 179 | #ifdef CONFIG_EARLY_PRINTK_DBGP |
180 | /* Call backs from ehci host driver to ehci debug driver */ | 180 | /* Call backs from ehci host driver to ehci debug driver */ |
181 | extern int dbgp_external_startup(void); | 181 | extern int dbgp_external_startup(void); |
182 | extern int dbgp_reset_prep(void); | ||
183 | #else | ||
184 | static inline int dbgp_reset_prep(void) | ||
185 | { | ||
186 | return 1; | ||
187 | } | ||
188 | static inline int dbgp_external_startup(void) | ||
189 | { | ||
190 | return -1; | ||
191 | } | ||
182 | #endif | 192 | #endif |
183 | 193 | ||
184 | #endif /* __LINUX_USB_EHCI_DEF_H */ | 194 | #endif /* __LINUX_USB_EHCI_DEF_H */ |