Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2082068imm; Thu, 2 Aug 2018 06:03:13 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd7wyb2zuZcFmHJE4X7VvqwG3qtyKOYmVTy5SWXYqPcfXoelocxQEpJQhrQ0VqrYfml9lTo X-Received: by 2002:a63:9e0a:: with SMTP id s10-v6mr2719276pgd.326.1533214993287; Thu, 02 Aug 2018 06:03:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533214993; cv=none; d=google.com; s=arc-20160816; b=OmWQCnxNQMMQvpmGC/zqrfer/ixLSedvHCtw/+wf/4/eTQ5Oj7FDUZwWDy/r+Pn1s2 n4lNO25FJzSJvdogfpinUZDUh1ukIluMNE1dFICR2Y+7p5vT3qQGQLoPuxpOfTL6JAUM w3W4f/tVcjSJg6yj8s+2A1+IItF/QKrkm5dJHcsWa2FMGtGtkWE/bygM1BO1i7kvk9xJ Iuj+JjJ6kXHAl8FS/hM2gpz8rMeQ2LaCfgMQCWvNm5IQDmMvl8mUxMQ2RKSeC6XTaT/9 Xwzrb0Vdxb/amB6XfPmSu1/faEqSpzMcfUmIfD1KpRzaBKtCiXq4Vud2M3XjdDwtCCSF njBQ== 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=cgF9JAIBDi6u6MOBEHQHr5JIXJo5NdSPo0fX4sx0fyA=; b=zuxFLR1TBA4RYjq5b9QAAhKAWshvKyjclAeLRiR6Hucjoiqxocdc0HDbbsq7oPWwjK yNGKf1GUkKlHBjwYS2HOx8ps20XVssUVrcruiErXnwynl/Kt3+PaDp604LFSMGhtM74S Lv8HkMspuhDRuJuYqrbLSlVYPNL02Qp7sSFO1sRG89MmURJhWPHGWAiNlpnAFhzGnIGD Y3kvxTJ0XFeR8ygNeBfa/ZkYULwJrLlPzhh8Qr0OAUBIb+iAKoGRbryHnj23q9PmD91N X1ULPsgabpuYDrZCWTIYZG5dlIW/Jn5UHfaeknq8n/GJq0vDs3xdAUqJsnv04fTelcji WcLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KIeyQTFk; 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 v10-v6si1786874pfe.173.2018.08.02.06.02.58; Thu, 02 Aug 2018 06:03:13 -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=KIeyQTFk; 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 S2387478AbeHBOwf (ORCPT + 99 others); Thu, 2 Aug 2018 10:52:35 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:45415 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387454AbeHBOwf (ORCPT ); Thu, 2 Aug 2018 10:52:35 -0400 Received: by mail-ed1-f67.google.com with SMTP id s16-v6so906410edq.12; Thu, 02 Aug 2018 06:01:28 -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=cgF9JAIBDi6u6MOBEHQHr5JIXJo5NdSPo0fX4sx0fyA=; b=KIeyQTFktuS3ZFSQ7dn7fZ7nI9Bx4EQBfV0YSKp4ue2oimVRNtR7g1BO4IXxJzFTK/ 3L1nCwklaMoxztC75jZxMurQ/MJqETPAhIkIPJRNL17WilPgeWA7sazAMXe5d88cRuYU Dul+9sgjGv75bp0wjILcEIO8Qauk/Wm+7k2Ifm5x/gakOvvIFnhDmENZdvlQrz/KwdpC uXEBegbb1PptFZmhBVme8cdM454q2k6Fl3ARlG8gHWk6/2o/WCYXvl/aezBy7Mumv0J5 xug0ebxVjKNfAco4+1vUciotAjVm5Y/wW8LgJsQi5ACZyU2fyGQXXIVHI30haLYLoTR9 3tew== 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=cgF9JAIBDi6u6MOBEHQHr5JIXJo5NdSPo0fX4sx0fyA=; b=o+4iJjvlRgN4649Tqk9b3oI05XTTRMlHWKDtZKhDypsQ2ZdvodKl29AsxGIi+okXwG CZ70zGuF2m3LuGhXNnpYwlFWRkA+GZgHcIpdzWYTdhEY5DzIYfTv8Qm4+pYAUdd1kdB7 nLNcPeRT0TVqS4NxTdhntxSMqig4N+4vueKmMGx6hAN74dHkFT0vX1pJj1QETE3wj9Cx dkBpjXd4lklV5Ymglvqo0/sFdlYuFitxEs2ZHacaDoCZXtEAYP9NfJsS5j/KMVqbQ02r CVEx1/gzN62+BDx5g3YeCaHmn7Lsj78AXOsNAmQLp8lVSKaygLltuoiTCosKU+jG61pt 3MlA== X-Gm-Message-State: AOUpUlG6NK5pkI13lJlO0wNWNgJmtySmpoNQadv/gJxAKuqZPaGpX9eT kFl8AI/85uT1mJV7k0akKD8= X-Received: by 2002:a50:8b88:: with SMTP id m8-v6mr3262989edm.165.1533214887553; Thu, 02 Aug 2018 06:01:27 -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 b41-v6sm1236098eda.38.2018.08.02.06.01.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Aug 2018 06:01:26 -0700 (PDT) From: Dmitry Osipenko To: Linus Walleij Cc: Thierry Reding , Jonathan Hunter , Stefan Agner , Marcel Ziswiler , linux-tegra@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/2] pinctrl: tegra: Move drivers registration to arch_init level Date: Thu, 02 Aug 2018 16:01:24 +0300 Message-ID: <4576764.PLucfz68jK@dimapc> In-Reply-To: <20180802111144.12512-1-digetx@gmail.com> References: <20180802111144.12512-1-digetx@gmail.com> 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 Thursday, 2 August 2018 14:11:43 MSK Dmitry Osipenko wrote: > There is a bug in regards to deferred probing within the drivers core > that causes GPIO-driver to suspend after its users. The bug appears if I meant "before its users", of course. If the rest of the patches is fine, please let me know if re-sending is needed or you'll correct the comment in place while applying. > GPIO-driver probe is getting deferred, which happens after introducing > dependency on PINCTRL-driver for the GPIO-driver by defining "gpio-ranges" > property in device-tree. The bug in the drivers core is old (more than 4 > years now) and is well known, unfortunately there is no easy fix for it. > The good news is that we can workaround the deferred probe issue by > changing GPIO / PINCTRL drivers registration order and hence by moving > PINCTRL driver registration to the arch_init level and GPIO to the > subsys_init. > > Signed-off-by: Dmitry Osipenko