diff options
Diffstat (limited to 'packages/linux/ixp4xx-kernel/2.6.16/92-nslu2-mac.patch')
-rw-r--r-- | packages/linux/ixp4xx-kernel/2.6.16/92-nslu2-mac.patch | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/packages/linux/ixp4xx-kernel/2.6.16/92-nslu2-mac.patch b/packages/linux/ixp4xx-kernel/2.6.16/92-nslu2-mac.patch index d1e84e222c..e96c5f9e75 100644 --- a/packages/linux/ixp4xx-kernel/2.6.16/92-nslu2-mac.patch +++ b/packages/linux/ixp4xx-kernel/2.6.16/92-nslu2-mac.patch @@ -13,7 +13,7 @@ #include <asm/mach-types.h> #include <asm/mach/arch.h> -@@ -117,6 +120,59 @@ static void nslu2_power_off(void) +@@ -117,6 +120,58 @@ static void nslu2_power_off(void) gpio_line_set(NSLU2_PO_GPIO, IXP4XX_GPIO_HIGH); } @@ -31,11 +31,6 @@ + err = mtd->read(mtd, 0x3FFB0, 6, &retlen, (u8 *) &mac.sa_data); + if (err != 0 || retlen != 6) + printk(KERN_ERR "nslu2: mac addr read failed\n"); -+ else -+ printk(KERN_INFO -+ "nslu2: mac %.2x:%.2x:%.2x:%.2x:%.2x:%.2x\n", -+ mac.sa_data[0], mac.sa_data[1], mac.sa_data[2], -+ mac.sa_data[3], mac.sa_data[4], mac.sa_data[5]); + } +} + @@ -61,6 +56,10 @@ + if (event == NETDEV_REGISTER && is_valid_ether_addr(mac.sa_data)) { + mac.sa_family = dev->type; + dev_set_mac_address(dev, &mac); ++ printk(KERN_INFO ++ "ixp400_eth: MAC address now set to %.2x:%.2x:%.2x:%.2x:%.2x:%.2x for port 0\n", ++ mac.sa_data[0], mac.sa_data[1], mac.sa_data[2], ++ mac.sa_data[3], mac.sa_data[4], mac.sa_data[5]); + } + + return NOTIFY_DONE; |