ezusb: move ezusb.c from drivers/usb/serial to drivers/usb/misc
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): c28594f9-45a3-4232-82fc-2f7c65cfb30c@shmail0
PATCH v5 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/
- renamed CONFIG_USB_EZUSB to CONFIG_USB_EZUSB_FX2 to avoid build errors
- adapts Makefiles and Kconfigs switching from bool to tristate for CONFIG_USB_EZUSB_FX2
---
drivers/usb/misc/Kconfig +5 -0
@@ -244,3 +244,8 @@ config USB_YUREX To compile this driver as a module, choose M here: the module will be called yurex. +config USB_EZUSB_FX2 + tristate "Functions for loading firmware on EZUSB chips" + help + Say Y here if you need EZUSB device support. + (Cypress FX/FX2/FX2LP microcontrollers)
drivers/usb/misc/Makefile +1 -0
@@ -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_FX2) += 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
drivers/usb/serial/Kconfig +4 -9
@@ -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
@@ -94,7 +89,7 @@ config USB_SERIAL_CH341 config USB_SERIAL_WHITEHEAT tristate "USB ConnectTech WhiteHEAT Serial Driver" - select USB_EZUSB + select USB_EZUSB_FX2 help Say Y here if you want to use a ConnectTech WhiteHEAT 4 port USB to serial converter device.
@@ -281,7 +276,7 @@ config USB_SERIAL_IUU config USB_SERIAL_KEYSPAN_PDA tristate "USB Keyspan PDA Single Port Serial Driver" - select USB_EZUSB + select USB_EZUSB_FX2 help Say Y here if you want to use a Keyspan PDA single port USB to serial converter device. This driver makes use of firmware
@@ -292,7 +287,7 @@ config USB_SERIAL_KEYSPAN_PDA config USB_SERIAL_KEYSPAN tristate "USB Keyspan USA-xxx Serial Driver" - select USB_EZUSB + select USB_EZUSB_FX2 ---help--- Say Y here if you want to use Keyspan USB to serial converter devices. This driver makes use of Keyspan's official firmware
@@ -596,7 +591,7 @@ config USB_SERIAL_CYBERJACK config USB_SERIAL_XIRCOM tristate "USB Xircom / Entregra Single Port Serial Driver" - select USB_EZUSB + select USB_EZUSB_FX2 help Say Y here if you want to use a Xircom or Entregra single port USB to serial converter device. This driver makes use of firmware
drivers/usb/serial/Makefile +0 -1
@@ -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
Greg KH
maintainerQuoted 3 lines · Rene Buergel
This patch
- movesdrivers/usb/serial/ezusb.ctodrivers/usb/misc/
- renamedCONFIG_USB_EZUSBtoCONFIG_USB_EZUSB_FX2to avoid build errors
Ah, does this solve the error I was seeing? Nice job figuring that one out.
greg k-h
Quoted 1 line · Rene Buergel
- renamed
CONFIG_USB_EZUSBtoCONFIG_USB_EZUSB_FX2to avoid build errors
Is this really the reason for the build error? I doubt it.
Also, does the code in fact support only FX2, neither older chips nor newer FX3?
drivers/usb/misc/Kconfig config USB_YUREX · line 248
Quoted 10 lines
drivers/usb/misc/Kconfig +2
-0@@ -244,3 +244,8 @@ config USB_YUREX To compile this driver as a module, choose M here: the module will be called yurex. +config USB_EZUSB_FX2 + tristate "Functions for loading firmware on EZUSB chips"
If only FX2 then I suggest mentioning that also in the immediately user-visible option description, not only in the help.
drivers/usb/misc/Kconfig config USB_YUREX · line 251
Quoted 3 lines
drivers/usb/misc/Kconfig +3
-0+ help + Say Y here if you need EZUSB device support. + (Cypress FX/FX2/FX2LP microcontrollers)
If FX is also supported then perhaps still rename the option, although I think renaming is unrelated to the build problems.
I think it makes sense to call the option after the "highest" supported chip.
//Peter
Quoted 4 lines · Peter Stuge
Quoted 1 line · Rene Buergel
- renamed
CONFIG_USB_EZUSBtoCONFIG_USB_EZUSB_FX2to avoid build errorsIs this really the reason for the build error? I doubt it.
It is, try it without it, the Makefiles get confused :(
thanks,
greg k-h
Quoted 2 lines
Also, does the code in fact support only FX2, neither older chips nor newer FX3?
It also does support the FX(1), but not FX3. At first sight, it looks like FX3 got another register interface.
Quoted 5 lines
If FX is also supported then perhaps still rename the option, although I think renaming is unrelated to the build problems.
I think it makes sense to call the option after the "highest" supported chip.
That's what it is. ;)
I would be happy to re-rename this option to USB_EZUSB somewhere in the future, but i think it is the best option to stick with this for at least one major version to avoid build errors.
Quoted 4 lines
//Peter