Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753637AbbF3QnR (ORCPT ); Tue, 30 Jun 2015 12:43:17 -0400 Received: from fallback5.mail.ru ([94.100.181.253]:52775 "EHLO fallback5.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753574AbbF3QnP (ORCPT ); Tue, 30 Jun 2015 12:43:15 -0400 Message-ID: <5592C64A.3020406@list.ru> Date: Tue, 30 Jun 2015 19:39:38 +0300 From: Stas Sergeev User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Jacek Anaszewski , linux-leds@vger.kernel.org CC: linux-kernel@vger.kernel.org, cooloney@gmail.com, rpurdie@rpsys.net, stsp@users.sourceforge.net, pavel@ucw.cz, sakari.ailus@linux.intel.com, andreas.werner@men.de, andrew@lunn.ch, ospite@studenti.unina.it, anemo@mba.ocn.ne.jp, ben@simtec.co.uk, bootc@bootc.net, dmurphy@ti.com, daniel.jeong@ti.com, daniel@zonque.org, davem@davemloft.net, fabio.baltieri@gmail.com, balbi@ti.com, florian@openwrt.org, gshark.jeong@gmail.com, g.liakhovetski@gmx.de, ingi2.kim@samsung.com, dl9pf@gmx.de, johan@kernel.org, lenz@cs.wisc.edu, jogo@openwrt.org, q1.kim@samsung.com, kris@krisk.org, kristoffer.ericson@gmail.com, linus.walleij@linaro.org, broonie@kernel.org, michael.hennerich@analog.com, milo.kim@ti.com, nm127@freemail.hu, ncase@xes-inc.com, neilb@suse.de, nick.forbes@incepta.com, lost.distance@yahoo.com, p.meerwald@bct-electronic.com, n0-1@freewrt.org, philippe.retornaz@epfl.ch, raph@8d.com, rpurdie@openedhand.com, rod@whitby.id.au, dave@sr71.net, giometti@linux.it, bigeasy@linutronix.de, shuahkhan@gmail.com, sguinot@lacie.com Subject: Re: [PATCH/RFC v2 0/5] Remove work queues from LED class drivers References: <1435672534-4004-1-git-send-email-j.anaszewski@samsung.com> In-Reply-To: <1435672534-4004-1-git-send-email-j.anaszewski@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: 1768 Lines: 44 30.06.2015 16:55, Jacek Anaszewski пишет: > V2 includes also patches for one LED class driver > and two LED flash class drivers, that show how the > drivers will benefit from the optimization being > introduced in the first patch of this patch set. > > I was able to test only the LED Flash class drivers. > > Original message from the patch 483a3122 ("leds: Use set_brightness_work for > brightness_set ops that can sleep") that was sent previously as a single one: > > Hi All, > > Since this patch will affect all the LED subsystem drivers > I'd like it was tested by as many developers as possible > to make sure that I haven't missed something. > > For the drivers which can sleep in their brightness_set ops > (e.g. use mutex or gpio "cansleep" API) you only need to > remove the work queues and move the code executed currently > in the work queue task to the brightness_set op, as now > LED core does the job. > > For drivers that are capable of setting brightness with use > of MMIO you need to set the LED_BRIGHTNESS_FAST flag, so > that LED core would know that it doesn't have to employ > work queue. > > After the patch is positively verified I will create relevant > patches for every LED class driver. > > This patch is based on linux-next_20150622. > > I am looking forward to your cooperation. FYI I ported my soft-pwm patches to yours and that seems to work fine. So I am looking forward for this being applied, then I'll post them again. Acked-by: Stas Sergeev -- 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/