aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/linux/linux-gumstix-2.6.15/serial-ether-addr.patch
diff options
context:
space:
mode:
authorAsh Charles <ash@gumstix.com>2010-10-18 11:05:33 +0000
committerKhem Raj <raj.khem@gmail.com>2010-10-20 18:30:22 -0700
commitfb69129560edbf2fa298af0b74bcd0e6a838170e (patch)
treec8b93c5608dcde40147f82b30c58444a643b618c /recipes/linux/linux-gumstix-2.6.15/serial-ether-addr.patch
parentb72db8f97f6c060aeb2a33ffacefccd7a3df9889 (diff)
downloadopenembedded-fb69129560edbf2fa298af0b74bcd0e6a838170e.tar.gz
linux-gumstix-2.6.15 & gumstix_2.6.5-gnalm1: removed outdated recipes
* removed two old recipes in the linux kernel with pre-2.6.20 kernel as suggested by Marcin's RFC of 20 Oct 2010. Signed-off-by: Ash Charles <ash@gumstix.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes/linux/linux-gumstix-2.6.15/serial-ether-addr.patch')
-rw-r--r--recipes/linux/linux-gumstix-2.6.15/serial-ether-addr.patch46
1 files changed, 0 insertions, 46 deletions
diff --git a/recipes/linux/linux-gumstix-2.6.15/serial-ether-addr.patch b/recipes/linux/linux-gumstix-2.6.15/serial-ether-addr.patch
deleted file mode 100644
index 88442655e4..0000000000
--- a/recipes/linux/linux-gumstix-2.6.15/serial-ether-addr.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-Index: linux-2.6.15gum/drivers/usb/gadget/ether.c
-===================================================================
---- linux-2.6.15gum.orig/drivers/usb/gadget/ether.c
-+++ linux-2.6.15gum/drivers/usb/gadget/ether.c
-@@ -2153,6 +2153,29 @@ static u8 __init nibble (unsigned char c
- return 0;
- }
-
-+/**
-+ * gen_serial_ether_addr - Generate software assigned Ethernet address
-+ * based on the system_serial number
-+ * @addr: Pointer to a six-byte array containing the Ethernet address
-+ *
-+ * Generate an Ethernet address (MAC) that is not multicast
-+ * and has the local assigned bit set, keyed on the system_serial
-+ */
-+static inline void gen_serial_ether_addr(u8 *addr)
-+{
-+ static u8 ether_serial_digit = 1;
-+ addr [0] = system_serial_high >> 8;
-+ addr [1] = system_serial_high;
-+ addr [2] = system_serial_low >> 24;
-+ addr [3] = system_serial_low >> 16;
-+ addr [4] = system_serial_low >> 8;
-+ addr [5] = (system_serial_low & 0xc0) | /* top bits are from system serial */
-+ (2 << 4) | /* 2 bits identify interface type 1=ether, 2=usb, 3&4 undef */
-+ ((ether_serial_digit++) & 0x0f); /* 15 possible interfaces of each type */
-+ addr [0] &= 0xfe; /* clear multicast bit */
-+ addr [0] |= 0x02; /* set local assignment bit (IEEE802) */
-+}
-+
- static void __init get_ether_addr (const char *str, u8 *dev_addr)
- {
- if (str) {
-@@ -2170,7 +2193,10 @@ static void __init get_ether_addr (const
- if (is_valid_ether_addr (dev_addr))
- return;
- }
-- random_ether_addr(dev_addr);
-+ if(system_serial_high | system_serial_low)
-+ gen_serial_ether_addr(dev_addr);
-+ else
-+ random_ether_addr(dev_addr);
- }
-
- static int __init