ehci: enable debugging code when CONFIG_DYNAMIC_DEBUG is set
The debugging code for ehci is enabled to run if the DEBUG flag is defined. This patch enables the debugging code also when the kernel is configured with dynamic debugging on. Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com> Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
fea26ef095
commit
1512c91f1c
@@ -168,13 +168,13 @@ static void ehci_clear_tt_buffer(struct ehci_hcd *ehci, struct ehci_qh *qh,
|
||||
* Note: this routine is never called for Isochronous transfers.
|
||||
*/
|
||||
if (urb->dev->tt && !usb_pipeint(urb->pipe) && !qh->clearing_tt) {
|
||||
#ifdef DEBUG
|
||||
#if defined(DEBUG) || defined(CONFIG_DYNAMIC_DEBUG)
|
||||
struct usb_device *tt = urb->dev->tt->hub;
|
||||
dev_dbg(&tt->dev,
|
||||
"clear tt buffer port %d, a%d ep%d t%08x\n",
|
||||
urb->dev->ttport, urb->dev->devnum,
|
||||
usb_pipeendpoint(urb->pipe), token);
|
||||
#endif /* DEBUG */
|
||||
#endif /* DEBUG || CONFIG_DYNAMIC_DEBUG */
|
||||
if (!ehci_is_TDI(ehci)
|
||||
|| urb->dev->tt->hub !=
|
||||
ehci_to_hcd(ehci)->self.root_hub) {
|
||||
|
Reference in New Issue
Block a user