Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755493AbbFBIMi (ORCPT ); Tue, 2 Jun 2015 04:12:38 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:56351 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754932AbbFBIL4 (ORCPT ); Tue, 2 Jun 2015 04:11:56 -0400 MIME-version: 1.0 Content-type: text/plain; charset=UTF-8; format=flowed X-AuditID: cbfec7f4-f79c56d0000012ee-2e-556d654adf9f Content-transfer-encoding: 8BIT Message-id: <556D6548.20905@samsung.com> Date: Tue, 02 Jun 2015 10:11:52 +0200 From: Jacek Anaszewski User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130804 Thunderbird/17.0.8 To: Stas Sergeev Cc: linux-leds@vger.kernel.org, Linux kernel , Stas Sergeev , Bryan Wu , Richard Purdie , Kyungmin Park Subject: Re: [PATCH 01/20] leds: implement LED_BRIGHTNESS_FAST flag References: <555CA58A.10700@list.ru> <555CA5FA.2080308@list.ru> <556C1855.7070903@samsung.com> <556C4851.7060900@list.ru> <556C69EA.10000@samsung.com> <556C6E2F.7050100@list.ru> In-reply-to: <556C6E2F.7050100@list.ru> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrHLMWRmVeSWpSXmKPExsVy+t/xa7peqbmhBlefs1sc3TmRyeJs0xt2 i8u75rBZbH2zjtFi966nrBatmxqYLTr7prE4sHvsnHWX3ePelsvMHnvm/2D16NuyitGj6VQ7 q8fnTXIBbFFcNimpOZllqUX6dglcGfdvbWYtOMteceD1SZYGxi62LkYODgkBE4nus8FdjJxA ppjEhXvrgcJcHEICSxklHk08wASS4BUQlPgx+R4LSD2zgLzEkUvZIGFmATOJRy3rmCHqnzFK 3JlxjRmiXkNiWfNaRpB6FgFViT9LuUHCbAKGEj9fvAYbKSoQIfHn9D5WkBIRoJEbGstAxjAL vGCUuHiqDWyMsICzxJb/86Du2cooMXPRT7BmTgF1iS9f9jJNYBSYheS8WQjnzUJy3gJG5lWM oqmlyQXFSem5hnrFibnFpXnpesn5uZsYIaH+ZQfj4mNWhxgFOBiVeHgZPuWECrEmlhVX5h5i lOBgVhLhXZScGyrEm5JYWZValB9fVJqTWnyIUZqDRUmcd+6u9yFCAumJJanZqakFqUUwWSYO TqkGxjCFI60JVx5a/d8q+6hddVdb+93d3/Yuytn1TJyzgF3DQVVhMXeR4QX56cKTF4sYXVOp 2hPWdmHDyo8KZ3gWHJ1zefsKtQV6US/TX5dOTbjy/Z80R4WPkB3nVImv1oYvfC3V7+8qf8Ya 8ZNfz5SppeLNT9NHLYKn7ALN//z/F7LowuNzohr7q5VYijMSDbWYi4oTAVN4C4hxAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1196 Lines: 27 On 06/01/2015 04:37 PM, Stas Sergeev wrote: > 01.06.2015 17:19, Jacek Anaszewski пишет: >>> In fact, the things are more complicated: some drivers do small >>> udelay()'s but do not use a work-queue. I was not marking them as >>> FAST, although perhaps they could still be marked as SYNC? >> This could be handled by adding a property to struct led_classdev >> for defining minimum acceptable delay. Then FAST flag should not >> be needed. > Oh c'mon, that's too difficult! > Lets just have a flag whether we can do an SW PWM from hrtimer irq callback. > If we can't do from irq callback - simply do not do anything below 10mS. > IMHO a simple and practical solution. > Otherwise we'll not have anything implemented at all I guess. > I agree if we are not going to mark the drivers using delays as FAST. Otherwise the minimum acceptable value stemming from delay value would be required. I prefer the former. -- 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/