Skip to contentSkip to conversation

ppc32: MV643XX ethernet is an option for Pegasos

PATCH New [email protected] 1 participant 1 message Apr 13, 2005 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 44/198 ppc32: MV643XX ethernet is an option for Pegasos

From: Benjamin Herrenschmidt <[email protected]>

This patch allows Kconfig to build the MV643xx ethernet driver on Pegasos (CONFIG_PPC_MULTIPLATFORM) and adds what I think is a missing fix from Dale's batch, that is remove SA_INTERRUPT and add SA_SHIRQ in there as the interrupt is shared if I understand things correctly.

---

 25-akpm/drivers/net/Kconfig       |    2 +-
 25-akpm/drivers/net/mv643xx_eth.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/Kconfig renamed from drivers/net/Kconfig~ppc32-mv643xx-ethernet-is-an-option-for-pegasos +1 -1
diff -puN drivers/net/Kconfig~ppc32-mv643xx-ethernet-is-an-option-for-pegasos drivers/net/Kconfig
@@ -2044,7 +2044,7 @@ config GFAR_NAPI
 
 config MV643XX_ETH
 	tristate "MV-643XX Ethernet support"
-	depends on MOMENCO_OCELOT_C || MOMENCO_JAGUAR_ATX || MV64360 || MOMENCO_OCELOT_3
+	depends on MOMENCO_OCELOT_C || MOMENCO_JAGUAR_ATX || MV64360 || MOMENCO_OCELOT_3 || PPC_MULTIPLATFORM
 	help
 	  This driver supports the gigabit Ethernet on the Marvell MV643XX
 	  chipset which is used in the Momenco Ocelot C and Jaguar ATX and
drivers/net/mv643xx_eth.c renamed from drivers/net/mv643xx_eth.c~ppc32-mv643xx-ethernet-is-an-option-for-pegasos +1 -1
diff -puN drivers/net/mv643xx_eth.c~ppc32-mv643xx-ethernet-is-an-option-for-pegasos drivers/net/mv643xx_eth.c
@@ -668,7 +668,7 @@ static int mv643xx_eth_open(struct net_d
 	spin_lock_irq(&mp->lock);
 
 	err = request_irq(dev->irq, mv643xx_eth_int_handler,
-			SA_INTERRUPT | SA_SAMPLE_RANDOM, dev->name, dev);
+			SA_SHIRQ | SA_SAMPLE_RANDOM, dev->name, dev);
 
 	if (err) {
 		printk(KERN_ERR "Can not assign IRQ number to MV643XX_eth%d\n",

_