Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3550983imm; Mon, 6 Aug 2018 06:48:22 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeqMVxs4TqJI5P7FWCloPhk/zgRDa0RvngxoCZ8ewO9R065lwx5HCHd9cohQM1b/lS4FXEg X-Received: by 2002:a65:5581:: with SMTP id j1-v6mr15013928pgs.203.1533563302690; Mon, 06 Aug 2018 06:48:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533563302; cv=none; d=google.com; s=arc-20160816; b=cOjCs4RnWOvE7T0tlSaYbv3j+w95ZChDUpPJpFue/JsYB3tXw36a3MazsLPNs2Nzby dxsP2KpLkjCM/bDcZ7l9iSWYuwuxSIwdjvRgxygGQbhrjepUVcfCFfwWq0Q2uQmEt6mG fYsriOAHAro8+quKU6LIro75GbaiYwLGeBtBOSC8IT78ZCnCXhtuurl/bEHoGO+9Cn3G t0/Op5txWzUyJ0j/tA73o1AAuxSc4otD/8mgaccH9KCjFVCk7V2UmXhkLGlqBrzISfX3 fY3AwDeKoNztJ5Cgv26VuMP0G8NHIFGmfazZ1MMB30vz/hq4zmY8YDOGzcCuFCoacfPo qlMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=TXTSpOFvRsXFoJ6XrilRXyqXEnGZJaJZOMrXq7Fwr5I=; b=TsxpS6fnkRAnKYIbqQhUoqb/aHYl8sNSnDZ5aCNjLPl/TYCeXFdx/JKxJz20jxjI1R kEXGhkZGqNqY7u9YKH+Q97h75ns2vJYEH5IFOekYTQyWIu8QVhEVnUXvI8wDOE+UF9xH A79GavJ4KibPpedAHnPWC3sxvvTQrj9dIXuF5T7m2lcYda4a42pKqmDqEjtRgu0N+1PI Th2diHSyLMqPevVKoINfV3BZEM65YhzDYhEPbxG6/wfp6ZdmeBKRAH2pQSWRdEhwgBnr R5QE5KpamCYduXUhvdyf+7/FJ/CeDGrI7L1Q4j3LyPQtNotKdv2mxFjd+Y6PnwrosbOp WAgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fhMbpfoV; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 15-v6si12043397pld.157.2018.08.06.06.48.07; Mon, 06 Aug 2018 06:48:22 -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=@gmail.com header.s=20161025 header.b=fhMbpfoV; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731089AbeHFPrq (ORCPT + 99 others); Mon, 6 Aug 2018 11:47:46 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:41719 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727582AbeHFPrq (ORCPT ); Mon, 6 Aug 2018 11:47:46 -0400 Received: by mail-ed1-f67.google.com with SMTP id s24-v6so5166656edr.8; Mon, 06 Aug 2018 06:38:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TXTSpOFvRsXFoJ6XrilRXyqXEnGZJaJZOMrXq7Fwr5I=; b=fhMbpfoVxPHo2uOOjA1YPM0pcbaPIqfHpoAccyU5XLnlexjJ2TxqOiBiIWtvRX90lH EmIK6plJN63EdYW/vVYgZuAPrx0MMWkzGNVb59DV7EBcQUHBdq8KfrmfD850crVJg45a zAzc9FL3r7vPHcwP8smwooTAOuIIjvvKLYrkRlZbtYsU9UELLlX8karN4XyrSNVjmm2O A5IYZl0Nea0G2xD0sbEgEW1i3WMM4yZh5cDcN+pTBexyD6OxxIFneNNx8gN9BamZk5TF hoWCJvH4RUUf2Ub54LkzxHW88lC7Ui8PmjjekW1/MZdV0598N2dUyPRzSrBvNb0mu8Sd zyFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TXTSpOFvRsXFoJ6XrilRXyqXEnGZJaJZOMrXq7Fwr5I=; b=lmqIipGcxgS+ntDQ0/qkWQSFyVxRSFce+m03LjZckRNb8ENLrB4iIcMP81yuBqQNzU lorw9qy3HiWlgXtTXuMWujFNdm10TxQ3V8fu9/LoO1fSi9beDnKxgWrRLW/hyKflIK7s AsyaLN1efek3HFtFszBZvA54N3IreoVnzMhqxOBENzuhaIx5U5dibfM1KBLt1PJq77KS 1rEmwqYyFhuTd/fpMFIfieYSjZcZuOraXLw1OoX8Ou4zgqNtBRrZJ1cmV/2XMabqv0oX 1Dvac0ZAHfJHFeX0ZdpQlLcc+yK+Ga77Y1c+NTwonIhP4+dgeNZ59Ko3wAG/DQQlwI1A E5YA== X-Gm-Message-State: AOUpUlFD/PTYO+2NZByB0Gzf+luIngjn9w/cx7fYph7HK70fdNhKxx1U 36eCuDlsFSCn/eS9yF+PkO0= X-Received: by 2002:aa7:c68b:: with SMTP id n11-v6mr18645590edq.122.1533562715719; Mon, 06 Aug 2018 06:38:35 -0700 (PDT) Received: from dimapc.localnet (109-252-90-13.nat.spd-mgts.ru. [109.252.90.13]) by smtp.gmail.com with ESMTPSA id s23-v6sm7069256edm.74.2018.08.06.06.38.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Aug 2018 06:38:34 -0700 (PDT) From: Dmitry Osipenko To: Stefan Agner 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 Date: Mon, 06 Aug 2018 16:38:22 +0300 Message-ID: <2282091.6Fec9mOu3z@dimapc> In-Reply-To: References: <20180802111144.12512-1-digetx@gmail.com> <2738202.Xfnp0pFbCN@dimapc> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.