Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754018AbbESGfl (ORCPT ); Tue, 19 May 2015 02:35:41 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:11914 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753310AbbESGfj (ORCPT ); Tue, 19 May 2015 02:35:39 -0400 X-AuditID: cbfec7f4-f79c56d0000012ee-20-555ad9b8d9cd Message-id: <555AD9B7.1000803@samsung.com> Date: Tue, 19 May 2015 08:35:35 +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: Stas Sergeev Cc: linux-leds@vger.kernel.org, Linux kernel , Stas Sergeev , Bryan Wu , Richard Purdie , Michael Hennerich , Jan-Simon Moeller , Support Opensource , Milo Kim , Riku Voipio , Kyungmin Park , patches@opensource.wolfsonmicro.com Subject: Re: [PATCH] leds: put hard limit on minimum blink period for slow leds References: <55562329.9070604@list.ru> <5559A29D.5010204@samsung.com> In-reply-to: <5559A29D.5010204@samsung.com> Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprFIsWRmVeSWpSXmKPExsVy+t/xa7o7bkaFGrzqUbU4unMik8W8g3dZ LM42vWG3uLxrDpvF1jfrGC0mHN7MbrH81zoWi+Vv/7NZnNxwic1i966nrBatmxqYLTr7prFY 7G29yOzA6/HqqqPHik/6Hjtn3WX3+PAxzuPw14UsHve2XGb2eDnxN5vHnvk/WD36tqxi9Dh+ YzuTR9OpdlaPz5vkAniiuGxSUnMyy1KL9O0SuDI2LmpkLGjkqZi/9TNzA+MFzi5GTg4JAROJ zSfes0LYYhIX7q1n62Lk4hASWMooMX3OFyjnGaPE9/9n2UGqeAW0JOatfcwIYrMIqErcWr6G DcRmEzCU+PniNROILSoQIfHn9D5WiHpBiR+T77F0MXJwiAjIS2xoLAOZySzwklni0P7LYDXC Av4SG/u+g80XEnCVeLvmMZjNKaAtsfTEGzCbWcBM4lHLOmYIW15i85q3zBMYBWYhWTELSdks JGULGJlXMYqmliYXFCel5xrqFSfmFpfmpesl5+duYoTE2JcdjIuPWR1iFOBgVOLh5YiIDBVi TSwrrsw9xCjBwawkwst2KSpUiDclsbIqtSg/vqg0J7X4EKM0B4uSOO/cXe9DhATSE0tSs1NT C1KLYLJMHJxSDYwKb759POfz87a4zRMJg0sSXzZNWyNYtuqkmeuOpUEZPXOPvWRRMba+eknd ovn8o3ph3e5NZ636mQ7Jq3Ktm/ZpwbFtidm8/Xv/HQo5vy3A+tJTkWMmeuGZUVOcd4ZcKi/o maJt8rJ7B2eaTW6K/x6jy7nzSy4vqDE/Mef2h+AHN4LnBbNsLIlWYinOSDTUYi4qTgQAZC1k l60CAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1741 Lines: 46 On 05/18/2015 10:28 AM, Jacek Anaszewski wrote: > Hi Stas, > > On 05/15/2015 06:47 PM, Stas Sergeev wrote: >> >> Currently the timer trigger allows to set blink period as small as >> 1mS. But in fact the minimum period is jiffy, which is usually 10mS. >> The following mail says: >> http://lkml.iu.edu/hypermail/linux/kernel/1504.3/03469.html >> --- > > Text after '---' characters is not added to the commit message. > Please use different characters for this and check how your patch > looks in git log after applying it locally. > >> As I mentioned before even with hr timer it wouldn't be possible >> to assure that 1ms is achievable due to locking and bus latency >> reasons. >> --- >> So the limit of 10mS should be enforced for drivers that use >> waiting operations, like transfers across slow bus. >> This allows to stay on safe side when CONFIG_HZ is set to eg 1000. >> >> This patch differentiates the "slow" drivers by marking them with >> the new LED_BRIGHTNESS_SLOW flag. Currently every driver that uses >> a work-queue in .brightness_set op, is marked as such. >> The extra bonus is the possibility of a further development >> aiming for software PWM for "fast" drivers. [...] >> +#define LED_BRIGHTNESS_SLOW (1 << 24) I think we'd better add LED_BRIGHTNESS_FAST flag instead. Then the drivers not using work queue will have to be updated. It will also indicate what drivers are intended to be the actual beneficiary of the modification. -- 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/