Skip to contentSkip to conversation

wireless: Make Atmel driver use SET_NETDEV_DEV

PATCH In review Dan Williams 4 participants 7 messages Feb 1, 2005 – Feb 2, 2005

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

PATCH 1/1 wireless: Make Atmel driver use SET_NETDEV_DEV

Make the Atmel wireless driver use SET_NETDEV_DEV to get the correct entries in sysfs. Seems like somebody meant to do this but it got lost. atmel_cs.c was previously fixed to pass in the correct struct device * via handle_to_dev() but the driver never actually used it.

drivers/net/wireless/atmel.c +2 -0
@@ -1579,6 +1579,8 @@
 	dev->irq = irq;
 	dev->base_addr = port;
 	
+	SET_NETDEV_DEV(dev, sys_dev);
+	
 	if ((rc = request_irq(dev->irq, service_interrupt, SA_SHIRQ, dev->name, dev))) {
 		printk(KERN_ERR "%s: register interrupt %d failed, rc %d\n", dev->name, irq, rc );
 		goto err_out_free;
drivers/net/wireless/atmel.c +2 -0
@@ -1579,6 +1579,8 @@
 	dev->irq = irq;
 	dev->base_addr = port;
 	
+	SET_NETDEV_DEV(dev, sys_dev);
+	
 	if ((rc = request_irq(dev->irq, service_interrupt, SA_SHIRQ, dev->name, dev))) {
 		printk(KERN_ERR "%s: register interrupt %d failed, rc %d\n", dev->name, irq, rc );
 		goto err_out_free;
#1 lore raw
Quoted 12 lines · Dan Williams

Make the Atmel wireless driver use SET_NETDEV_DEV to get the correct entries in sysfs. Seems like somebody meant to do this but it got lost. atmel_cs.c was previously fixed to pass in the correct struct device * via handle_to_dev() but the driver never actually used it.

drivers/net/wireless/atmel.c line 1586

Quoted 8 lines
drivers/net/wireless/atmel.c +2 -0
@@ -1579,6 +1579,8 @@
 	dev->irq = irq;
 	dev->base_addr = port;
 
+	SET_NETDEV_DEV(dev, sys_dev);
+	
 	if ((rc = request_irq(dev->irq, service_interrupt, SA_SHIRQ, dev->name, dev))) {
 		printk(KERN_ERR "%s: register interrupt %d failed, rc %d\n", dev->name, irq, rc );
 		goto err_out_free;

Can you please resend all your patches with _just_ the patch inline, rather than both inline and attached?

Your emails break my scripts, since the scripts try to apply both.

Jeff

#2 lore raw

And both evolution and pine screw up the patches inline and break the line at odd places... at least, that's what I see... you don't mind if you have to do a little surgery here and there?

Dan

Quoted 31 lines · Jeff Garzik
Quoted 12 lines · Dan Williams

Make the Atmel wireless driver use SET_NETDEV_DEV to get the correct entries in sysfs. Seems like somebody meant to do this but it got lost. atmel_cs.c was previously fixed to pass in the correct struct device * via handle_to_dev() but the driver never actually used it.

drivers/net/wireless/atmel.c line 1586

Quoted 8 lines
drivers/net/wireless/atmel.c +2 -0
@@ -1579,6 +1579,8 @@
 	dev->irq = irq;
 	dev->base_addr = port;
 
+	SET_NETDEV_DEV(dev, sys_dev);
+	
 	if ((rc = request_irq(dev->irq, service_interrupt, SA_SHIRQ, dev->name, dev))) {
 		printk(KERN_ERR "%s: register interrupt %d failed, rc %d\n", dev->name, irq, rc );
 		goto err_out_free;

Can you please resend all your patches with _just_ the patch inline, rather than both inline and attached?

Your emails break my scripts, since the scripts try to apply both.

Jeff

#3 lore raw
Quoted 3 lines · Dan Williams

And both evolution and pine screw up the patches inline and break the line at odd places... at least, that's what I see... you don't mind if you have to do a little surgery here and there?

This is why we have request a common patch format -- because otherwise, everybody would request just-a-little-surgery-here-and-there.

It's much easier in the long run to get people to find solutions (pine+vi or mutt or Mozilla Mail) that work, than to hope that a maintainer will know and fix up each submittor's mailer's eccentricities.

Jeff

#4 lore raw
Quoted 3 lines · Jeff Garzik

It's much easier in the long run to get people to find solutions (pine+vi or mutt or Mozilla Mail) that work, than to hope that a maintainer will know and fix up each submittor's mailer's eccentricities.

Mozilla Mail is fucked up for sending patches aswell.

#5 lore raw
Quoted 6 lines · Christoph Hellwig
Quoted 1 line · Jeff Garzik

It's much easier in the long run to get people to find solutions (pine+vi or mutt or Mozilla Mail) that work, than to hope that a maintainer will know and fix up each submittor's mailer's eccentricities.

Mozilla Mail is fucked up for sending patches aswell.

Works for me.

Jeff

#6 lore raw
In reply to Dan Williams
Quoted 3 lines · Dan Williams

And both evolution and pine screw up the patches inline and break the line at odd places... at least, that's what I see... you don't mind if you have to do a little surgery here and there?

Have you tried setting the format to "Preformat", and using Insert->Insert File... ?

This is a really long line entered in "preformat" mode, and notice it doesn't wrap (if you look at it in text.)

Signature · 1 line
David Dillow <[email protected]>