rpms/kernel/F-10 linux-2.6-rt2x00-asus-leds.patch, NONE, 1.1 kernel.spec, 1.1225, 1.1226

John W. Linville linville at fedoraproject.org
Wed Jan 21 21:16:32 UTC 2009


Author: linville

Update of /cvs/pkgs/rpms/kernel/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv17353

Modified Files:
	kernel.spec 
Added Files:
	linux-2.6-rt2x00-asus-leds.patch 
Log Message:
rt2x00: back-port activity LED init patches

linux-2.6-rt2x00-asus-leds.patch:

--- NEW FILE linux-2.6-rt2x00-asus-leds.patch ---
Back-port of the following two patches from wireless-testing...

commit 5a2e156203294d61d7963877286b2763cbc02cf7
Author: Ivo van Doorn <ivdoorn at gmail.com>
Date:   Sat Jan 17 20:44:08 2009 +0100

    rt2x00: Add LED_MODE_ASUS support
    
    When the led mode is asus, the activity led mode must
    be registered otherwise the second LED will not be enabled.
    
    Signed-off-by: Ivo van Doorn <IvDoorn at gmail.com>
    Signed-off-by: John W. Linville <linville at tuxdriver.com>

commit a064405c724484f80eefdb6754e8f782144e1f91
Author: Andrew Price <andy at andrewprice.me.uk>
Date:   Sat Jan 10 19:38:05 2009 +0000

    rt2400,rt2500: init led_qual for LED_MODE_DEFAULT
    
    Add a check for LED_MODE_DEFAULT so that we use the link LED for rt2400
    and rt2500 devices.
    
    Signed-off-by: Andrew Price <andy at andrewprice.me.uk>
    Acked-by: Ivo van Doorn <IvDoorn at gmail.com>
    Signed-off-by: John W. Linville <linville at tuxdriver.com>

diff -up linux-2.6.28.noarch/drivers/net/wireless/rt2x00/rt2400pci.c.orig linux-2.6.28.noarch/drivers/net/wireless/rt2x00/rt2400pci.c
--- linux-2.6.28.noarch/drivers/net/wireless/rt2x00/rt2400pci.c.orig	2008-12-24 18:26:37.000000000 -0500
+++ linux-2.6.28.noarch/drivers/net/wireless/rt2x00/rt2400pci.c	2009-01-21 16:06:08.000000000 -0500
@@ -1378,7 +1378,9 @@ static int rt2400pci_init_eeprom(struct 
 	value = rt2x00_get_field16(eeprom, EEPROM_ANTENNA_LED_MODE);
 
 	rt2400pci_init_led(rt2x00dev, &rt2x00dev->led_radio, LED_TYPE_RADIO);
-	if (value == LED_MODE_TXRX_ACTIVITY)
+	if (value == LED_MODE_TXRX_ACTIVITY ||
+	    value == LED_MODE_DEFAULT ||
+	    value == LED_MODE_ASUS)
 		rt2400pci_init_led(rt2x00dev, &rt2x00dev->led_qual,
 				   LED_TYPE_ACTIVITY);
 #endif /* CONFIG_RT2X00_LIB_LEDS */
diff -up linux-2.6.28.noarch/drivers/net/wireless/rt2x00/rt2500usb.c.orig linux-2.6.28.noarch/drivers/net/wireless/rt2x00/rt2500usb.c
--- linux-2.6.28.noarch/drivers/net/wireless/rt2x00/rt2500usb.c.orig	2008-12-24 18:26:37.000000000 -0500
+++ linux-2.6.28.noarch/drivers/net/wireless/rt2x00/rt2500usb.c	2009-01-21 16:06:08.000000000 -0500
@@ -1477,7 +1477,9 @@ static int rt2500usb_init_eeprom(struct 
 	value = rt2x00_get_field16(eeprom, EEPROM_ANTENNA_LED_MODE);
 
 	rt2500usb_init_led(rt2x00dev, &rt2x00dev->led_radio, LED_TYPE_RADIO);
-	if (value == LED_MODE_TXRX_ACTIVITY)
+	if (value == LED_MODE_TXRX_ACTIVITY ||
+	    value == LED_MODE_DEFAULT ||
+	    value == LED_MODE_ASUS)
 		rt2500usb_init_led(rt2x00dev, &rt2x00dev->led_qual,
 				   LED_TYPE_ACTIVITY);
 #endif /* CONFIG_RT2X00_LIB_LEDS */
diff -up linux-2.6.28.noarch/drivers/net/wireless/rt2x00/rt2500pci.c.orig linux-2.6.28.noarch/drivers/net/wireless/rt2x00/rt2500pci.c
--- linux-2.6.28.noarch/drivers/net/wireless/rt2x00/rt2500pci.c.orig	2008-12-24 18:26:37.000000000 -0500
+++ linux-2.6.28.noarch/drivers/net/wireless/rt2x00/rt2500pci.c	2009-01-21 16:06:08.000000000 -0500
@@ -1537,7 +1537,9 @@ static int rt2500pci_init_eeprom(struct 
 	value = rt2x00_get_field16(eeprom, EEPROM_ANTENNA_LED_MODE);
 
 	rt2500pci_init_led(rt2x00dev, &rt2x00dev->led_radio, LED_TYPE_RADIO);
-	if (value == LED_MODE_TXRX_ACTIVITY)
+	if (value == LED_MODE_TXRX_ACTIVITY ||
+	    value == LED_MODE_DEFAULT ||
+	    value == LED_MODE_ASUS)
 		rt2500pci_init_led(rt2x00dev, &rt2x00dev->led_qual,
 				   LED_TYPE_ACTIVITY);
 #endif /* CONFIG_RT2X00_LIB_LEDS */


Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-10/kernel.spec,v
retrieving revision 1.1225
retrieving revision 1.1226
diff -u -r1.1225 -r1.1226
--- kernel.spec	20 Jan 2009 17:35:59 -0000	1.1225
+++ kernel.spec	21 Jan 2009 21:16:02 -0000	1.1226
@@ -630,6 +630,7 @@
 
 Patch680: iwlwifi-intel-bug-1822.patch
 Patch681: linux-2.6-rtl8187b-tx-status-feedback.patch
+Patch682: linux-2.6-rt2x00-asus-leds.patch
 
 Patch690: linux-2.6-at76.patch
 
@@ -1158,6 +1159,9 @@
 # rtl8187: feedback transmitted packets using tx close descriptor for 8187B
 ApplyPatch linux-2.6-rtl8187b-tx-status-feedback.patch
 
+# rt2x00: back-port activity LED init patches
+ApplyPatch linux-2.6-rt2x00-asus-leds.patch
+
 # Add misc wireless bits from upstream wireless tree
 ApplyPatch linux-2.6-at76.patch
 
@@ -1783,6 +1787,9 @@
 %kernel_variant_files -k vmlinux %{with_kdump} kdump
 
 %changelog
+* Wed Jan 21 2009 John W. Linville <linville at redhat.com> 2.6.28.1-19
+- rt2x00: back-port activity LED init patches
+
 * Tue Jan 20 2009 John W. Linville <linville at redhat.com> 2.6.28.1-18
 - rtl8187: feedback transmitted packets using tx close descriptor for 8187B
 




More information about the fedora-extras-commits mailing list