[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <528BE727.6090703@ti.com>
Date: Wed, 20 Nov 2013 07:33:11 +0900
From: Milo Kim <milo.kim@...com>
To: Bryan Wu <cooloney@...il.com>
CC: Pali Rohár <pali.rohar@...il.com>,
Linux LED Subsystem <linux-leds@...r.kernel.org>,
lkml <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 00/10] leds: lp5521,5523: restore device attributes for
running LED patterns
Hi Bryan,
On 11/20/2013 04:20 AM, Bryan Wu wrote:
> On Tue, Nov 19, 2013 at 2:35 AM, Pali Rohár<pali.rohar@...il.com> wrote:
>> >Hello,
>> >
>> >now I tested that patch on top of 3.12-rc5 with this led example:
>> >
>> > # Clearing LED-state to be sure
>> > echo "disabled" > /sys/class/i2c-adapter/i2c-2/2-0032/engine1_mode
>> > echo "disabled" > /sys/class/i2c-adapter/i2c-2/2-0032/engine2_mode
>> > echo 0 > /sys/class/leds/lp5523:r/brightness
>> > echo 0 > /sys/class/leds/lp5523:g/brightness
>> > echo 0 > /sys/class/leds/lp5523:b/brightness
>> >
>> > # Setting yellow light pattern and running it
>> > echo "load" > /sys/class/i2c-adapter/i2c-2/2-0032/engine1_mode
>> > echo "000001100" > /sys/class/i2c-adapter/i2c-2/2-0032/engine1_leds
>> > echo "9d804000427f0d7f7f007f0042000000" > /sys/class/i2c-adapter/i2c-2/2-0032/engine1_load
>> > echo "load" > /sys/class/i2c-adapter/i2c-2/2-0032/engine2_mode
>> > echo "000000000" > /sys/class/i2c-adapter/i2c-2/2-0032/engine2_leds
>> > echo "9d800000" > /sys/class/i2c-adapter/i2c-2/2-0032/engine2_load
>> > echo "run" > /sys/class/i2c-adapter/i2c-2/2-0032/engine2_mode
>> > echo "run" > /sys/class/i2c-adapter/i2c-2/2-0032/engine1_mode
>> > echo 20 > /sys/class/leds/lp5523:r/led_current
>> > echo 2 > /sys/class/leds/lp5523:g/led_current
>> > echo 0 > /sys/class/leds/lp5523:b/led_current
>> >
>> >And now it working, led blinks :-) I also tested Maemo
>> >application for managing lp5523 led and now it working too.
>> >
> That's good. We can post this fixing patch to stable tree as well as
> latest upstream kernel.
>
> Milo, do you need to update your patch, if not I'm going to take it
> into my tree and for stable tree.
I'll send the patch-set again because LP5521 is also required to be fixed.
And _remove() also needs to be updated.
I can send it by tomorrow.
Thanks,
- Milo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists