Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751795AbdINTjN (ORCPT ); Thu, 14 Sep 2017 15:39:13 -0400 Received: from mail-wr0-f169.google.com ([209.85.128.169]:47107 "EHLO mail-wr0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751682AbdINTjK (ORCPT ); Thu, 14 Sep 2017 15:39:10 -0400 X-Google-Smtp-Source: ADKCNb6SfeGj/P0pIFEA9ecCbB8RlKssckT0LJe+PKavH/mg60tJTmCETM3vqCPr7uA74zc5RPOmgn4a6I2zzjRFuog= MIME-Version: 1.0 In-Reply-To: <9c75c3a9-4123-c7f3-7725-45ba752d672a@gmail.com> References: <20170913175400.42744-1-dtwlin@google.com> <20170913202032.GA30844@amd> <9c75c3a9-4123-c7f3-7725-45ba752d672a@gmail.com> From: David Lin Date: Thu, 14 Sep 2017 12:38:38 -0700 Message-ID: Subject: Re: [PATCH v2 0/3] led: ledtrig-transient: add support for hrtimer To: Jacek Anaszewski Cc: Pavel Machek , Jonathan Corbet , rpurdie@rpsys.net, hdegoede@redhat.com, Greg KH , robh@kernel.org, Rom Lemarchand , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 629 Lines: 11 On Thu, Sep 14, 2017 at 12:31 PM, Jacek Anaszewski wrote: > I would change one more thing in this patch, though. The hr_timer engine > should be made optional and not used by default for fast LEDs. > It could be made configurable by exposing additional sysfs file from > ledtrig-transient.c, e.g. hr_timer_support, accepting boolean value. Do you mean in additional to checking the LED_BRIGHTNESS_FAST flag, userspace has to explicitly enable it via sysfs for ledtrig to select hrtimer? This seems to be redundant to me. Could you please explain your concerns and the benefit of doing this? Thanks.