Skip to contentSkip to conversation

DM9000: Remove blackfin as special case.

PATCH Ben Dooks 3 participants 4 messages Jun 15, 2008 – Jun 18, 2008

Subsystems (2)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

The first part of remove the DEFAULT_TRIGGER should be relatively easy to fixup in whatever blackfin archs still use this.

The otherbits, I would recommend the relevant blackfin IO headers should deal with defining the six functions to the relevant blackfin implementation.

I would have sent this directly to the blackfin list, but it is marked as subscribers only.

drivers/net/dm9000.c +1 -15
Index: linux-2.6.26-rc6-quilt1/drivers/net/dm9000.c
===================================================================
@@ -47,18 +47,6 @@
 #define CARDNAME	"dm9000"
 #define DRV_VERSION	"1.31"
 
-#ifdef CONFIG_BLACKFIN
-#define readsb	insb
-#define readsw	insw
-#define readsl	insl
-#define writesb	outsb
-#define writesw	outsw
-#define writesl	outsl
-#define DEFAULT_TRIGGER IRQF_TRIGGER_HIGH
-#else
-#define DEFAULT_TRIGGER (0)
-#endif
-
 /*
  * Transmit timeout, default 5 seconds.
  */
@@ -1012,10 +1000,8 @@ dm9000_open(struct net_device *dev)
 	/* If there is no IRQ type specified, default to something that
 	 * may work, and tell the user that this is a problem */
 
-	if (irqflags == IRQF_TRIGGER_NONE) {
+	if (irqflags == IRQF_TRIGGER_NONE)
 		dev_warn(db->dev, "WARNING: no IRQ resource flags set.\n");
-		irqflags = DEFAULT_TRIGGER;
-	}
 	
 	irqflags |= IRQF_SHARED;
 
Signature · 3 lines
Ben ([email protected], http://www.fluff.org/)

  'a smiley only costs 4 bytes'
#1 lore raw
Quoted 5 lines · Ben Dooks

The first part of remove the DEFAULT_TRIGGER should be relatively easy to fixup in whatever blackfin archs still use this.

I think, we can pass this irqflag from the platform resource.

Quoted 6 lines

The otherbits, I would recommend the relevant blackfin IO headers should deal with defining the six functions to the relevant blackfin implementation.

I would have sent this directly to the blackfin list, but it is marked as subscribers only.

Would you please send me your patch directly?

Thanks a lot
-Bryan

#2 lore raw
In reply to Ben Dooks
Quoted 38 lines · Ben Dooks

The first part of remove the DEFAULT_TRIGGER should be relatively easy to fixup in whatever blackfin archs still use this.

The otherbits, I would recommend the relevant blackfin IO headers should deal with defining the six functions to the relevant blackfin implementation.

I would have sent this directly to the blackfin list, but it is marked as subscribers only.

Index: linux-2.6.26-rc6-quilt1/drivers/net/dm9000.c
===================================================================

drivers/net/dm9000.c +0 -12
@@ -47,18 +47,6 @@
 #define CARDNAME	"dm9000"
 #define DRV_VERSION	"1.31"
 
-#ifdef CONFIG_BLACKFIN
-#define readsb	insb
-#define readsw	insw
-#define readsl	insl
-#define writesb	outsb
-#define writesw	outsw
-#define writesl	outsl
-#define DEFAULT_TRIGGER IRQF_TRIGGER_HIGH
-#else
-#define DEFAULT_TRIGGER (0)
-#endif
-
 /*
  * Transmit timeout, default 5 seconds.
  */

drivers/net/dm9000.c dm9000_open(struct net_device *dev) · line 1017

Quoted 7 lines
drivers/net/dm9000.c +1 -2
@@ -1012,10 +1000,8 @@ dm9000_open(struct net_device *dev)
 	/* If there is no IRQ type specified, default to something that
 	 * may work, and tell the user that this is a problem */
 
-	if (irqflags == IRQF_TRIGGER_NONE) {
+	if (irqflags == IRQF_TRIGGER_NONE)
 		dev_warn(db->dev, "WARNING: no IRQ resource flags set.\n");
-		irqflags = DEFAULT_TRIGGER;

Is this for 2.6.26 or 2.6.27?

And please CC me on net driver patches, thanks...

Jeff

author
#3 lore raw
Quoted 3 lines · Jeff Garzik

Ben Dooks wrote:

Is this for 2.6.26 or 2.6.27?

This set is for application once 2.6.26 is released.

Quoted 1 line

And please CC me on net driver patches, thanks...

On all, or just patches that want applying?

Signature · 4 lines
Ben

Q:      What's a light-year?
A:      One-third less calories than a regular year.