Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3968507imm; Mon, 6 Aug 2018 14:02:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeb2YBJYcA4LlPtFfWELRyR6R6BGB/F6Cbeiymb+MlxtbgZEK+AOjctSxVKceU/Yf/NNK4y X-Received: by 2002:a17:902:778e:: with SMTP id o14-v6mr15169612pll.198.1533589369645; Mon, 06 Aug 2018 14:02:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533589369; cv=none; d=google.com; s=arc-20160816; b=nbqPq8zCIGkFgg9KfCtFVZ7/Ya6uz3hKesn399e7Nl2VnzU/PP42Ff+J07dckGJUQQ Gxe11FRaw10Ua7hCGqc4J2v7vwlgYleVfWNsbfYD53vAdjKiiR8CZvaz9r6TE8tNkD3O MNjNu5kh54aosh2nqAx5evWySJ1x0YwSmXAodSMk1FqU7wk5jaKqMCpI7wIPulhRzpJP kEL19b7VMNsgCTJWJgTJ5vQAsWGgvEgjpyQQz/eAsY1A+dXdhgnXwE4EhK02+IUQDxER hgzjNrYfRD1O3JxI7LJW6yqrF4vJneEmI2BfhUCN6UTWLgwLfem2FXM324Jm9u6A5DXb cI0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:arc-authentication-results; bh=qw3Q87xwyHz4jt/sLC52qM9VLVGRlmfoHzjFPVP6b6E=; b=vwsJSaE7kEQoq1ZHoIG9YUSi2wV41wJNhAghClXsD4EApCEQ0gUNoLxwmZRC2PLa+L 25i8oLUaNxBfe9CIWLEkuxDVcu4+BVHyEOLChG8D2NPdLFN8+dmzh6NiyKuI7MZPqH60 M3nhQCfH55flq4zO+dExntlazCMB/L3mTLz+AFddXMg0HOabOQXEGK8LciusOdyPtxlp mPteZfuNjUzAUL+XGUtL050tVG+pZbEw/Xj9cRCRG3vL1kLABmUfK6DSPKXzZif1Roks /WxQHIb65/JMnh1ZjHXSYSYwG76WzTL/eq+vC2+OBr1MdxaIC5t59fmwErwPK6W7ZZSO +p+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=AEclGKMn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q90-v6si14786645pfa.272.2018.08.06.14.02.35; Mon, 06 Aug 2018 14:02:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=AEclGKMn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732898AbeHFXL4 (ORCPT + 99 others); Mon, 6 Aug 2018 19:11:56 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:59604 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728948AbeHFXL4 (ORCPT ); Mon, 6 Aug 2018 19:11:56 -0400 Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 103A55C045D; Mon, 6 Aug 2018 23:01:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1533589263; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qw3Q87xwyHz4jt/sLC52qM9VLVGRlmfoHzjFPVP6b6E=; b=AEclGKMnmiIguEkVr/AiM+163ARO/QGcSMYkWv6ZxwXhWhbOnRrORymrTUGAOQP7/X5ofn oDOmMSTYITfk6lVrJQE2XE735YQUwW5zvSGHvenmCG6PcU/8yRA/A33fh8vgaJo7d9efS8 wVOE/ixJUeBnhi9QCBgZ4iZ+/72h0/g= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Mon, 06 Aug 2018 23:01:03 +0200 From: Stefan Agner To: Dmitry Osipenko Cc: Linus Walleij , thierry.reding@gmail.com, Jon Hunter , Marcel Ziswiler , linux-tegra@vger.kernel.org, "open list:GPIO SUBSYSTEM" , linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/2] pinctrl: tegra: Move drivers registration to arch_init level In-Reply-To: <2282091.6Fec9mOu3z@dimapc> References: <20180802111144.12512-1-digetx@gmail.com> <2738202.Xfnp0pFbCN@dimapc> <2282091.6Fec9mOu3z@dimapc> Message-ID: X-Sender: stefan@agner.ch User-Agent: Roundcube Webmail/1.3.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06.08.2018 15:38, Dmitry Osipenko wrote: > On Monday, 6 August 2018 16:03:01 MSK Stefan Agner wrote: >> On 04.08.2018 16:01, Dmitry Osipenko wrote: >> > On Friday, 3 August 2018 20:24:56 MSK Linus Walleij wrote: >> >> On Thu, Aug 2, 2018 at 1:31 PM Stefan Agner wrote: >> >> > A while back at least using those init lists were not well received >> >> > even >> >> > for GPIO/pinctrl drivers: >> >> > >> >> > https://lore.kernel.org/lkml/CACRpkdYk0zW12qNXgOstTLmdVDYacu0Un+8quTN+J >> >> > _az >> >> > Oic7AA@mail.gmail.com/T/#mf0596982324a6489b5537b0531ac5aed60a316ba >> >> >> >> You shouldn't listen too much to that guy he's not trustworthy. >> >> ;-) >> >> >> > I still think we should make an exception for GPIO/pinctrl and use >> >> > earlier initcalls. Platform GPIO/pinctrl drivers provide basic >> >> > infrastructure often used by many other drivers, we want to have them >> >> > loaded early. It avoids unnecessary EPROBE_DEFER and hence probably >> >> > even >> >> > boots faster. >> >> >> >> When we have the pin control and GPIO at different initlevels it makes me >> >> uneasy because I feel we have implicit init dependencies that seem more >> >> than a little fragile. >> > >> > Yes, it is not very good. >> >> Btw, just noticed this now: >> GPIO driver -> arch_initcall >> pinctrl driver -> subsys_initcall > > I'm not sure what you're talking about, it's the other way around in the > patches. Wow, yeah sorry... That must be the heat in our office ':-) -- Stefan