Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754024AbbHXILx (ORCPT ); Mon, 24 Aug 2015 04:11:53 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:24550 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752356AbbHXILu (ORCPT ); Mon, 24 Aug 2015 04:11:50 -0400 X-AuditID: cbfec7f4-f79c56d0000012ee-d2-55dad1c3be79 Message-id: <55DAD1C2.4070107@samsung.com> Date: Mon, 24 Aug 2015 10:11:46 +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: Jacek Anaszewski , 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> <55D6EDD9.6050202@samsung.com> <20150821174507.GB8193@lunn.ch> <55D78A89.2030407@gmail.com> <20150821204201.GD8193@lunn.ch> In-reply-to: <20150821204201.GD8193@lunn.ch> Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrILMWRmVeSWpSXmKPExsVy+t/xK7qHL94KNZhwUMni/N1DzBa3t25g sbi8aw6bxdY36xgt7p46ymbxacs3JovOvmksDuweO2fdZfeYdzLQY+eOz0weK1Z/Z/doOtXO 6vF5k1wAWxSXTUpqTmZZapG+XQJXxox9E1kKzvBVTJkwg62B8QJ3FyMnh4SAicTV3qNsELaY xIV764FsLg4hgaWMEitWXmWGcJ4xSty9/48dpIpXQEvi2fR2JhCbRUBV4v/GVlYQm03AUOLn i9dgcVGBCIk/p/exQtQLSvyYfI8FxBYRUJCYcvIPK8hQZoEnjBI7Lx1mBEkIC0RJtF9pY4TY topJ4tLtG0CrOTg4BXQkGu5rgdQwC1hLrJy0jRHClpfYvOYt8wRGgVlIdsxCUjYLSdkCRuZV jKKppckFxUnpuYZ6xYm5xaV56XrJ+bmbGCEB/2UH4+JjVocYBTgYlXh4GSxvhQqxJpYVV+Ye YpTgYFYS4VV6eTNUiDclsbIqtSg/vqg0J7X4EKM0B4uSOO/cXe9DhATSE0tSs1NTC1KLYLJM HJxSDYzruTYvkWOel6SzP68y7NUxiX9Npfe9tYJO/uxcf7NTJb80djFD3Idr5uHSPzWuTPGe +XZ2WuRKd/EkG9vDy2qSwstzzrUkPlwQHPQ0nu233exDL0uqVmkWftx3Ofzl8obJ/8o6klxe vnRblaT3MPts8c+LrQe7pWSibDcuD5T9vbnjhOmGjyeVWIozEg21mIuKEwEOCwv5dAIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2074 Lines: 44 On 08/21/2015 10:42 PM, Andrew Lunn wrote: >> This work queue from led-class.c is used for setting brightness, when >> blink timer is on. Blinking is the functionality from the LED core, >> so the work queue should also belong to the core. It should be moved >> there along with led_timer_function, for consistency reasons. In view >> of the above, using it for setting brightness by blocking drivers >> would be correct from the architectural point of view. > > So lets assume we are not doing all the changes in a single patch > set. Its too complex. You say the work queue should be in the > core. Lets put a work queue in the core to handle the blocking op, and > strip it out of the drivers. That allows you to get a lot of driver > patches merged. Moving the work queue to the core is rather a cosmetic change and it is not required for adapting it to setting brightness for blocking drivers. I think that we could postpone the cosmetic changes to the moment when other essential patches are merged. Like I explained in the previous message, patches from 1 to 4 are the minimum of the changes required for removing work queues from drivers. I am aware that the changes may be hard to analyze, but the things are entangled together and changes must be done in a few places simultaneously. Those crucial changes are gathered in the patch [1]. I tried to explain them in the commit messages. Maybe my explanations weren't comprehensive enough, if so, I'd be glad if you could indicate what could be added/modified in the description to make it more clear. > You can then work on moving led_timer_function into the core, etc, > with a much smaller patch set, and hopefully in a number of small > steps which are easy to review. > > Andrew > [1] https://lkml.org/lkml/2015/8/11/191 -- 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/