Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1174266AbdDXUSm (ORCPT ); Mon, 24 Apr 2017 16:18:42 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:60321 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1174162AbdDXUSd (ORCPT ); Mon, 24 Apr 2017 16:18:33 -0400 Date: Mon, 24 Apr 2017 22:18:29 +0200 From: Pavel Machek To: Jacek Anaszewski Cc: David Lin , rpurdie@rpsys.net, robh@kernel.org, romlem@google.com, joelaf@google.com, stable@vger.kernel.org, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] led: ledtrig-transient: replace timer_list with hrtimer Message-ID: <20170424201829.GA18679@amd> References: <20170424044254.145192-1-dtwlin@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="azLHFNyN32YCQGCU" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1641 Lines: 54 --azLHFNyN32YCQGCU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > Hi David, >=20 > Thanks for the patch. >=20 > Unfortunately we cannot switch to using hr timers just like that > without introducing side effects for many devices. We had similar > attempt of increasing timer tirgger accuracy two years ago [0]. >=20 > In short words, for drivers that can sleep while setting brightness > and/or are using a bus like I2C you will not be able to enforce > 1ms delay period. >=20 > I recommend you to go through the thread [0] so that we had > a well defined ground for the discussion on how to address this > issue properly. >=20 > Alternatively, in order to avoid all quirks related to LED subsystem, > I'd propose to implement this feature in the GPIO subsystem, which > seems to be more suitable place for it. Actually.. make that "implement it in force feedback subsystem where it belongs". And we actually have force feedback subsystem, already, see drivers/input/ff-core.c . (Nokia N900 actually uses that subsystem for the vibration motor, so there's existing code...) Thanks, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --azLHFNyN32YCQGCU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlj+XZUACgkQMOfwapXb+vIFrwCfd4z/9L1SKV6z1nY7oI2Xpw2Y wpEAnRdbbYj2rbDOz2PFJvi8khFLTzmy =y6yS -----END PGP SIGNATURE----- --azLHFNyN32YCQGCU--