mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-21 19:53:59 +08:00
b5a2a8ecb2
With the addition of VUDC, the USBIP stack can now be used on
configurations without USB host support, but trying to build
it with USB gadget support disabled fails with
drivers/usb/built-in.o: In function `vep_dequeue':
vudc_main.c:(.text+0xa6ddc): undefined reference to `usb_gadget_giveback_request'
drivers/usb/built-in.o: In function `nuke':
vudc_main.c:(.text+0xa6ea8): undefined reference to `usb_gadget_giveback_request'
drivers/usb/built-in.o: In function `vudc_device_reset':
vudc_main.c:(.text+0xa720c): undefined reference to `usb_gadget_udc_reset'
drivers/usb/built-in.o: In function `vudc_probe':
This addresses both issues, by changing the dependency for USBIP_CORE
to USB_COMMON, and adding additional dependencies on USB or USB_GADGET
for the individual portions as needed.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 9360575c58
("usbip: vudc: Add vudc to Kconfig")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
53 lines
1.5 KiB
Plaintext
53 lines
1.5 KiB
Plaintext
config USBIP_CORE
|
|
tristate "USB/IP support"
|
|
depends on USB_COMMON && NET
|
|
---help---
|
|
This enables pushing USB packets over IP to allow remote
|
|
machines direct access to USB devices. It provides the
|
|
USB/IP core that is required by both drivers.
|
|
|
|
For more details, and to get the userspace utility
|
|
programs, please see <http://usbip.sourceforge.net/>.
|
|
|
|
To compile this as a module, choose M here: the module will
|
|
be called usbip-core.
|
|
|
|
If unsure, say N.
|
|
|
|
config USBIP_VHCI_HCD
|
|
tristate "VHCI hcd"
|
|
depends on USBIP_CORE && USB
|
|
---help---
|
|
This enables the USB/IP virtual host controller driver,
|
|
which is run on the remote machine.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called vhci-hcd.
|
|
|
|
config USBIP_HOST
|
|
tristate "Host driver"
|
|
depends on USBIP_CORE && USB
|
|
---help---
|
|
This enables the USB/IP host driver, which is run on the
|
|
machine that is sharing the USB devices.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called usbip-host.
|
|
|
|
config USBIP_VUDC
|
|
tristate "VUDC driver"
|
|
depends on USBIP_CORE && USB_GADGET
|
|
---help---
|
|
This enables the USB/IP virtual USB device controller
|
|
driver, which is run on the host machine, allowing the
|
|
machine itself to act as a device.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called usbip-vudc.
|
|
|
|
config USBIP_DEBUG
|
|
bool "Debug messages for USB/IP"
|
|
depends on USBIP_CORE
|
|
---help---
|
|
This enables the debug messages from the USB/IP drivers.
|