usb: host: add Kconfig option for EHSET
commit 9841f37a1c
("usb: ehci: Add support for SINGLE_STEP_SET_FEATURE
test of EHSET") added additional code to the EHCI hub driver but it is
anticipated to only have a limited audience (e.g. embedded silicon
vendors and integrators). Avoid subjecting all EHCI (and in the future
maybe xHCI/OHCI, etc.) HCD users to code bloat by conditionally
compiling the EHSET-specific additions with a new Kconfig option,
CONFIG_USB_HCD_TEST_MODE.
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Acked-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
034d1527ad
commit
726a85caa3
@@ -1139,6 +1139,7 @@ submit_async (
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
#ifdef CONFIG_USB_HCD_TEST_MODE
|
||||
/*
|
||||
* This function creates the qtds and submits them for the
|
||||
* SINGLE_STEP_SET_FEATURE Test.
|
||||
@@ -1238,6 +1239,7 @@ cleanup:
|
||||
qtd_list_free(ehci, urb, head);
|
||||
return -1;
|
||||
}
|
||||
#endif /* CONFIG_USB_HCD_TEST_MODE */
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
|
Reference in New Issue
Block a user