Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1767901Ab2KOODq (ORCPT ); Thu, 15 Nov 2012 09:03:46 -0500 Received: from mail-ee0-f46.google.com ([74.125.83.46]:57171 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1767872Ab2KOODn (ORCPT ); Thu, 15 Nov 2012 09:03:43 -0500 MIME-Version: 1.0 In-Reply-To: <20121113063546.GD18224@opensource.wolfsonmicro.com> References: <1352636539-6318-1-git-send-email-linus.walleij@stericsson.com> <50A15A54.3090803@wwwdotorg.org> <20121113063546.GD18224@opensource.wolfsonmicro.com> Date: Thu, 15 Nov 2012 15:03:40 +0100 Message-ID: Subject: Re: [PATCH] RFC: pinctrl: grab default handler with bus notifiers From: Linus Walleij To: Mark Brown Cc: Stephen Warren , Linus Walleij , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stephen Warren , Anmar Oueja , Felipe Balbi , Benoit Cousson , Dmitry Torokhov , Thomas Petazzoni , Mitch Bradley , Ulf Hansson , "Rafael J. Wysocki" , Kevin Hilman , Jean-Christophe PLAGNIOL-VILLARD , Rickard Andersson , Greg Kroah-Hartman , Russell King Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1495 Lines: 32 On Tue, Nov 13, 2012 at 7:35 AM, Mark Brown wrote: > On Mon, Nov 12, 2012 at 01:21:40PM -0700, Stephen Warren wrote: >> On 11/11/2012 05:22 AM, Linus Walleij wrote: > >> > Another solution that was discussed was whether to move >> > the default pinctrl handle and state grab to the device >> > core as an optional field in struct device itself, but >> > I'd like to first propose this less intrusive mechanism. > >> I think doing that approach makes a lot more sense; wouldn't it >> completely avoid the issues with deferred probe that this notifier-based >> method can't solve? It would also be very much in line with e.g. >> dev_get_regmap() - if every resource that a driver required were handled >> like that, then deferred probe could be significantly isolated into the >> driver core rather than in every driver... > > I have to say that I agree with this, notifiers seem to make life more > complicated for limited gain. Otherwise I guess we could enhance > notifiers so that they're able to trigger deferrals? OK I'll have to come up with a patch to the device core instead... it'll be much simpler anyway and if both of you guys can back it I guess Greg might be OK with it too. Yours, Linus Walleij -- 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/