Skip to contentSkip to conversation

move zd1201 where it belongs

PATCH Pavel Machek 5 participants 8 messages Jun 5, 2006

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

zd1201 is wifi adapter, yet it is hiding in drivers/usb/net where noone can find it. This moves Kconfig/Makefile to right place; you still need to manually move .c and .h files.

drivers/net/wireless/Kconfig +17 -0
index e0874cb..313cfad 100644
@@ -503,6 +503,23 @@ config PRISM54
 	  say M here and read <file:Documentation/modules.txt>.  The module
 	  will be called prism54.ko.
 
+config USB_ZD1201
+	tristate "USB ZD1201 based Wireless device support"
+	depends on NET_RADIO
+	select FW_LOADER
+	---help---
+	  Say Y if you want to use wireless LAN adapters based on the ZyDAS
+	  ZD1201 chip.
+
+	  This driver makes the adapter appear as a normal Ethernet interface,
+	  typically on wlan0.
+	  
+	  The zd1201 device requires external firmware to be loaded.
+	  This can be found at http://linux-lc100020.sourceforge.net/
+	  
+	  To compile this driver as a module, choose M here: the
+	  module will be called zd1201.
+
 source "drivers/net/wireless/hostap/Kconfig"
 source "drivers/net/wireless/bcm43xx/Kconfig"
 
drivers/net/wireless/Makefile +2 -0
index c867798..512603d 100644
@@ -40,3 +40,5 @@ obj-$(CONFIG_BCM43XX)		+= bcm43xx/
 # 16-bit wireless PCMCIA client drivers
 obj-$(CONFIG_PCMCIA_RAYCS)	+= ray_cs.o
 obj-$(CONFIG_PCMCIA_WL3501)	+= wl3501_cs.o
+
+obj-$(CONFIG_USB_ZD1201)	+= zd1201.o
drivers/usb/net/Kconfig +0 -17
index efd6ca7..0540596 100644
@@ -301,21 +301,4 @@ config USB_NET_ZAURUS
 	  some cases CDC MDLM) protocol, not "g_ether".
 
 
-config USB_ZD1201
-	tristate "USB ZD1201 based Wireless device support"
-	depends on NET_RADIO
-	select FW_LOADER
-	---help---
-	  Say Y if you want to use wireless LAN adapters based on the ZyDAS
-	  ZD1201 chip.
-
-	  This driver makes the adapter appear as a normal Ethernet interface,
-	  typically on wlan0.
-	  
-	  The zd1201 device requires external firmware to be loaded.
-	  This can be found at http://linux-lc100020.sourceforge.net/
-	  
-	  To compile this driver as a module, choose M here: the
-	  module will be called zd1201.
-
 endmenu
drivers/usb/net/Makefile +0 -1
index a21e6ea..160f19d 100644
@@ -15,7 +15,6 @@ obj-$(CONFIG_USB_NET_RNDIS_HOST)	+= rndi
 obj-$(CONFIG_USB_NET_CDC_SUBSET)	+= cdc_subset.o
 obj-$(CONFIG_USB_NET_ZAURUS)	+= zaurus.o
 obj-$(CONFIG_USB_USBNET)	+= usbnet.o
-obj-$(CONFIG_USB_ZD1201)	+= zd1201.o
 
 ifeq ($(CONFIG_USB_DEBUG),y)
 EXTRA_CFLAGS += -DDEBUG
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#1 lore raw
Quoted 11 lines · Pavel Machek

zd1201 is wifi adapter, yet it is hiding in drivers/usb/net where noone can find it. This moves Kconfig/Makefile to right place; you still need to manually move .c and .h files.

drivers/net/wireless/Kconfig +0 -0
index e0874cb..313cfad 100644

drivers/net/wireless/Kconfig config PRISM54 · line 509

Quoted 7 lines
drivers/net/wireless/Kconfig +4 -0
@@ -503,6 +503,23 @@ config PRISM54
 	  say M here and read <file:Documentation/modules.txt>.  The module
 	  will be called prism54.ko.
 
+config USB_ZD1201
+	tristate "USB ZD1201 based Wireless device support"
+	depends on NET_RADIO
+	select FW_LOADER

do you think it should at least depend in some form or another on CONFIG_USB ?

#2 lore raw
Quoted 15 lines · Arjan van de Ven
Quoted 14 lines · Pavel Machek

zd1201 is wifi adapter, yet it is hiding in drivers/usb/net where noone can find it. This moves Kconfig/Makefile to right place; you still need to manually move .c and .h files.

drivers/net/wireless/Kconfig +0 -0
index e0874cb..313cfad 100644
@@ -503,6 +503,23 @@ config PRISM54
 	  say M here and read <file:Documentation/modules.txt>.  The module
 	  will be called prism54.ko.
 
Quoted 7 lines

drivers/net/wireless/Kconfig config PRISM54 · line 509

Quoted 4 lines
drivers/net/wireless/Kconfig +4 -0
+config USB_ZD1201
+	tristate "USB ZD1201 based Wireless device support"
+	depends on NET_RADIO
+	select FW_LOADER

do you think it should at least depend in some form or another on CONFIG_USB ?

Right, added USB && to depends directive.
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#3 lore raw
Quoted 10 lines · Pavel Machek
Quoted 7 lines · Arjan van de Ven
Quoted 3 lines · Pavel Machek

zd1201 is wifi adapter, yet it is hiding in drivers/usb/net where noone can find it. This moves Kconfig/Makefile to right place; you still need to manually move .c and .h files.

do you think it should at least depend in some form or another on CONFIG_USB ?

Right, added USB && to depends directive.

Did you mean to only copy Jiri and LKML?

It seems like you should have sent at least sent this to [email protected], if not also to me, Jeroen Vreeken and/or possibly Greg K-H (USB subsystem).

Will you be posting a new version, with the CONFIG_USB change?

Thanks,

John

Signature · 2 lines
John W. Linville
[email protected]
#4 lore raw

Hi!

Quoted 10 lines
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

zd1201 is wifi adapter, yet it is hiding in drivers/usb/net where noone can find it. This moves Kconfig/Makefile to right place; you still need to manually move .c and .h files.

do you think it should at least depend in some form or another on CONFIG_USB ?

Right, added USB && to depends directive.

Did you mean to only copy Jiri and LKML?

Yes, because this should go in as a git patch (so it is move, not create new file), and I was hoping for Jiri to generate proper git-patch :-).

Quoted 5 lines

It seems like you should have sent at least sent this to [email protected], if not also to me, Jeroen Vreeken and/or possibly Greg K-H (USB subsystem).

Will you be posting a new version, with the CONFIG_USB change?

Here it is, still

drivers/net/wireless/Kconfig +17 -0
index e0874cb..1eccdb3 100644
@@ -503,6 +503,23 @@ config PRISM54
 	  say M here and read <file:Documentation/modules.txt>.  The module
 	  will be called prism54.ko.
 
+config USB_ZD1201
+	tristate "USB ZD1201 based Wireless device support"
+	depends on USB && NET_RADIO
+	select FW_LOADER
+	---help---
+	  Say Y if you want to use wireless LAN adapters based on the ZyDAS
+	  ZD1201 chip.
+
+	  This driver makes the adapter appear as a normal Ethernet interface,
+	  typically on wlan0.
+	  
+	  The zd1201 device requires external firmware to be loaded.
+	  This can be found at http://linux-lc100020.sourceforge.net/
+	  
+	  To compile this driver as a module, choose M here: the
+	  module will be called zd1201.
+
 source "drivers/net/wireless/hostap/Kconfig"
 source "drivers/net/wireless/bcm43xx/Kconfig"
 
drivers/net/wireless/Makefile +2 -0
index c867798..512603d 100644
@@ -40,3 +40,5 @@ obj-$(CONFIG_BCM43XX)		+= bcm43xx/
 # 16-bit wireless PCMCIA client drivers
 obj-$(CONFIG_PCMCIA_RAYCS)	+= ray_cs.o
 obj-$(CONFIG_PCMCIA_WL3501)	+= wl3501_cs.o
+
+obj-$(CONFIG_USB_ZD1201)	+= zd1201.o
drivers/usb/net/Kconfig +0 -17
index efd6ca7..0540596 100644
@@ -301,21 +301,4 @@ config USB_NET_ZAURUS
 	  some cases CDC MDLM) protocol, not "g_ether".
 
 
-config USB_ZD1201
-	tristate "USB ZD1201 based Wireless device support"
-	depends on NET_RADIO
-	select FW_LOADER
-	---help---
-	  Say Y if you want to use wireless LAN adapters based on the ZyDAS
-	  ZD1201 chip.
-
-	  This driver makes the adapter appear as a normal Ethernet interface,
-	  typically on wlan0.
-	  
-	  The zd1201 device requires external firmware to be loaded.
-	  This can be found at http://linux-lc100020.sourceforge.net/
-	  
-	  To compile this driver as a module, choose M here: the
-	  module will be called zd1201.
-
 endmenu
drivers/usb/net/Makefile +0 -1
index a21e6ea..160f19d 100644
@@ -15,7 +15,6 @@ obj-$(CONFIG_USB_NET_RNDIS_HOST)	+= rndi
 obj-$(CONFIG_USB_NET_CDC_SUBSET)	+= cdc_subset.o
 obj-$(CONFIG_USB_NET_ZAURUS)	+= zaurus.o
 obj-$(CONFIG_USB_USBNET)	+= usbnet.o
-obj-$(CONFIG_USB_ZD1201)	+= zd1201.o
 
 ifeq ($(CONFIG_USB_DEBUG),y)
 EXTRA_CFLAGS += -DDEBUG
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#5 lore raw
Quoted 3 lines · Pavel Machek

Yes, because this should go in as a git patch (so it is move, not create new file), and I was hoping for Jiri to generate proper git-patch :-).

The proper person for this is maintainer of wireless or USB.

Quoted 3 lines

Here it is, still

In addition to this,
mv drivers/usb/net/zd1201.[ch] drivers/net/wireless/ needs to be invoked.

I agree that the patch should be applied to remove confusion (not many people know about this driver, even among wireless developers).

Jiri

Signature · 2 lines
Jiri Benc
SUSE Labs
#6 lore raw
In reply to Pavel Machek
Quoted 5 lines · Pavel Machek
Quoted 1 line

Did you mean to only copy Jiri and LKML?

Yes, because this should go in as a git patch (so it is move, not create new file), and I was hoping for Jiri to generate proper git-patch :-).

Ah, I see. Well, I can handle this just fine.

Thanks,

John

Signature · 2 lines
John W. Linville
[email protected]
#7 lore raw
Quoted 9 lines · John W. Linville
Quoted 5 lines · Pavel Machek
Quoted 1 line

Did you mean to only copy Jiri and LKML?

Yes, because this should go in as a git patch (so it is move, not create new file), and I was hoping for Jiri to generate proper git-patch :-).

Ah, I see. Well, I can handle this just fine.

Ack from my side, feel free to move this to your section of the kernel :)

thanks,

greg k-h