Skip to contentSkip to conversation

PATCH In review Bryan Wu 2 participants 4 messages Nov 23, 2007 – Nov 24, 2007

Subsystems (2)
lore
Share & tools
lore
author
#1 lore raw

PATCH 1/2 Blackfin SMC91x Driver: punt CONFIG_BFIN -- we already have CONFIG_BLACKFIN

From: Mike Frysinger <[email protected]>

---
 drivers/net/Kconfig  |    2 +-
 drivers/net/smc91x.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/Kconfig +1 -1
index e8d69b0..1437b37 100644
@@ -888,7 +888,7 @@ config SMC91X
 	tristate "SMC 91C9x/91C1xxx support"
 	select CRC32
 	select MII
-	depends on ARM || REDWOOD_5 || REDWOOD_6 || M32R || SUPERH || SOC_AU1X00 || BFIN
+	depends on ARM || REDWOOD_5 || REDWOOD_6 || M32R || SUPERH || SOC_AU1X00 || BLACKFIN
 	help
 	  This is a driver for SMC's 91x series of Ethernet chipsets,
 	  including the SMC91C94 and the SMC91C111. Say Y if you want it
drivers/net/smc91x.h +1 -1
index db34e1e..07b7f71 100644
@@ -55,7 +55,7 @@
 #define SMC_insw(a, r, p, l)	readsw((a) + (r), p, l)
 #define SMC_outsw(a, r, p, l)	writesw((a) + (r), p, l)
 
-#elif defined(CONFIG_BFIN)
+#elif defined(CONFIG_BLACKFIN)
 
 #define SMC_IRQ_FLAGS		IRQF_TRIGGER_HIGH
 #define RPC_LSA_DEFAULT		RPC_LED_100_10
Signature · 1 line
1.5.3.4
author
#3 lore raw

PATCH 2/2 Blackfin EMAC driver: fix bug - NAT doesn't work with bfin_mac driver

In reply to Bryan Wu

From: Vitja Makarov <[email protected]>

https://blackfin.uclinux.org/gf/project/uclinux-dist/forum/?action=ForumBrowse&forum_id=39&thread_id=23114&_forum_action=ForumMessageBrowse
Today I was dealing with the same problem, on my custom bf537 board, and bfin_mac driver. I found that the problem is in setting ip_summed flag of skbuff structure,

---
 drivers/net/bfin_mac.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/bfin_mac.c +1 -1
index 0b99b55..eb97175 100644
@@ -676,7 +676,7 @@ static void bf537mac_rx(struct net_device *dev)
 	skb->protocol = eth_type_trans(skb, dev);
 #if defined(BFIN_MAC_CSUM_OFFLOAD)
 	skb->csum = current_rx_ptr->status.ip_payload_csum;
-	skb->ip_summed = CHECKSUM_PARTIAL;
+	skb->ip_summed = CHECKSUM_COMPLETE;
 #endif
 
 	netif_rx(skb);
Signature · 1 line
1.5.3.4