1 |
Author: dsd |
2 |
Date: 2008-02-24 23:29:13 +0000 (Sun, 24 Feb 2008) |
3 |
New Revision: 1254 |
4 |
|
5 |
Added: |
6 |
genpatches-2.6/trunk/2.6.24/2405_sis190-eeprom-mac.patch |
7 |
Modified: |
8 |
genpatches-2.6/trunk/2.6.24/0000_README |
9 |
Log: |
10 |
Fix reading of MAC address in sis190 driver |
11 |
|
12 |
Modified: genpatches-2.6/trunk/2.6.24/0000_README |
13 |
=================================================================== |
14 |
--- genpatches-2.6/trunk/2.6.24/0000_README 2008-02-24 23:25:27 UTC (rev 1253) |
15 |
+++ genpatches-2.6/trunk/2.6.24/0000_README 2008-02-24 23:29:13 UTC (rev 1254) |
16 |
@@ -63,6 +63,10 @@ |
17 |
From: http://bugs.gentoo.org/209235 |
18 |
Desc: Fix e1000e bridging issue |
19 |
|
20 |
+Patch: 2405_sis190-eeprom-mac.patch |
21 |
+From: http://bugs.gentoo.org/207706 |
22 |
+Desc: Fix reading of MAC address in sis190 driver |
23 |
+ |
24 |
Patch: 1400_vmsplice-user-pointer.patch |
25 |
From: http://bugs.gentoo.org/209460 |
26 |
Desc: Fix another vmsplice() security issue |
27 |
|
28 |
Added: genpatches-2.6/trunk/2.6.24/2405_sis190-eeprom-mac.patch |
29 |
=================================================================== |
30 |
--- genpatches-2.6/trunk/2.6.24/2405_sis190-eeprom-mac.patch (rev 0) |
31 |
+++ genpatches-2.6/trunk/2.6.24/2405_sis190-eeprom-mac.patch 2008-02-24 23:29:13 UTC (rev 1254) |
32 |
@@ -0,0 +1,45 @@ |
33 |
+From: Francois Romieu <romieu@×××××××××.com> |
34 |
+Date: Mon, 18 Feb 2008 20:20:32 +0000 (+0100) |
35 |
+Subject: sis190: read the mac address from the eeprom first |
36 |
+X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Fjgarzik%2Fnetdev-2.6.git;a=commitdiff_plain;h=563e0ae06ff18f0b280f11cf706ba0172255ce52 |
37 |
+ |
38 |
+sis190: read the mac address from the eeprom first |
39 |
+ |
40 |
+Reading a serie of zero from the cmos sram area do not work |
41 |
+well with is_valid_ether_addr(). Let's read the mac address |
42 |
+from the eeprom first as it seems more reliable. |
43 |
+ |
44 |
+Fix for http://bugzilla.kernel.org/show_bug.cgi?id=9831 |
45 |
+ |
46 |
+Signed-off-by: Francois Romieu <romieu@×××××××××.com> |
47 |
+Signed-off-by: Jeff Garzik <jeff@××××××.org> |
48 |
+--- |
49 |
+ |
50 |
+diff --git a/drivers/net/sis190.c b/drivers/net/sis190.c |
51 |
+index 202fdf3..20745fd 100644 |
52 |
+--- a/drivers/net/sis190.c |
53 |
++++ b/drivers/net/sis190.c |
54 |
+@@ -1633,13 +1633,18 @@ static inline void sis190_init_rxfilter(struct net_device *dev) |
55 |
+ static int __devinit sis190_get_mac_addr(struct pci_dev *pdev, |
56 |
+ struct net_device *dev) |
57 |
+ { |
58 |
+- u8 from; |
59 |
++ int rc; |
60 |
++ |
61 |
++ rc = sis190_get_mac_addr_from_eeprom(pdev, dev); |
62 |
++ if (rc < 0) { |
63 |
++ u8 reg; |
64 |
+ |
65 |
+- pci_read_config_byte(pdev, 0x73, &from); |
66 |
++ pci_read_config_byte(pdev, 0x73, ®); |
67 |
+ |
68 |
+- return (from & 0x00000001) ? |
69 |
+- sis190_get_mac_addr_from_apc(pdev, dev) : |
70 |
+- sis190_get_mac_addr_from_eeprom(pdev, dev); |
71 |
++ if (reg & 0x00000001) |
72 |
++ rc = sis190_get_mac_addr_from_apc(pdev, dev); |
73 |
++ } |
74 |
++ return rc; |
75 |
+ } |
76 |
+ |
77 |
+ static void sis190_set_speed_auto(struct net_device *dev) |
78 |
|
79 |
-- |
80 |
gentoo-commits@l.g.o mailing list |