Skip to contentSkip to conversation

ezusb: move ezusb.c from drivers/usb/serial to drivers/usb/misc

PATCH Superseded Rene Buergel 2 participants 3 messages Sep 19, 2012 – Sep 24, 2012 1 message not in the archive

Subsystems (2)

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 93adca3f-6a22-45b7-a159-32bb6622efb5@shmail0

#1 lore raw

PATCH v4 1/1 ezusb: move ezusb.c from drivers/usb/serial to drivers/usb/misc

This patch moves drivers/usb/serial/ezusb.c to drivers/usb/misc/and adapts Makefiles and Kconfigs switching from bool to tristate for CONFIG_USB_EZUSB

---

drivers/usb/misc/Kconfig +4 -0
index 1bfcd02..1c63b54 100644
@@ -244,3 +244,7 @@ config USB_YUREX
 	  To compile this driver as a module, choose M here: the
 	  module will be called yurex.
 
+config USB_EZUSB
+	tristate "Functions for loading firmware on EZUSB chips"
+	help
+	    Say Y here if you need EZUSB device support.
drivers/usb/misc/Makefile +1 -0
index 796ce7e..f1f7815 100644
@@ -11,6 +11,7 @@ obj-$(CONFIG_USB_CYPRESS_CY7C63)	+= cypress_cy7c63.o
 obj-$(CONFIG_USB_CYTHERM)		+= cytherm.o
 obj-$(CONFIG_USB_EMI26)			+= emi26.o
 obj-$(CONFIG_USB_EMI62)			+= emi62.o
+obj-$(CONFIG_USB_EZUSB)			+= ezusb.o
 obj-$(CONFIG_USB_FTDI_ELAN)		+= ftdi-elan.o
 obj-$(CONFIG_USB_IDMOUSE)		+= idmouse.o
 obj-$(CONFIG_USB_IOWARRIOR)		+= iowarrior.o
drivers/usb/misc/ezusb.c renamed from drivers/usb/serial/ezusb.c +0 -0
similarity index 100%
rename from drivers/usb/serial/ezusb.c
rename to drivers/usb/misc/ezusb.c
drivers/usb/serial/Kconfig +0 -5
index 325d291..73b5e6f 100644
@@ -42,11 +42,6 @@ config USB_SERIAL_CONSOLE
 
 	  If unsure, say N.
 
-config USB_EZUSB
-	bool "Functions for loading firmware on EZUSB chips"
-	help
-	    Say Y here if you need EZUSB device support.
-
 config USB_SERIAL_GENERIC
 	bool "USB Generic Serial Driver"
 	help
drivers/usb/serial/Makefile +0 -1
index 1dc483a..12b56bb 100644
@@ -9,7 +9,6 @@ obj-$(CONFIG_USB_SERIAL)			+= usbserial.o
 usbserial-y := usb-serial.o generic.o bus.o
 
 usbserial-$(CONFIG_USB_SERIAL_CONSOLE)	+= console.o
-usbserial-$(CONFIG_USB_EZUSB)		+= ezusb.o
 
 obj-$(CONFIG_USB_SERIAL_AIRCABLE)		+= aircable.o
 obj-$(CONFIG_USB_SERIAL_ARK3116)		+= ark3116.o
#2 lore raw
Quoted 4 lines · Rene Buergel

This patch moves drivers/usb/serial/ezusb.c to drivers/usb/misc/and adapts Makefiles and Kconfigs switching from bool to tristate for CONFIG_USB_EZUSB

Ok, I get the same problem as I reported before:

ERROR: "ezusb_fx1_ihex_firmware_download" [drivers/usb/serial/whiteheat.ko] undefined!
ERROR: "ezusb_fx1_ihex_firmware_download" [drivers/usb/serial/keyspan_pda.ko] undefined!
ERROR: "ezusb_fx1_set_reset" [drivers/usb/serial/keyspan_pda.ko] undefined!
ERROR: "ezusb_fx1_ihex_firmware_download" [drivers/usb/serial/keyspan.ko] undefined!

What I did was:
- build the kernel without this patch.
- apply the patch
- run make to build the kernel again.

Something isn't getting rebuilt properly, and this is going to hit lots of other kernel developers, so I can't take this as-is.

I've attached my .config file below, maybe something there can help with figuring it out?

thanks,

greg k-h

#3 lore raw
Quoted 14 lines

ERROR: "ezusb_fx1_ihex_firmware_download" [drivers/usb/serial/whiteheat.ko] undefined!
ERROR: "ezusb_fx1_ihex_firmware_download" [drivers/usb/serial/keyspan_pda.ko] undefined!
ERROR: "ezusb_fx1_set_reset" [drivers/usb/serial/keyspan_pda.ko] undefined!
ERROR: "ezusb_fx1_ihex_firmware_download" [drivers/usb/serial/keyspan.ko] undefined!

What I did was:
- build the kernel without this patch.
- apply the patch
- run make to build the kernel again.

Quoted 5 lines

Something isn't getting rebuilt properly, and this is going to hit lots of other kernel developers, so I can't take this as-is.

I've attached my .config file below, maybe something there can help with figuring it out?

thanks!

i managed to reproduce the error with your config.
I'm still trying to figure out why my config worked fine and how to fix this...

This might take me a while.

René Bürgel