Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753539AbbHUJWo (ORCPT ); Fri, 21 Aug 2015 05:22:44 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:60903 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752256AbbHUJWj (ORCPT ); Fri, 21 Aug 2015 05:22:39 -0400 X-AuditID: cbfec7f4-f79c56d0000012ee-d5-55d6eddb131f Message-id: <55D6EDD9.6050202@samsung.com> Date: Fri, 21 Aug 2015 11:22:33 +0200 From: Jacek Anaszewski User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130804 Thunderbird/17.0.8 MIME-version: 1.0 To: Andrew Lunn Cc: linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, Sakari Ailus , Pavel Machek , Stas Sergeev Subject: Re: [PATCH/RFC v6 05/36] leds: Improve setting brightness in a non sleeping way References: <1440081846-11697-1-git-send-email-j.anaszewski@samsung.com> <1440081846-11697-6-git-send-email-j.anaszewski@samsung.com> <20150820160938.GF27457@lunn.ch> In-reply-to: <20150820160938.GF27457@lunn.ch> Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGLMWRmVeSWpSXmKPExsVy+t/xK7q3314LNVh4ls/i/N1DzBaXd81h s9j6Zh2jxd1TR9ksPm35xmTR2TeNxYHNY97JQI+dOz4zeaxY/Z3do+lUO6vH501yAaxRXDYp qTmZZalF+nYJXBn3d85mL3jKXfGm+T9LA+MJzi5GTg4JAROJY42fWSFsMYkL99azdTFycQgJ LGWUePlqBQuE84xR4uKT00xdjBwcvAJaEqvu1YKYLAKqEl2vs0F62QQMJX6+eM0EYosKREj8 Ob0PbCavgKDEj8n3WEBsEQEFiSkn/7CCjGQW2Moocev9XbAiYYEoifYrbYwQu1YBLT7fzg6S 4BTQlVh0vpUNxGYWsJZYOWkbI4QtL7F5zVvmCYwCs5AsmYWkbBaSsgWMzKsYRVNLkwuKk9Jz DfWKE3OLS/PS9ZLzczcxQkL7yw7GxcesDjEKcDAq8fDOiLwWKsSaWFZcmXuIUYKDWUmE1/oF UIg3JbGyKrUoP76oNCe1+BCjNAeLkjjv3F3vQ4QE0hNLUrNTUwtSi2CyTBycUg2MRVfqPfm5 9rEGHL/xecvik6x5mm/YKzVefeq0sN+S1thjxHJJbuEJdrN72WKhs+pDPXK26Dy3nOOae7f1 zOpbggKF1V9670tx7bz6o0M5j2Xq4rsmW7LrlZ9Etjbo+fzefFXn5b+93zI56h873Sm/pqy1 OkbK9IWH9VpevnR7v3mCGtffWwcosRRnJBpqMRcVJwIAPWZ4NmkCAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1716 Lines: 43 Hi Andrew, Thanks for the review. On 08/20/2015 06:09 PM, Andrew Lunn wrote: > On Thu, Aug 20, 2015 at 04:43:35PM +0200, Jacek Anaszewski wrote: >> This patch replaces led_set_brightness_async with >> led_set_brightness_nosleep in all places where the most vital was setting >> brightness in a non sleeping way but not necessarily asynchronously, which >> is not needed for non-blocking drivers. > > O.K, so i've lost the plot. _sync, _asymc, _nosleep, etc. Too many > changes without a clearly documented vision of what you are trying to > achieve. > > How about splitting this up into at least two patch sets. > > 1) Add the brightness_set_blocking op and the minimum of changes > needed to the core to make it work, and the driver changes taking out > the work queue. The minimum of changes needed includes harnessing existing set_brightness_work for setting brightness instead of the work queues in the drivers. First three patches in the patch set are indispensable to implement this and avoid breakage of blinking feature. Especially patch 3/36 is quite complex, but I didn't have better idea on how to tackle this problem without breaking bisect, > 2) A set of patches cleaning up the core and its API. We want a well > documented linux/leds.h and drivers/led/leds.h defining the APIs which > users and triggers should be using. Of course, I will document led_set_brightness_async and led_set_brightness_nosleep functions. -- Best Regards, Jacek Anaszewski -- 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/