This patch ensures the "power" LED on the DG834G is set to ON during driver 
initialisation. Previously the LED would default to OFF during kernel boot and 
have to be turned back on again via an init script.

It relies on the fixed "leds-gpio" driver - patch supplied in previous email 
("[PATCH] Fix leds-gpio brightness for .active_low LEDs").

Signed-off-by: Nick Forbes <[EMAIL PROTECTED]>

-------- <<01-power-led-on.patch>> -----------

--- target/linux/ar7/files/arch/mips/ar7/platform.c.orig        2008-01-10 
10:52:19.000000000 +0000
+++ target/linux/ar7/files/arch/mips/ar7/platform.c     2008-01-10 
10:52:26.000000000 +0000
@@ -334,7 +334,7 @@
        { .name = "status", .gpio = 7, .active_low = 1, },
        { .name = "adsl", .gpio = 8, .active_low = 1, },
        { .name = "wifi", .gpio = 12, .active_low = 1, },
-       { .name = "power", .gpio = 14, .active_low = 1, },
+       { .name = "power", .gpio = 14, .active_low = 1, .default_trigger = 
"on", },
 };
 
 static struct gpio_led fb_sl_leds[] = {


_____________________________________________

Huntsworth is a world class communications group with public relations at its 
core, global in scale but rooted in domestic excellence.

We house some of the world's leading PR agencies and offer expertise across a 
number of sectors including: consumer, finance, public affairs and technology 
together with an integrated healthcare offer.

For more information visit our website www.huntsworth.com

Huntsworth plc is registered in England No 1729478. Registered office is 15-17 
Huntsworth Mews, London NW1 6DD

_____________________________________________________________________
Virus Checked for Huntsworth plc group of companies
_____________________________________________________________________

Attachment: 01-power-led-on.patch
Description: 01-power-led-on.patch

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to