Re: [3.17][PATCH 2/2] MIPS: BCM47XX: Fix LEDs on WRT54GS V1.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/20/2014 07:56 AM, Rafał Miłecki wrote:
> Reported-by: Catalin Patulea <cat@xxxxxxxxxxxxxx>
> Signed-off-by: Rafał Miłecki <zajec5@xxxxxxxxx>

These two patches are looking good to me.

Acked-by: Hauke Mehrtens <hauke@xxxxxxxxxx>

> ---
>  arch/mips/bcm47xx/leds.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/arch/mips/bcm47xx/leds.c b/arch/mips/bcm47xx/leds.c
> index 909e00f..23324e3 100644
> --- a/arch/mips/bcm47xx/leds.c
> +++ b/arch/mips/bcm47xx/leds.c
> @@ -306,6 +306,14 @@ bcm47xx_leds_linksys_wrt54g3gv2[] __initconst = {
>  	BCM47XX_GPIO_LED(3, "blue", "3g", 0, LEDS_GPIO_DEFSTATE_OFF),
>  };
>  
> +/* Verified on: WRT54GS V1.0 */
> +static const struct gpio_led
> +bcm47xx_leds_linksys_wrt54g_type_0101[] __initconst = {
> +	BCM47XX_GPIO_LED(0, "green", "wlan", 0, LEDS_GPIO_DEFSTATE_OFF),
> +	BCM47XX_GPIO_LED(1, "green", "power", 0, LEDS_GPIO_DEFSTATE_ON),
> +	BCM47XX_GPIO_LED(7, "green", "dmz", 1, LEDS_GPIO_DEFSTATE_OFF),
> +};
> +
>  static const struct gpio_led
>  bcm47xx_leds_linksys_wrt610nv1[] __initconst = {
>  	BCM47XX_GPIO_LED(0, "unk", "usb",  1, LEDS_GPIO_DEFSTATE_OFF),
> @@ -542,6 +550,8 @@ void __init bcm47xx_leds_register(void)
>  		bcm47xx_set_pdata(bcm47xx_leds_linksys_wrt54g3gv2);
>  		break;
>  	case BCM47XX_BOARD_LINKSYS_WRT54G_TYPE_0101:
> +		bcm47xx_set_pdata(bcm47xx_leds_linksys_wrt54g_type_0101);
> +		break;
>  	case BCM47XX_BOARD_LINKSYS_WRT54G_TYPE_0467:
>  	case BCM47XX_BOARD_LINKSYS_WRT54G_TYPE_0708:
>  		bcm47xx_set_pdata(bcm47xx_leds_linksys_wrt54g_generic);
> 



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux