Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933591AbbFWQwA (ORCPT ); Tue, 23 Jun 2015 12:52:00 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:58532 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933463AbbFWQvp (ORCPT ); Tue, 23 Jun 2015 12:51:45 -0400 Date: Sat, 2 May 2015 16:59:57 +0200 From: Pavel Machek To: Stas Sergeev Cc: linux-leds@vger.kernel.org, Linux kernel , Bryan Wu , Richard Purdie , Jacek Anaszewski , Kyungmin Park , Stas Sergeev Subject: Re: [PATCH v2] leds: fix brightness changing when software blinking is active Message-ID: <20150502145957.GB8156@xo-6d-61-c0.localdomain> References: <5554BE12.7050209@list.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5554BE12.7050209@list.ru> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1072 Lines: 26 On Thu 2015-05-14 18:24:02, 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. Could we get this part of API documented? It is quite non-obvious... 0 clears the trigger, other values do not, I thought it is a bug when I saw it... Thanks, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- 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/