From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933881AbcDFJQm (ORCPT ); Wed, 6 Apr 2016 05:16:42 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:33905 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932159AbcDFJQk (ORCPT ); Wed, 6 Apr 2016 05:16:40 -0400 Date: Wed, 6 Apr 2016 11:16:38 +0200 From: Pavel Machek To: Jacek Anaszewski Cc: Heiner Kallweit , Jacek Anaszewski , Greg KH , linux-leds@vger.kernel.org, Benjamin Tissoires , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, pali.rohar@gmail.com, sre@kernel.org, khilman@kernel.org, aaro.koskinen@iki.fi, ivo.g.dimitrov.75@gmail.com, Patrik Bachan , serge@hallyn.com Subject: Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Message-ID: <20160406091638.GD10196@amd> References: <20160401135748.GD11860@amd> <56FEC444.4040106@gmail.com> <20160401211844.GA21768@amd> <5702DDD2.2030902@gmail.com> <20160405090141.GA23282@amd> <570415C4.5070003@gmail.com> <5704236D.5080805@gmail.com> <570438EF.4080904@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <570438EF.4080904@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! > >As I see it the current blinking support then would be one special case of a pattern. > >As a consequence once having pattern support we might be able to switch users of blinking > >to pattern and remove the blinking support. > > Let's split patterns related discussion into a separate thread. > It would be best if it began with a patch. Lets design userland interface first, then decide how to implement it in the kernel. Patches are useless at this point. And actually... without patterns, existing interface works just fine. Even if you can't "atomically" write values to three different files, operation is so fast that user will not see the intermediate state, anyway. So solving the "atomic" issue without solving the rest is pretty much useless. Best regards, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html