From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932181AbbCQNBP (ORCPT ); Tue, 17 Mar 2015 09:01:15 -0400 Received: from opensource.wolfsonmicro.com ([80.75.67.52]:57811 "EHLO opensource.wolfsonmicro.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752928AbbCQNBO (ORCPT ); Tue, 17 Mar 2015 09:01:14 -0400 Date: Tue, 17 Mar 2015 13:01:12 +0000 From: Charles Keepax To: Mark Brown Cc: lee.jones@linaro.org, sameo@linux.intel.com, lgirdwood@gmail.com, patches@opensource.wolfsonmicro.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/5] mfd: wm5110: Add delay before releasing reset line on cold boot Message-ID: <20150317130112.GD23705@opensource.wolfsonmicro.com> References: <1426525124-12317-1-git-send-email-ckeepax@opensource.wolfsonmicro.com> <1426525124-12317-3-git-send-email-ckeepax@opensource.wolfsonmicro.com> <20150316171232.GU28806@sirena.org.uk> <20150316184518.GB23705@opensource.wolfsonmicro.com> <20150316204710.GX28806@sirena.org.uk> <20150317115030.GC23705@opensource.wolfsonmicro.com> <20150317120421.GD28806@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150317120421.GD28806@sirena.org.uk> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 17, 2015 at 12:04:21PM +0000, Mark Brown wrote: > On Tue, Mar 17, 2015 at 11:50:30AM +0000, Charles Keepax wrote: > > On Mon, Mar 16, 2015 at 08:47:10PM +0000, Mark Brown wrote: > It seems easy enough to check if the device is active and it's very > common for drivers to do this (wm8994 has an example) - for most uses > you should be able to check pm_runtime_is_enabled() and there should > just be a single bitfield you can look at to figure out if jack > detection was running. Looking at the extcon driver briefly > ARIZONA_JD1_ENA looks hopeful. Cool ok, sorry about that. All makes more sense now, thanks. I will respin. Thanks, Charles