Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2992446AbbEOOLw (ORCPT ); Fri, 15 May 2015 10:11:52 -0400 Received: from smtp39.i.mail.ru ([94.100.177.99]:52458 "EHLO smtp39.i.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422669AbbEOOLu (ORCPT ); Fri, 15 May 2015 10:11:50 -0400 Message-ID: <5555FE9D.20103@list.ru> Date: Fri, 15 May 2015 17:11:41 +0300 From: Stas Sergeev User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Jacek Anaszewski CC: linux-leds@vger.kernel.org, Linux kernel , Bryan Wu , Richard Purdie , Kyungmin Park , Stas Sergeev Subject: Re: [PATCH v2] leds: fix brightness changing when software blinking is active References: <5554BE12.7050209@list.ru> <5555AA7F.1000001@samsung.com> <5555FDFF.5060402@samsung.com> In-Reply-To: <5555FDFF.5060402@samsung.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam: Not detected X-Mras: Ok Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1144 Lines: 31 15.05.2015 17:09, Jacek Anaszewski пишет: > On 05/15/2015 10:12 AM, Jacek Anaszewski wrote: >> Hi Stas, >> >> On 05/14/2015 05:24 PM, Stas Sergeev wrote: >>> >>> The following sequence: >>> echo timer >/sys/class/leds//trigger >>> echo 1 >/sys/class/leds//brightness >>> should change the ON brightness for blinking. >>> The function led_set_brightness() was mistakenly initiating the >>> delayed blink stop procedure, which resulted in no blinking with >>> the timer trigger still active. >>> >>> This patch fixes the problem by changing led_set_brightness() >>> to not initiate the delayed blink stop when brightness is not 0. > > This commit message is not valid for this version of the patch. Why do you think so? --- - schedule_work(&led_cdev->set_brightness_work); + if (brightness == LED_OFF) + schedule_work(&led_cdev->set_brightness_work); --- LED_OFF is a 0 define. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/