Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp720928imm; Fri, 3 Aug 2018 10:20:04 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd9tO4KIS1zV2g29niKxxFUZHKQCqbJZfxIKQiAryGsrBFeoHyryJC2016tJaVIywqb0BcD X-Received: by 2002:aa7:860b:: with SMTP id p11-v6mr5412429pfn.247.1533316804456; Fri, 03 Aug 2018 10:20:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533316804; cv=none; d=google.com; s=arc-20160816; b=wS+RVSnm0WxkIm4oH1+Uu6aad1+900359ZAYWXAFsTuy853c1rTaYMNxTFugzOETH0 TOEEWF1PzYcsai7/quYcRSGeBEphrCxJOtuCk00gYc5lPMSXlkwUiamcANdxZK1MpnZu PFdaf5kkKNZD95vFwHfI8E2X8RtocfvaDljLixvIHTXZfbd20AVnV8c/zF4QWa792kTv d1hd+8llFVChoHzv9HKVIL5aKnatevAcUXEsPOqzEhIlWCQ718mLgxDFLKZXXvrFtnWp z7V4hXUYEC2n7t8H72i9/nB4aFSvb33urKRIbxFj3gwmyN0VA9jHI+uByIqn5p23RNtm K9mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=Br4uW5Mao84Evly/kpK73fkEMe7+xTtOWTzc1bakSbs=; b=i+A8czhvOFO89WnFan8q+WP3dzLSW8U1bO4X3i0+/zdeQzrkH7Nale16qILKV02d85 XkNjyHGtu3LXqo0hg7cyKlk+tHrTdWT2Qtv6RgbYRFvryhgqE1S34v20lAbpygWyLuoS NaXEIc0LH9SajX0/H2BhRA/3zFI1u1RO4Ho3O6eAT92Mdiy5HQhRLHAYdvgxprCbr6u0 SCkv5c+qkCjloQiownDMG7JGqDrdB5E9OfDDR9de4JeB2CyaJ8CfaV4wUAJQxSLGBN4U S5Q09IdqskPK6tAuw8s4b1M+tTRSF8RhMP/gN/N3ze6EK/M8i4yXnezzDaA7GSKke+ua SrnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ORxNka3n; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f3-v6si4070473pld.366.2018.08.03.10.19.49; Fri, 03 Aug 2018 10:20:04 -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=@linaro.org header.s=google header.b=ORxNka3n; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728300AbeHCTQI (ORCPT + 99 others); Fri, 3 Aug 2018 15:16:08 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:38913 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727843AbeHCTQI (ORCPT ); Fri, 3 Aug 2018 15:16:08 -0400 Received: by mail-io0-f195.google.com with SMTP id o22-v6so5593762ioh.6 for ; Fri, 03 Aug 2018 10:18:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Br4uW5Mao84Evly/kpK73fkEMe7+xTtOWTzc1bakSbs=; b=ORxNka3n32jepSckn0ZeMFUSZUjarKB+1QvSnBHHjSV6Jaizbcj8vTT/pvPyjj4cYg Suv5+qAq0kCFsFNk4WJEHXHH0WLEZ+w9oFT26bdFrrE3YXNOij4jOV3GGofLaSU2etuz 7XmTJMQDVjrnfekgcgSNZoR06GF6vOa9irSNI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Br4uW5Mao84Evly/kpK73fkEMe7+xTtOWTzc1bakSbs=; b=RpCeM8RSX1cISgAm3LsvkXqTk12Uz0eLgBpa/7NNLE74L5gi5rL4NJzdWUD4GWU/i7 Bz6hfpnTlvvLb8vAx1y3RMhA6zMEmt3gNKsrhZUIKwJh6aYLUytlCezowFkmoGZU2mna 4Czu2NePydL+c9FghC70yT8uQPXIvrL9GCivO6Leq4sW36Gw9JA6QTYKpIXwEGGZYl0j N8odPUaD5HZwuEOrncDf+RLIFgF+QzxV+qsynUaO6qwuOmfyotSYwF3qhmJf0WRS6JnS SPHPXBd+e78sJYvH08t7F/udBitSiTcrxKmcRriLi+OQ1n8BYio5L59t53rHBt2Xq1fG T7Gg== X-Gm-Message-State: AOUpUlGdnP2ho/LdwO5yY4qu+pruULb106/Wf1JYkFP/muW1sLqfp3dX jCMg/TCFXz09xJQAAZoXVCvUT5goqF1iLR5eQ0I/ePPT X-Received: by 2002:a6b:c3c4:: with SMTP id t187-v6mr6721575iof.304.1533316735196; Fri, 03 Aug 2018 10:18:55 -0700 (PDT) MIME-Version: 1.0 References: <20180802111144.12512-1-digetx@gmail.com> In-Reply-To: <20180802111144.12512-1-digetx@gmail.com> From: Linus Walleij Date: Fri, 3 Aug 2018 19:18:43 +0200 Message-ID: Subject: Re: [PATCH v1 1/2] pinctrl: tegra: Move drivers registration to arch_init level To: Dmitry Osipenko Cc: "thierry.reding@gmail.com" , Jon Hunter , Stefan Agner , Marcel Ziswiler , linux-tegra@vger.kernel.org, "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 2, 2018 at 1:12 PM 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 > 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 Patch applied with Stefan's ACK. Yours, Linus Walleij