Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752853AbbF3L6U (ORCPT ); Tue, 30 Jun 2015 07:58:20 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:60226 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751104AbbF3L6M (ORCPT ); Tue, 30 Jun 2015 07:58:12 -0400 Date: Tue, 30 Jun 2015 13:58:09 +0200 From: Pavel Machek To: Jacek Anaszewski Cc: linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan Wu , Richard Purdie , Stas Sergeev , Sakari Ailus , Andreas Werner , Andrew Lunn , Antonio Ospite , Atsushi Nemoto , Ben Dooks , Chris Boot , Dan Murphy , Daniel Jeong , Daniel Mack , "David S. Miller" , Fabio Baltieri , Felipe Balbi , Florian Fainelli , "G.Shark Jeong" , Guennadi Liakhovetski , Ingi Kim , Jan-Simon Moeller , Johan Hovold , John Lenz , Jonas Gorski , Kim Kyuwon , Kristian Kielhofner , Kristoffer Ericson , Linus Walleij , Mark Brown , Michael Hennerich , Milo Kim , =?iso-8859-1?Q?M=E1rton_N=E9meth?= , Nate Case , NeilBrown , Nick Forbes , Paul Parsons , Peter Meerwald , Phil Sutter , Philippe Retornaz , Raphael Assenat , Richard Purdie , Rod Whitby , Dave Hansen , Rodolfo Giometti , "Sebastian A. Siewior" , Shuah Khan , Simon Guinot , =?iso-8859-1?Q?=C1lvaro_Fern=E1ndez?= Rojas Subject: Re: [PATCH/RFC RESEND] leds: Use set_brightness_work for brightness_set ops that can sleep Message-ID: <20150630115809.GA13605@amd> References: <1435651268-9657-1-git-send-email-j.anaszewski@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1435651268-9657-1-git-send-email-j.anaszewski@samsung.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 Content-Length: 1178 Lines: 25 On Tue 2015-06-30 10:01:08, Jacek Anaszewski wrote: > This patch rearranges the core LED subsystem code, so that it > now removes from drivers the responsibility of using work queues > internally in case their brightness_set ops can sleep. > Addition of two flags: LED_BRIGHTNESS_FAST and LED_BLINK_DISABLE > as well as new_brightness_value property to the struct led_classdev > allows for employing existing set_brightness_work to do the job. > The modifications allow also to get rid of brightness_set_sync op, > as flash LED devices can now be handled properly only basing on the > SET_BRIGHTNESS_SYNC flag. Are you sure this is good idea? You'll now use single callback for blocking and non-blocking behaviour. I'm pretty sure stuff like lockdep will have some fun with that. 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/