Re: Broken locking in leds-lp5523.c

2014-01-07 Thread Bryan Wu
On Tue, Jan 7, 2014 at 12:42 PM, Pavel Machek wrote: > Hi! > > There's some locking weirdness, and few missing comments in lp5523 > driver. > > Now, this is untested patch from my reverse-engineering. I hope I > understood things right... > > In particular, there's unbalanced unlock in >

Re: Broken locking in leds-lp5523.c

2014-01-07 Thread Bryan Wu
On Tue, Jan 7, 2014 at 12:42 PM, Pavel Machek wrote: > Hi! > > There's some locking weirdness, and few missing comments in lp5523 > driver. > > Now, this is untested patch from my reverse-engineering. I hope I > understood things right... > > In particular, there's unbalanced unlock in >

Re: [PATCH V2] leds: s3c24xx: Fix build failure

2014-01-07 Thread Bryan Wu
On Tue, Jan 7, 2014 at 9:41 AM, Linus Walleij wrote: > On Fri, Jan 3, 2014 at 7:19 AM, Bryan Wu wrote: >> On Thu, Jan 2, 2014 at 9:25 PM, Tushar Behera >> wrote: >>> Commit c67d0f29262b ("ARM: s3c24xx: get rid of custom ") >>> removed the usage

Re: [PATCH V2] leds: s3c24xx: Fix build failure

2014-01-07 Thread Bryan Wu
On Tue, Jan 7, 2014 at 9:41 AM, Linus Walleij linus.wall...@linaro.org wrote: On Fri, Jan 3, 2014 at 7:19 AM, Bryan Wu coolo...@gmail.com wrote: On Thu, Jan 2, 2014 at 9:25 PM, Tushar Behera tushar.beh...@linaro.org wrote: Commit c67d0f29262b (ARM: s3c24xx: get rid of custom mach/gpio.h

Re: Broken locking in leds-lp5523.c

2014-01-07 Thread Bryan Wu
On Tue, Jan 7, 2014 at 12:42 PM, Pavel Machek pa...@ucw.cz wrote: Hi! There's some locking weirdness, and few missing comments in lp5523 driver. Now, this is untested patch from my reverse-engineering. I hope I understood things right... In particular, there's unbalanced unlock in

Re: Broken locking in leds-lp5523.c

2014-01-07 Thread Bryan Wu
On Tue, Jan 7, 2014 at 12:42 PM, Pavel Machek pa...@ucw.cz wrote: Hi! There's some locking weirdness, and few missing comments in lp5523 driver. Now, this is untested patch from my reverse-engineering. I hope I understood things right... In particular, there's unbalanced unlock in

Re: [PATCH V2] leds: s3c24xx: Fix build failure

2014-01-02 Thread Bryan Wu
On Thu, Jan 2, 2014 at 9:25 PM, Tushar Behera wrote: > Commit c67d0f29262b ("ARM: s3c24xx: get rid of custom ") > removed the usage of mach/gpio.h file, but we need to include > plat/gpio-cfg.h to avoid following build error. > > Fixes following build error. > drivers/leds/leds-s3c24xx.c: In

Re: how to represent sequence of brightnesses in /sys (was Re: [PATCH] Add the LED burst trigger)

2014-01-02 Thread Bryan Wu
On Sun, Dec 29, 2013 at 3:21 AM, Pavel Machek wrote: > Hi! > >> > Idea would be "sequence of brigtnesses" (one file) and "delay between >> > changes" (second file). >> >> Ick. >> >> > Reason to do it in kernel is that some machines actually have >> > "coprocessor" on i2c that can do it while main

Re: [PATCH] Add LED pattern trigger

2014-01-02 Thread Bryan Wu
On Wed, Jan 1, 2014 at 3:51 PM, David Lang wrote: > On Wed, 1 Jan 2014, One Thousand Gnomes wrote: > >>> whatever mechanism is created for toggling LEDs should be able to toggle >>> arbitrary GPIO pins, and there is a problem with the speed of the >>> standard >>> access mechanisms in /sysfs. see

Re: [PATCH] leds: s3c24xx: Fix build failure

2014-01-02 Thread Bryan Wu
On Mon, Dec 30, 2013 at 1:09 AM, Tushar Behera wrote: > Fixes following build error. > drivers/leds/leds-s3c24xx.c: In function ‘s3c24xx_led_probe’: > drivers/leds/leds-s3c24xx.c:100:2: error: implicit declaration of > function ‘s3c_gpio_setpull’ [-Werror=implicit-function-declaration] > I don't

Re: [PATCH] leds: s3c24xx: Fix build failure

2014-01-02 Thread Bryan Wu
On Mon, Dec 30, 2013 at 1:09 AM, Tushar Behera tushar.beh...@linaro.org wrote: Fixes following build error. drivers/leds/leds-s3c24xx.c: In function ‘s3c24xx_led_probe’: drivers/leds/leds-s3c24xx.c:100:2: error: implicit declaration of function ‘s3c_gpio_setpull’

Re: [PATCH] Add LED pattern trigger

2014-01-02 Thread Bryan Wu
On Wed, Jan 1, 2014 at 3:51 PM, David Lang da...@lang.hm wrote: On Wed, 1 Jan 2014, One Thousand Gnomes wrote: whatever mechanism is created for toggling LEDs should be able to toggle arbitrary GPIO pins, and there is a problem with the speed of the standard access mechanisms in /sysfs. see

Re: how to represent sequence of brightnesses in /sys (was Re: [PATCH] Add the LED burst trigger)

2014-01-02 Thread Bryan Wu
On Sun, Dec 29, 2013 at 3:21 AM, Pavel Machek pa...@ucw.cz wrote: Hi! Idea would be sequence of brigtnesses (one file) and delay between changes (second file). Ick. Reason to do it in kernel is that some machines actually have coprocessor on i2c that can do it while main CPU is

Re: [PATCH V2] leds: s3c24xx: Fix build failure

2014-01-02 Thread Bryan Wu
On Thu, Jan 2, 2014 at 9:25 PM, Tushar Behera tushar.beh...@linaro.org wrote: Commit c67d0f29262b (ARM: s3c24xx: get rid of custom mach/gpio.h) removed the usage of mach/gpio.h file, but we need to include plat/gpio-cfg.h to avoid following build error. Fixes following build error.

Re: [PATCH] leds: pwm: Remove a warning on non-DT platforms

2013-12-12 Thread Bryan Wu
On Wed, Dec 11, 2013 at 4:11 PM, Olof Johansson wrote: > This removes a warning on non-DT-enabled platforms: > > drivers/leds/leds-pwm.c: In function 'led_pwm_create_of': > drivers/leds/leds-pwm.c:88:22: warning: unused variable 'node' > > Really caused by the local variable that is assigned to

Re: [PATCH] leds: pwm: Remove a warning on non-DT platforms

2013-12-12 Thread Bryan Wu
On Wed, Dec 11, 2013 at 4:11 PM, Olof Johansson o...@lixom.net wrote: This removes a warning on non-DT-enabled platforms: drivers/leds/leds-pwm.c: In function 'led_pwm_create_of': drivers/leds/leds-pwm.c:88:22: warning: unused variable 'node' Really caused by the local variable that is

Re: [PATCH] leds: leds-pwm: fix duty time overflow.

2013-12-11 Thread Bryan Wu
On Wed, Dec 11, 2013 at 1:19 AM, Xiubo Li wrote: > Overflow maybe occurs when calculates the duty time. For instance, > the period time is 99000ns, and the max_brightness is 127, when > setting the brightness to 12, the duty value will be 25906026ns, but > it should be 93543307ns. This looks

Re: [PATCH] leds: leds-pwm: fix duty time overflow.

2013-12-11 Thread Bryan Wu
On Wed, Dec 11, 2013 at 1:19 AM, Xiubo Li li.xi...@freescale.com wrote: Overflow maybe occurs when calculates the duty time. For instance, the period time is 99000ns, and the max_brightness is 127, when setting the brightness to 12, the duty value will be 25906026ns, but it should be

[GIT PULL] leds fixes for 3.13-rc2

2013-12-02 Thread Bryan Wu
Hi Linus, Please consider the following bug fix since commit dc1ccc48159d63eca5089e507c82c7d22ef60839: Linux 3.13-rc2 (2013-11-29 12:57:14 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds.git leds-fixes-for-3.13 for you to

Re: [PATCH] leds: pwm: Fix for deferred probe in DT booted mode

2013-12-02 Thread Bryan Wu
On Thu, Nov 28, 2013 at 1:06 AM, Peter Ujfalusi wrote: > We need to make sure that the error code from devm_of_pwm_get() is the one > the module returns in case of failure. > Restructure the code to make this possible for DT booted case. > With this patch the driver can ask for deferred probing

Re: [PATCH 3/3] leds: lp5523: Support LED MUX configuration on running a pattern

2013-12-02 Thread Bryan Wu
On Wed, Nov 20, 2013 at 10:14 PM, Milo Kim wrote: > There are two ways to run a pattern in LP5523. > One is using legacy sysfs files such as 'enginex_mode','enginex_load' and > 'enginex_leds'. ('x' is from 1 to 3). > Among them, 'enginex_leds' are used for selecting specific LED channel MUX. >

Re: [PATCH 2/3] leds: lp5521/5523: Remove duplicate mutex

2013-12-02 Thread Bryan Wu
On Wed, Nov 20, 2013 at 10:14 PM, Milo Kim wrote: > It can be a problem when a pattern is loaded via the firmware interface. > LP55xx common driver has already locked the mutex in > 'lp55xx_firmware_loaded()'. > So it should be deleted. > Looks like lp5521_update_program_memory() will be called

Re: [PATCH 1/3] leds: lp5521/5523: Fix multiple engine usage bug

2013-12-02 Thread Bryan Wu
On Wed, Nov 20, 2013 at 10:13 PM, Milo Kim wrote: > Whenever the engine is loaded by the user-application, the operation mode is > reset first. But it has a problem in case of multiple engine used because > previous engine settings are cleared. > The driver should update not whole 8bits but each

Re: [PATCH 1/3] leds: lp5521/5523: Fix multiple engine usage bug

2013-12-02 Thread Bryan Wu
On Wed, Nov 20, 2013 at 10:13 PM, Milo Kim milo@ti.com wrote: Whenever the engine is loaded by the user-application, the operation mode is reset first. But it has a problem in case of multiple engine used because previous engine settings are cleared. The driver should update not whole

Re: [PATCH 2/3] leds: lp5521/5523: Remove duplicate mutex

2013-12-02 Thread Bryan Wu
On Wed, Nov 20, 2013 at 10:14 PM, Milo Kim milo@ti.com wrote: It can be a problem when a pattern is loaded via the firmware interface. LP55xx common driver has already locked the mutex in 'lp55xx_firmware_loaded()'. So it should be deleted. Looks like lp5521_update_program_memory() will

Re: [PATCH 3/3] leds: lp5523: Support LED MUX configuration on running a pattern

2013-12-02 Thread Bryan Wu
On Wed, Nov 20, 2013 at 10:14 PM, Milo Kim milo@ti.com wrote: There are two ways to run a pattern in LP5523. One is using legacy sysfs files such as 'enginex_mode','enginex_load' and 'enginex_leds'. ('x' is from 1 to 3). Among them, 'enginex_leds' are used for selecting specific LED

Re: [PATCH] leds: pwm: Fix for deferred probe in DT booted mode

2013-12-02 Thread Bryan Wu
On Thu, Nov 28, 2013 at 1:06 AM, Peter Ujfalusi peter.ujfal...@ti.com wrote: We need to make sure that the error code from devm_of_pwm_get() is the one the module returns in case of failure. Restructure the code to make this possible for DT booted case. With this patch the driver can ask for

[GIT PULL] leds fixes for 3.13-rc2

2013-12-02 Thread Bryan Wu
Hi Linus, Please consider the following bug fix since commit dc1ccc48159d63eca5089e507c82c7d22ef60839: Linux 3.13-rc2 (2013-11-29 12:57:14 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds.git leds-fixes-for-3.13 for you to

Re: [PATCH 00/10] leds: lp5521,5523: restore device attributes for running LED patterns

2013-11-19 Thread Bryan Wu
e it into my tree and for stable tree. Thanks, -Bryan > But new interface via request_firmware still not working. > Directory /sys/class/firmware/lp5523/data not exists. > > I think that there can be race condition with udev which is > responsible for firmware loading... Anyway main proble

Re: [PATCH 00/10] leds: lp5521,5523: restore device attributes for running LED patterns

2013-11-19 Thread Bryan Wu
problem solved, old interface is working again and old applications too. On Tuesday 19 November 2013 02:13:49 Bryan Wu wrote: Pali, Could you please test Milo's patch? Thanks, -Bryan On Thu, Nov 7, 2013 at 9:15 PM, Milo Kim milo@ti.com wrote: Hi Pali, Sorry for the late reply

Re: PATCH] LEDS: tca6507 - fix up some comments.

2013-11-11 Thread Bryan Wu
On Thu, Nov 7, 2013 at 7:24 PM, Joe Perches wrote: > On Fri, 2013-11-08 at 14:20 +1100, NeilBrown wrote: >> In particular fix the capitalisation of GPIO and LED and >> correct TCA6507_MAKE_CPIO, but also rewrite the comment about >> platform-data to include reference to devicetree. > > trivia: >

[GIT PULL] leds: updates for 3.13

2013-11-11 Thread Bryan Wu
://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds.git for-next for you to fetch changes up to 30dae2f98612d7c8cd855861b9de205ebd9ef4fa: leds: lp55xx: handle enable pin in driver (2013-10-25 10:13:25 -0700) Bryan Wu (1

[GIT PULL] leds: updates for 3.13

2013-11-11 Thread Bryan Wu
://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds.git for-next for you to fetch changes up to 30dae2f98612d7c8cd855861b9de205ebd9ef4fa: leds: lp55xx: handle enable pin in driver (2013-10-25 10:13:25 -0700) Bryan Wu (1

Re: PATCH] LEDS: tca6507 - fix up some comments.

2013-11-11 Thread Bryan Wu
On Thu, Nov 7, 2013 at 7:24 PM, Joe Perches j...@perches.com wrote: On Fri, 2013-11-08 at 14:20 +1100, NeilBrown wrote: In particular fix the capitalisation of GPIO and LED and correct TCA6507_MAKE_CPIO, but also rewrite the comment about platform-data to include reference to devicetree.

Re: [PATCH 2/2] LEDS: tca6502: add device-tree support for GPIO configuration.

2013-11-07 Thread Bryan Wu
On Thu, Nov 7, 2013 at 3:39 PM, Bryan Wu wrote: > On Thu, Oct 31, 2013 at 7:41 PM, NeilBrown wrote: >> > > [PATCH 2/2] LEDS: tca6502: add device-tree support for GPIO configuration. > > I think it should be tca6507, right? Typo? > I fixed this typo and queue up this

Re: [PATCH 2/2] LEDS: tca6502: add device-tree support for GPIO configuration.

2013-11-07 Thread Bryan Wu
On Thu, Oct 31, 2013 at 7:41 PM, NeilBrown wrote: > [PATCH 2/2] LEDS: tca6502: add device-tree support for GPIO configuration. I think it should be tca6507, right? Typo? For other parts of this patch, I'm OK for them. And just a quick scan of the leds-tca6507, I found bunch of typos in the

Re: [PATCH 1/2] LEDS: tca6507 - fix bugs in parsing of device-tree configuration.

2013-11-07 Thread Bryan Wu
On Thu, Oct 31, 2013 at 7:33 PM, NeilBrown wrote: > > > 1/ The led_info array must be allocated to allow the full number > of LEDs even if not all are present. The array maybe be sparsely > filled but it is indexed by device address so we must at least > allocate as many slots as the

Re: [PATCH 1/2] LEDS: tca6507 - fix bugs in parsing of device-tree configuration.

2013-11-07 Thread Bryan Wu
On Thu, Oct 31, 2013 at 7:33 PM, NeilBrown ne...@suse.de wrote: 1/ The led_info array must be allocated to allow the full number of LEDs even if not all are present. The array maybe be sparsely filled but it is indexed by device address so we must at least allocate as many slots as

Re: [PATCH 2/2] LEDS: tca6502: add device-tree support for GPIO configuration.

2013-11-07 Thread Bryan Wu
On Thu, Oct 31, 2013 at 7:41 PM, NeilBrown ne...@suse.de wrote: [PATCH 2/2] LEDS: tca6502: add device-tree support for GPIO configuration. I think it should be tca6507, right? Typo? For other parts of this patch, I'm OK for them. And just a quick scan of the leds-tca6507, I found bunch of

Re: [PATCH 2/2] LEDS: tca6502: add device-tree support for GPIO configuration.

2013-11-07 Thread Bryan Wu
On Thu, Nov 7, 2013 at 3:39 PM, Bryan Wu coolo...@gmail.com wrote: On Thu, Oct 31, 2013 at 7:41 PM, NeilBrown ne...@suse.de wrote: [PATCH 2/2] LEDS: tca6502: add device-tree support for GPIO configuration. I think it should be tca6507, right? Typo? I fixed this typo and queue up this patch

Re: [PATCH 00/10] leds: lp5521,5523: restore device attributes for running LED patterns

2013-10-29 Thread Bryan Wu
On Fri, Oct 25, 2013 at 11:21 AM, Pali Rohár wrote: > On Friday 25 October 2013 19:10:07 Bryan Wu wrote: >> On Fri, Oct 25, 2013 at 9:38 AM, Pali Rohár > wrote: >> > On Tuesday 13 August 2013 23:04:14 Bryan Wu wrote: >> >> On Thu, Aug 8, 2013 at 12:59 AM, Milo

Re: [PATCH 00/10] leds: lp5521,5523: restore device attributes for running LED patterns

2013-10-29 Thread Bryan Wu
On Fri, Oct 25, 2013 at 11:21 AM, Pali Rohár pali.ro...@gmail.com wrote: On Friday 25 October 2013 19:10:07 Bryan Wu wrote: On Fri, Oct 25, 2013 at 9:38 AM, Pali Rohár pali.ro...@gmail.com wrote: On Tuesday 13 August 2013 23:04:14 Bryan Wu wrote: On Thu, Aug 8, 2013 at 12:59 AM, Milo Kim

Re: [PATCH 00/10] leds: lp5521,5523: restore device attributes for running LED patterns

2013-10-25 Thread Bryan Wu
On Fri, Oct 25, 2013 at 9:38 AM, Pali Rohár wrote: > On Tuesday 13 August 2013 23:04:14 Bryan Wu wrote: >> On Thu, Aug 8, 2013 at 12:59 AM, Milo Kim wrote: >> > This patch-set resolves the application conflict by >> > restoring sysfs files. >> > >>

Re: [PATCH 00/10] leds: lp5521,5523: restore device attributes for running LED patterns

2013-10-25 Thread Bryan Wu
On Fri, Oct 25, 2013 at 9:38 AM, Pali Rohár pali.ro...@gmail.com wrote: On Tuesday 13 August 2013 23:04:14 Bryan Wu wrote: On Thu, Aug 8, 2013 at 12:59 AM, Milo Kim woogyom@gmail.com wrote: This patch-set resolves the application conflict by restoring sysfs files. For LP5521

Re: [PATCH 2/2] DTS: ARM: OMAP3-N900: Add LP5523 support

2013-10-22 Thread Bryan Wu
On Tue, Oct 22, 2013 at 10:38 AM, Tony Lindgren wrote: > * Sebastian Reichel [131022 06:02]: >> Add support for LP5523 device. > > This patch should be queued separately by Benoit. > OK, got it. I will merge Patch 1. -Bryan -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH 1/2] leds: lp55xx: handle enable pin in driver

2013-10-22 Thread Bryan Wu
On Tue, Oct 22, 2013 at 10:37 AM, Tony Lindgren wrote: > * Bryan Wu [131022 10:23]: >> On Tue, Oct 22, 2013 at 10:06 AM, Tony Lindgren wrote: >> > * Sebastian Reichel [131022 06:02]: >> >> This patch moves the handling of the chip's enable pin from the board >&

Re: [PATCH 1/2] leds: lp55xx: handle enable pin in driver

2013-10-22 Thread Bryan Wu
ny Lindgren I'm OK for LED parts, will this patch go through omap tree? If so, please add my ack. Acked-by: Bryan Wu Thanks, -Bryan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://

Re: [PATCH 1/2] leds: lp55xx: handle enable pin in driver

2013-10-22 Thread Bryan Wu
parts, will this patch go through omap tree? If so, please add my ack. Acked-by: Bryan Wu coolo...@gmail.com Thanks, -Bryan -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

Re: [PATCH 1/2] leds: lp55xx: handle enable pin in driver

2013-10-22 Thread Bryan Wu
On Tue, Oct 22, 2013 at 10:37 AM, Tony Lindgren t...@atomide.com wrote: * Bryan Wu coolo...@gmail.com [131022 10:23]: On Tue, Oct 22, 2013 at 10:06 AM, Tony Lindgren t...@atomide.com wrote: * Sebastian Reichel s...@debian.org [131022 06:02]: This patch moves the handling of the chip's enable

Re: [PATCH 2/2] DTS: ARM: OMAP3-N900: Add LP5523 support

2013-10-22 Thread Bryan Wu
On Tue, Oct 22, 2013 at 10:38 AM, Tony Lindgren t...@atomide.com wrote: * Sebastian Reichel s...@debian.org [131022 06:02]: Add support for LP5523 device. This patch should be queued separately by Benoit. OK, got it. I will merge Patch 1. -Bryan -- To unsubscribe from this list: send the

Re: [PATCH v3] leds: Added driver for the NXP PCA9685 I2C chip

2013-10-17 Thread Bryan Wu
On Wed, Oct 16, 2013 at 6:09 PM, Maximilian Güntner wrote: > The NXP PCA9685 supports 16 channels/leds using a 12-bit PWM (4095 > levels of brightness) > This driver supports configuration using platform_data. > > Signed-off-by: Maximilian Güntner > --- > v3: >fixed warnings when running

Re: [PATCH v3] leds: Added driver for the NXP PCA9685 I2C chip

2013-10-17 Thread Bryan Wu
On Wed, Oct 16, 2013 at 6:09 PM, Maximilian Güntner maximilian.guent...@gmail.com wrote: The NXP PCA9685 supports 16 channels/leds using a 12-bit PWM (4095 levels of brightness) This driver supports configuration using platform_data. Signed-off-by: Maximilian Güntner

Re: [PATCH v2] leds: Added driver for the NXP PCA9685 I2C chip

2013-10-15 Thread Bryan Wu
On Mon, Oct 14, 2013 at 6:19 PM, Maximilian Güntner wrote: > The NXP PCA9685 supports 16 channels/leds using a 12-bit PWM (4095 > levels of brightness) > This driver supports configuration using platform_data. > > Signed-off-by: Maximilian Güntner > --- > > v2: >addresses Bryan Wu's

Re: [PATCH v2] leds: Added driver for the NXP PCA9685 I2C chip

2013-10-15 Thread Bryan Wu
On Mon, Oct 14, 2013 at 6:19 PM, Maximilian Güntner maximilian.guent...@gmail.com wrote: The NXP PCA9685 supports 16 channels/leds using a 12-bit PWM (4095 levels of brightness) This driver supports configuration using platform_data. Signed-off-by: Maximilian Güntner

Re: [PATCH] leds: Added driver for the NXP PCA9685 I2C chip

2013-10-14 Thread Bryan Wu
On Mon, Oct 14, 2013 at 10:31 AM, Maximilian Güntner wrote: > The NXP PCA9685 supports 16 channels/leds using a 12-bit PWM (4095 > levels of brightness) > This driver supports configuration using platform_data. > I'm OK for this patch basically, just a little picky coding style issue as below.

Re: [PATCH] leds: Added driver for the NXP PCA9685 I2C chip

2013-10-14 Thread Bryan Wu
On Mon, Oct 14, 2013 at 10:31 AM, Maximilian Güntner maximilian.guent...@gmail.com wrote: The NXP PCA9685 supports 16 channels/leds using a 12-bit PWM (4095 levels of brightness) This driver supports configuration using platform_data. I'm OK for this patch basically, just a little picky

Re: [PATCH][resend] leds-gpio: of: led should not be created if its status is disabled

2013-10-02 Thread Bryan Wu
On Thu, Sep 26, 2013 at 4:27 AM, Josh Wu wrote: > now the leds-gpio driver will create every child led node without > checking the status is disabled or not. > > for example, if we have a led node like d3, and its status is disabled: > leds { > d3 { >

Re: [PATCH][resend] leds-gpio: of: led should not be created if its status is disabled

2013-10-02 Thread Bryan Wu
On Thu, Sep 26, 2013 at 4:27 AM, Josh Wu josh...@atmel.com wrote: now the leds-gpio driver will create every child led node without checking the status is disabled or not. for example, if we have a led node like d3, and its status is disabled: leds { d3 {

Re: [PATCH] leds-gpio: of: led should not be created if its status is disabled

2013-09-24 Thread Bryan Wu
On Tue, Sep 24, 2013 at 1:04 AM, Josh Wu wrote: > now the leds-gpio driver will create every child led node without > checking the status is disabled or not. > > for example, if we have a led node like d3, and its status is disabled: > leds { > d3 { >

Re: [PATCH] leds-gpio: of: led should not be created if its status is disabled

2013-09-24 Thread Bryan Wu
On Tue, Sep 24, 2013 at 1:04 AM, Josh Wu josh...@atmel.com wrote: now the leds-gpio driver will create every child led node without checking the status is disabled or not. for example, if we have a led node like d3, and its status is disabled: leds { d3 {

Re: [gcv v3 18/35] drivers/leds: Replace __get_cpu_var uses

2013-09-03 Thread Bryan Wu
linux/drivers/leds/trigger/ledtrig-cpu.c > === > --- linux.orig/drivers/leds/trigger/ledtrig-cpu.c 2013-08-27 > 14:46:42.043176071 -0500 > +++ linux/drivers/leds/trigger/ledtrig-cpu.c2013-08-27 14:46:42.035176153 > -0

Re: [gcv v3 18/35] drivers/leds: Replace __get_cpu_var uses

2013-09-03 Thread Bryan Wu
= __get_cpu_var(cpu_trig); + struct led_trigger_cpu *trig = this_cpu_ptr(cpu_trig); Sure, please go ahead with my ack. Acked-by: Bryan Wu coolo...@gmail.com /* Locate the correct CPU LED */ switch (ledevt) { -- To unsubscribe from this list: send the line unsubscribe linux-kernel

Re: [PATCH] leds: trigger: ledtrig-backlight: Fix invalid memory access in fb_event notification callback

2013-08-26 Thread Bryan Wu
On Tue, Aug 13, 2013 at 4:17 AM, Manfred Schlaegl wrote: > fb_notifier_callback is called on any event fired by fb_notifier_call_chain. > Events may, or may not contain some data (fb_event.data). > In case of FB_EVENT_BLANK fb_event.data contains a pointer to an integer > holding the blank

Re: [PATCH] leds: trigger: ledtrig-backlight: Fix invalid memory access in fb_event notification callback

2013-08-26 Thread Bryan Wu
On Tue, Aug 13, 2013 at 4:17 AM, Manfred Schlaegl manfred.schla...@gmx.at wrote: fb_notifier_callback is called on any event fired by fb_notifier_call_chain. Events may, or may not contain some data (fb_event.data). In case of FB_EVENT_BLANK fb_event.data contains a pointer to an integer

Re: [PATCH v4 0/5] PCA9633: Add support to PCA9634 and fix some problems

2013-08-16 Thread Bryan Wu
ledout register with a mutex to support updates of more than leds at > the same time > Fix device tree parsing > > v5: Contains feedback from Bryan Wu > Bryan: Fix device tree bindings documentation > Thanks, I've already merged this new patchset into my tree. -Bryan > v4: Rebase to l

Re: [PATCH v4 0/5] PCA9633: Add support to PCA9634 and fix some problems

2013-08-16 Thread Bryan Wu
register with a mutex to support updates of more than leds at the same time Fix device tree parsing v5: Contains feedback from Bryan Wu Bryan: Fix device tree bindings documentation Thanks, I've already merged this new patchset into my tree. -Bryan v4: Rebase to latest leds-next and new

Re: [PATCH v4 1/5] leds-pca9633: Add support for PCA9634

2013-08-14 Thread Bryan Wu
On Wed, Aug 14, 2013 at 12:14 AM, Ricardo Ribalda Delgado wrote: > Add support for PCA9634 chip, which belongs to the same family as the > 9633 but with support for 8 outputs instead of 4. > > Signed-off-by: Ricardo Ribalda Delgado > --- > drivers/leds/Kconfig|7 +-- >

Re: [PATCH v4 1/5] leds-pca9633: Add support for PCA9634

2013-08-14 Thread Bryan Wu
On Wed, Aug 14, 2013 at 12:14 AM, Ricardo Ribalda Delgado ricardo.riba...@gmail.com wrote: Add support for PCA9634 chip, which belongs to the same family as the 9633 but with support for 8 outputs instead of 4. Signed-off-by: Ricardo Ribalda Delgado ricardo.riba...@gmail.com ---

Re: [PATCH 00/10] leds: lp5521,5523: restore device attributes for running LED patterns

2013-08-13 Thread Bryan Wu
On Thu, Aug 8, 2013 at 12:59 AM, Milo Kim wrote: > This patch-set resolves the application conflict by restoring sysfs files. > > For LP5521 > engine1/2/3_mode > engine1/2/3_load > > For LP5523 > engine1/2/3_mode > engine1/2/3_load > engine1/2/3_leds > > Those attributes are accessed

Re: [PATCH 10/10] leds: lp5562: use LP55xx common macros for device attributes

2013-08-13 Thread Bryan Wu
On Thu, Aug 8, 2013 at 12:59 AM, Milo Kim wrote: > Good for merge. -Bryan > Signed-off-by: Milo Kim > --- > drivers/leds/leds-lp5562.c |4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/leds/leds-lp5562.c b/drivers/leds/leds-lp5562.c > index

Re: [PATCH 08/10] leds: lp5523: remove unnecessary writing commands

2013-08-13 Thread Bryan Wu
On Thu, Aug 8, 2013 at 12:59 AM, Milo Kim wrote: > This patch reduces the number of programming commands. > > (Count of sending commands) > Old code: 32 + program size (32 counts for clearing program memory) > New code: 32 > > Pattern buffer is initialized to 0 in this function. > Just update new

Re: [PATCH 09/10] Documentation: leds-lp5521,lp5523: update device attribute information

2013-08-13 Thread Bryan Wu
On Thu, Aug 8, 2013 at 12:59 AM, Milo Kim wrote: > Now, all legacy application interfaces are restored. > Each driver documentation is updated. > Good to merge, thanks, -Bryan > Cc: Pali Rohár > Signed-off-by: Milo Kim > --- > Documentation/leds/leds-lp5521.txt | 20 +++- >

Re: [PATCH 07/10] leds: lp5523: restore legacy device attributes

2013-08-13 Thread Bryan Wu
On Thu, Aug 8, 2013 at 12:59 AM, Milo Kim wrote: > git commit db6eaf8388a413a5ee1b4547ce78506b9c6456b0 > (leds-lp5523: use generic firmware interface) causes an application conflict. > This interface should be maintained for compatibility. > > Restored device attributes are 'engineN_mode',

Re: [PATCH 06/10] leds: lp5523: LED MUX configuration on initializing

2013-08-13 Thread Bryan Wu
On Thu, Aug 8, 2013 at 12:59 AM, Milo Kim wrote: > LED MUX start and stop address should be updated in the program memory > on LP5523 initialization. > LED pattern doesn't work without additional MUX address configuration. > This handling is done by new function, lp5523_init_program_engine(). >

Re: [PATCH 05/10] leds: lp5523: make separate API for loading engine

2013-08-13 Thread Bryan Wu
On Thu, Aug 8, 2013 at 12:59 AM, Milo Kim wrote: > lp5523_load_engine() > It is called whenever the operation mode is changed to 'load'. > It is used for simple operation mode change. > It will be used when engine mode and LED selection is updated in later > patch. > >

Re: [PATCH 04/10] leds: lp5521: remove unnecessary writing commands

2013-08-13 Thread Bryan Wu
On Thu, Aug 8, 2013 at 12:59 AM, Milo Kim wrote: > This patch reduces the number of programming commands. > > (Count of sending commands) > Old code: 32 + program size (32 counts for clearing program memory) > New code: 32 > > Pattern buffer is initialized to 0 in this function. > Just update new

Re: [PATCH 03/10] leds: lp5521: restore legacy device attributes

2013-08-13 Thread Bryan Wu
On Thu, Aug 8, 2013 at 12:59 AM, Milo Kim wrote: > git commit 9ce7cb170f97f83a78dc948bf7d25690f15e1328 > may cause an application confict, engineN_mode and engineN_load. > This interface should be maintained for compatibility. > > Restored device attributes are 'engineN_mode' and 'engineN_load'.

Re: [PATCH 02/10] leds: lp55xx: add common macros for device attributes

2013-08-13 Thread Bryan Wu
On Thu, Aug 8, 2013 at 12:59 AM, Milo Kim wrote: > This patch provides common macros for LP5521 and LP5523 device attributes and > functions. > > (Device attributes) > LP5521: 'mode', 'load' and 'selftest' > LP5523: 'mode', 'load', 'leds' and 'selftest' > > (Permissions) > mode: R/W > load:

Re: [PATCH 01/10] leds: lp55xx: add common data structure for program

2013-08-13 Thread Bryan Wu
On Thu, Aug 8, 2013 at 12:59 AM, Milo Kim wrote: > LP55xx family devices have internal three program engines which are used for > loading LED patterns. > To maintain legacy device attributes, specific data structure is used, 'mode' > and 'led_mux'. > The mode is used for showing/storing current

Re: [PATCH v3 1/4] leds-pca9633: Add support for PCA9634

2013-08-13 Thread Bryan Wu
On Tue, Aug 13, 2013 at 7:49 AM, Ricardo Ribalda Delgado wrote: > Hello Bryan > > Did you have a chance to look at the new series? > Sorry for the delay. I have no problem for this series. Could you please rebase to my tree's for-next branch [1]? And post again? Because recently there were

Re: [PATCH v3 1/4] leds-pca9633: Add support for PCA9634

2013-08-13 Thread Bryan Wu
On Tue, Aug 13, 2013 at 7:49 AM, Ricardo Ribalda Delgado ricardo.riba...@gmail.com wrote: Hello Bryan Did you have a chance to look at the new series? Sorry for the delay. I have no problem for this series. Could you please rebase to my tree's for-next branch [1]? And post again? Because

Re: [PATCH 01/10] leds: lp55xx: add common data structure for program

2013-08-13 Thread Bryan Wu
On Thu, Aug 8, 2013 at 12:59 AM, Milo Kim woogyom@gmail.com wrote: LP55xx family devices have internal three program engines which are used for loading LED patterns. To maintain legacy device attributes, specific data structure is used, 'mode' and 'led_mux'. The mode is used for

Re: [PATCH 02/10] leds: lp55xx: add common macros for device attributes

2013-08-13 Thread Bryan Wu
On Thu, Aug 8, 2013 at 12:59 AM, Milo Kim woogyom@gmail.com wrote: This patch provides common macros for LP5521 and LP5523 device attributes and functions. (Device attributes) LP5521: 'mode', 'load' and 'selftest' LP5523: 'mode', 'load', 'leds' and 'selftest' (Permissions) mode: R/W

Re: [PATCH 03/10] leds: lp5521: restore legacy device attributes

2013-08-13 Thread Bryan Wu
On Thu, Aug 8, 2013 at 12:59 AM, Milo Kim woogyom@gmail.com wrote: git commit 9ce7cb170f97f83a78dc948bf7d25690f15e1328 may cause an application confict, engineN_mode and engineN_load. This interface should be maintained for compatibility. Restored device attributes are 'engineN_mode' and

Re: [PATCH 04/10] leds: lp5521: remove unnecessary writing commands

2013-08-13 Thread Bryan Wu
On Thu, Aug 8, 2013 at 12:59 AM, Milo Kim woogyom@gmail.com wrote: This patch reduces the number of programming commands. (Count of sending commands) Old code: 32 + program size (32 counts for clearing program memory) New code: 32 Pattern buffer is initialized to 0 in this function.

Re: [PATCH 05/10] leds: lp5523: make separate API for loading engine

2013-08-13 Thread Bryan Wu
On Thu, Aug 8, 2013 at 12:59 AM, Milo Kim woogyom@gmail.com wrote: lp5523_load_engine() It is called whenever the operation mode is changed to 'load'. It is used for simple operation mode change. It will be used when engine mode and LED selection is updated in later patch.

Re: [PATCH 06/10] leds: lp5523: LED MUX configuration on initializing

2013-08-13 Thread Bryan Wu
On Thu, Aug 8, 2013 at 12:59 AM, Milo Kim woogyom@gmail.com wrote: LED MUX start and stop address should be updated in the program memory on LP5523 initialization. LED pattern doesn't work without additional MUX address configuration. This handling is done by new function,

Re: [PATCH 07/10] leds: lp5523: restore legacy device attributes

2013-08-13 Thread Bryan Wu
On Thu, Aug 8, 2013 at 12:59 AM, Milo Kim woogyom@gmail.com wrote: git commit db6eaf8388a413a5ee1b4547ce78506b9c6456b0 (leds-lp5523: use generic firmware interface) causes an application conflict. This interface should be maintained for compatibility. Restored device attributes are

Re: [PATCH 09/10] Documentation: leds-lp5521,lp5523: update device attribute information

2013-08-13 Thread Bryan Wu
On Thu, Aug 8, 2013 at 12:59 AM, Milo Kim woogyom@gmail.com wrote: Now, all legacy application interfaces are restored. Each driver documentation is updated. Good to merge, thanks, -Bryan Cc: Pali Rohár pali.ro...@gmail.com Signed-off-by: Milo Kim milo@ti.com ---

Re: [PATCH 08/10] leds: lp5523: remove unnecessary writing commands

2013-08-13 Thread Bryan Wu
On Thu, Aug 8, 2013 at 12:59 AM, Milo Kim woogyom@gmail.com wrote: This patch reduces the number of programming commands. (Count of sending commands) Old code: 32 + program size (32 counts for clearing program memory) New code: 32 Pattern buffer is initialized to 0 in this function.

Re: [PATCH 10/10] leds: lp5562: use LP55xx common macros for device attributes

2013-08-13 Thread Bryan Wu
On Thu, Aug 8, 2013 at 12:59 AM, Milo Kim woogyom@gmail.com wrote: Good for merge. -Bryan Signed-off-by: Milo Kim milo@ti.com --- drivers/leds/leds-lp5562.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/leds/leds-lp5562.c

Re: [PATCH 00/10] leds: lp5521,5523: restore device attributes for running LED patterns

2013-08-13 Thread Bryan Wu
On Thu, Aug 8, 2013 at 12:59 AM, Milo Kim woogyom@gmail.com wrote: This patch-set resolves the application conflict by restoring sysfs files. For LP5521 engine1/2/3_mode engine1/2/3_load For LP5523 engine1/2/3_mode engine1/2/3_load engine1/2/3_leds Those attributes are

Re: [PATCH v2 1/3] leds-pca9633: Add support for PCA9634

2013-08-08 Thread Bryan Wu
On Thu, Aug 8, 2013 at 3:36 PM, Peter Meerwald wrote: > Hello, > >> > Add support for PCA9634 chip, which belongs to the same family as the >> > 9633 but with support for 8 outputs instead of 4. > >> Basically I like this method to add a new chip supporting. Please find >> my comments below. > >

Re: [PATCH v2 2/3] leds-pca9633: Unique naming of the LEDs

2013-08-08 Thread Bryan Wu
On Thu, Aug 8, 2013 at 9:45 AM, Ricardo Ribalda Delgado wrote: > If there is more than one pca963x chips on the system and there are > some LEDs without platform_data names, the driver wont be able to > provide unique naming to them. > > This will cause led_class_dev_register to fail,

Re: [PATCH v2 1/3] leds-pca9633: Add support for PCA9634

2013-08-08 Thread Bryan Wu
On Thu, Aug 8, 2013 at 9:45 AM, Ricardo Ribalda Delgado wrote: > Add support for PCA9634 chip, which belongs to the same family as the > 9633 but with support for 8 outputs instead of 4. > Basically I like this method to add a new chip supporting. Please find my comments below. > Signed-off-by:

Re: [PATCH v2 1/3] leds-pca9633: Add support for PCA9634

2013-08-08 Thread Bryan Wu
On Thu, Aug 8, 2013 at 9:45 AM, Ricardo Ribalda Delgado ricardo.riba...@gmail.com wrote: Add support for PCA9634 chip, which belongs to the same family as the 9633 but with support for 8 outputs instead of 4. Basically I like this method to add a new chip supporting. Please find my comments

Re: [PATCH v2 2/3] leds-pca9633: Unique naming of the LEDs

2013-08-08 Thread Bryan Wu
On Thu, Aug 8, 2013 at 9:45 AM, Ricardo Ribalda Delgado ricardo.riba...@gmail.com wrote: If there is more than one pca963x chips on the system and there are some LEDs without platform_data names, the driver wont be able to provide unique naming to them. This will cause led_class_dev_register

Re: [PATCH v2 1/3] leds-pca9633: Add support for PCA9634

2013-08-08 Thread Bryan Wu
On Thu, Aug 8, 2013 at 3:36 PM, Peter Meerwald p.meerw...@bct-electronic.com wrote: Hello, Add support for PCA9634 chip, which belongs to the same family as the 9633 but with support for 8 outputs instead of 4. Basically I like this method to add a new chip supporting. Please find my

Re: leds-lp5523: Broken commit db6eaf8388a413a5ee1b4547ce78506b9c6456b0

2013-08-05 Thread Bryan Wu
On Mon, Aug 5, 2013 at 12:31 AM, Pali Rohár wrote: > On Monday 05 August 2013 09:26:46 Kim, Milo wrote: >> > Hello, >> > >> > git commit "leds-lp5523: use generic firmware interface" >> > db6eaf8388a413a5ee1b4547ce78506b9c6456b0 introduced in >> > kernel 3.10 changed user space API for modifing

Re: leds-lp5523: Broken commit db6eaf8388a413a5ee1b4547ce78506b9c6456b0

2013-08-05 Thread Bryan Wu
On Mon, Aug 5, 2013 at 12:31 AM, Pali Rohár pali.ro...@gmail.com wrote: On Monday 05 August 2013 09:26:46 Kim, Milo wrote: Hello, git commit leds-lp5523: use generic firmware interface db6eaf8388a413a5ee1b4547ce78506b9c6456b0 introduced in kernel 3.10 changed user space API for modifing

<    1   2   3   4   5   6   7   8   9   10   >