Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030293Ab2HWRTt (ORCPT ); Thu, 23 Aug 2012 13:19:49 -0400 Received: from mailhost.informatik.uni-hamburg.de ([134.100.9.70]:43905 "EHLO mailhost.informatik.uni-hamburg.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964880Ab2HWRTo (ORCPT ); Thu, 23 Aug 2012 13:19:44 -0400 Message-ID: <50366628.5020007@metafoo.de> Date: Thu, 23 Aug 2012 19:19:36 +0200 From: Lars-Peter Clausen User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20120724 Icedove/3.0.11 MIME-Version: 1.0 To: =?UTF-8?B?QmVub8OudCBUaMOpYmF1ZGVhdQ==?= CC: Thierry Reding , linux-kernel@vger.kernel.org, Sascha Hauer , linux-arm-kernel@lists.infradead.org, Dmitry Torokhov , linux-input@vger.kernel.org, Bryan Wu , Richard Purdie , linux-leds@vger.kernel.org, Florian Tobias Schandinat , linux-fbdev@vger.kernel.org Subject: Re: [PATCH] pwm: Call pwm_enable() before pwm_config() References: <36966374.2768747.1345741025741.JavaMail.root@advansee.com> <50366464.4070801@metafoo.de> In-Reply-To: <50366464.4070801@metafoo.de> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 727 Lines: 14 On 08/23/2012 07:12 PM, Lars-Peter Clausen wrote: >[...] > Or maybe just use the runtime pm API for this. This probably makes even more > sense and grab a reference to the pm context when the enable() is called, > release it when disable() is called and also grab it before calling the > device's config callback and release it afterward. Btw. this seems to be exactly what the pwm-tiecap and pwm-tiehrpwm drivers already do today. I'd just make that a core PWM framework feature. -- 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/