Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752600AbbD3Rab (ORCPT ); Thu, 30 Apr 2015 13:30:31 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:46558 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750866AbbD3Ra3 (ORCPT ); Thu, 30 Apr 2015 13:30:29 -0400 Date: Thu, 30 Apr 2015 19:30:25 +0200 From: Pavel Machek To: Stas Sergeev Cc: linux-leds@vger.kernel.org, Linux kernel , Stas Sergeev Subject: Re: [PATCH v2 0/3] leds: blink resolution improvements Message-ID: <20150430173024.GB21211@amd> References: <553E6CF5.4030601@list.ru> <20150427205441.GB1301@xo-6d-61-c0.localdomain> <553EA6B9.5040309@list.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <553EA6B9.5040309@list.ru> 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: 1355 Lines: 36 Hi! > >>The following patches improve the precision of led > >>timer trigger and add the delay unit control. > >>That allows to make PWM brightness control with timer > >>trigger. > >Are you sure that is good idea? Doing LED pwm with main cpu is quite harsh... > Do you remember the pc-speaker driver? :) Actually yes, I do, and that one has the same interface as "normal" sound cards. > For the timer trigger I would pretty much like my approach to stay. > The reason is that the PWM I need to do, is not strictly a PWM - > it needs the ON period in range of tens or hundreds of milliseconds, > while the OFF period is in a couple of usecs (or vice-versa). No That is a PWM, right? I see why you'd want to have short "on", but I don't see why you'd want short "off"... There's one thing you have to do: having two files, one specifiying units and second one specifying timeout is not going to work. What about simply "echo 0.001 > delay_on"? Thanks, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- 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/