Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp81661ybt; Tue, 30 Jun 2020 15:17:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynSH7gQll/4g1hIOeZ0Ke016tF3XUdkL/a8u4CQyEPaS8bpYsVQusHGJ9+5XbLbjWk50Cs X-Received: by 2002:a50:9b5d:: with SMTP id a29mr23114756edj.68.1593555073736; Tue, 30 Jun 2020 15:11:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593555073; cv=none; d=google.com; s=arc-20160816; b=0kDbpL0u8OpMP5OW4QY0GyEDTYm879F/rI/NGvmMi5dM2o7OzLVpMoVb9cpNztj6kj a+c5Ykb8YKtJ3x0w8gJdTLsvsoaQeTkkyuFzQWV0jJkre7xQcsF5c8HwLAp12y1cF+pC u7nslmnAs6HBr7BXmD0jBhlkHxBwqAWvMcqAVy0a4z5JFurZQXD1CMSYM9RMx9hgBrvA FYO4UH9TzgOJpk702zX+1OrIWLeZSHVuhB/RzWDNvFdWYLem/B/EfBOI9IjjgGgoVlf8 TCWcQCl9HUrx6K+ufxhJfAXbsUvBkQ246RBKeNQLJsikDLGk9zD0IDpxnAWfWiw5LO2S RPWg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=h7TDtlGCpE+9NIF4eS7MT43wTOS1FJJy0Om2MAQ0voA=; b=Lq30vm10b1IqRgF0RFmHccnQKGq4/W9UAGr6IP+dXX9JYvn5jI3kqJPkGh6bS7MU6+ Tn/jDzoU1z6hHVtPkEqJL6nW9LEuZ1Jjj7nF57K/HbfW5vsf3qrjxhwOggLoSMdQRvCl 7XF81bjTMcLMGIwvL01zpHei/RP9AwcNPeDXZLEx32jL2zmqqr+4NiOlTo2Ozo701YxY gdPX+Xo3nEjAUrwhECSEnvHbOWzHQ88RdZ+wsaTzQ+d3TbRANnFFSpGY6SvhLJkrI0Pg JulUCWmXr0M5t6QD9eC91OA2UALdouNH6A1JtUpCmfzXaMHej1reQWjS8tMp17o5jBjz WDBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=ZJWhYNW8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm5si3190763ejc.439.2020.06.30.15.10.49; Tue, 30 Jun 2020 15:11:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=ZJWhYNW8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726146AbgF3WIP (ORCPT + 99 others); Tue, 30 Jun 2020 18:08:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726074AbgF3WIO (ORCPT ); Tue, 30 Jun 2020 18:08:14 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53E8AC03E979 for ; Tue, 30 Jun 2020 15:08:14 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id l17so20265901wmj.0 for ; Tue, 30 Jun 2020 15:08:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=h7TDtlGCpE+9NIF4eS7MT43wTOS1FJJy0Om2MAQ0voA=; b=ZJWhYNW80aP0UjLF2kYUMHvCiLGwyo9hylEay2xarposLoORgE2Ch0QRE90zfu7d4C HcWcdBfALIPOnUa82U8dsC9oj0/Qs7AQ4dWDhzRlqFbMQLj9OshNPw3e431Bqr9DV47R 1dE/paxnDLFlc100OSaSsF8nYGx8mKkaMx3kM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=h7TDtlGCpE+9NIF4eS7MT43wTOS1FJJy0Om2MAQ0voA=; b=Q8CE8h+6dUqhVomsAz5VKovVnAjJaXxgU9c/hm6tSowzp9dzyHTFiovYRBk3B/lDox s4xf31HSN5pMmmukje93IXbqEV4RATjMScDddKcBr3ublgavHW+mCZ2/iriKhN6hBV1N kQaKjXHaHPrpJikEQUNf3NKupvyTR1eXXexGWYiQCncacOMFao87F57BrNbXSaShuuy6 f9MjGSY/7svvRULanzlB80iPIEDZXjz6Tc3mNaNzT21AfgLYrqbfMYX6vJNROVJqtnJP u800eLdVS9flTXKITvs3hAsLT5Z5vkNCWOANx+exhE2rE19ROEc+P6mN3sy1nGGgYUVo TO8w== X-Gm-Message-State: AOAM5312iaZAq7cUuNBxE9YBzxD/spLW+XjsnD+mbMxy5w0DxVyiynFS oGNiUX/Dx3lNvKPaI58Rph3iUfzQdBrvAdp8xAdweTKrkOauMqGPCwHld/1daBSjjXpzsPQpKXJ fvMnD1xauWb6xBj71ArC3eD6cgW28ENIA6limtCnBkRnYwkq8km7FYalSwTIIZZiME+GazSO4UI Oc X-Received: by 2002:a1c:24c6:: with SMTP id k189mr24732162wmk.9.1593554892402; Tue, 30 Jun 2020 15:08:12 -0700 (PDT) Received: from [10.230.182.181] ([192.19.224.250]) by smtp.gmail.com with ESMTPSA id e8sm5092967wrp.26.2020.06.30.15.08.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Jun 2020 15:08:11 -0700 (PDT) Subject: Re: [PATCH] pinctrl: initialise nsp-mux earlier. To: Mark Tomlinson , rjui@broadcom.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, linus.walleij@linaro.org, linux-gpio@vger.kernel.org Cc: linux-kernel@vger.kernel.org References: <20200630212958.24030-1-mark.tomlinson@alliedtelesis.co.nz> From: Ray Jui Message-ID: Date: Tue, 30 Jun 2020 15:08:05 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200630212958.24030-1-mark.tomlinson@alliedtelesis.co.nz> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mark, On 6/30/2020 2:29 PM, Mark Tomlinson wrote: > The GPIO specified in the DTS file references the pinctrl, which is > specified after the GPIO. If the GPIO is initialised before pinctrl, May I know which GPIO driver you are referring to on NSP? Both the iProc GPIO driver and the NSP GPIO driver are initialized at the level of 'arch_initcall_sync', which is supposed to be after 'arch_initcall' used here in the pinmux driver > an error message for the -EPROBE_DEFER ends up in the kernel log. Even > though the probe will succeed when the driver is re-initialised, the > error can be scary to end users. To fix this, change the time the Scary to end users? I don't know about that. -EPROBE_DEFER was introduced exactly for this purpose. Perhaps users need to learn what -EPROBE_DEFER errno means? > pinctrl is probed, so that it is always before the GPIO driver. > > Signed-off-by: Mark Tomlinson > --- > drivers/pinctrl/bcm/pinctrl-nsp-mux.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pinctrl/bcm/pinctrl-nsp-mux.c b/drivers/pinctrl/bcm/pinctrl-nsp-mux.c > index f1d60a708815..7586949f83ec 100644 > --- a/drivers/pinctrl/bcm/pinctrl-nsp-mux.c > +++ b/drivers/pinctrl/bcm/pinctrl-nsp-mux.c > @@ -639,4 +639,4 @@ static int __init nsp_pinmux_init(void) > { > return platform_driver_register(&nsp_pinmux_driver); > } > -arch_initcall(nsp_pinmux_init); > +postcore_initcall(nsp_pinmux_init); >