Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp74361ybt; Tue, 30 Jun 2020 15:08:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6LwLc8JNw2/Cg4RzdG5YKQa6pc3mUUg/Jigz+4BdY5Vlhr9Th1F82CMXBqIJ5d6ZSlIej X-Received: by 2002:aa7:cf94:: with SMTP id z20mr26119011edx.82.1593554459529; Tue, 30 Jun 2020 15:00:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593554459; cv=none; d=google.com; s=arc-20160816; b=aGL3IFyrVq5RXnkhvWhr7t97O09ZmTtyYLKvU9PDr3KoFDZ8dH5jOlIrhjh3esV25J wSeYqKVnuqnCHsT38bBGUq1mps97meVZ1on2ZSJUB9ShmbvQNAdFuiuCdYiRR3fkAcPH /1+tEw40f5mQsZJap4tN6EN/sgRyQqOmR0Vn/pA7nKOQZfKxbDgi+04Y580GaMAVfE1D 2+V2jE88u9EInYNEjAY1ypN/dDD0A1Jp2quVknNMbvEIXOCVtzeDIJuT1QMRbNQBAnJB Zm+1gwNCoCd6UyPC1sI2Fr9c+pgu47LZWbasCDeAvLUoty7DxDgMV/aYt4m626H3h7Op WGRg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=a9s+V2nzli8tsrcb0f2+rV3tw5YwE41Dqit8SLbbkqE=; b=CO6pXVdAdYEfOOXEH7Qn9IIEhU9iD0Ft5KWkKhuIV6afasHZbEv/dolS9xKSA78g/5 iR9fkdctcqsQhEtnnkHrWt8FLzU8RLNVqlundLwe9wax1E0J+00C3MKDBu9d+h4N9hIV hA0TA6a2FKuScgbhKOPleYaeSZDe0K3w6XlofAWSU7Ye0mJaiXJULjCobRSs5Nogh3HI 3jHN/4ga5firQtF6KRXhgwLQ1IWliKAXUGa8IvXk6zIZF03Vn53NwnHflq9YgTVJNR/E DGMJcJDCaNHciRe1vsxcbqAV2MyWSpVnspJI1uH0zcUOtZmJuP8b1jFwVXdkxI28bZFO 7K7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=Ca7KOSLa; 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=NONE sp=NONE dis=NONE) header.from=alliedtelesis.co.nz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r8si2359507ejs.462.2020.06.30.15.00.36; Tue, 30 Jun 2020 15:00:59 -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=@alliedtelesis.co.nz header.s=mail181024 header.b=Ca7KOSLa; 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=NONE sp=NONE dis=NONE) header.from=alliedtelesis.co.nz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726151AbgF3VcA (ORCPT + 99 others); Tue, 30 Jun 2020 17:32:00 -0400 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]:45118 "EHLO gate2.alliedtelesis.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726285AbgF3VaK (ORCPT ); Tue, 30 Jun 2020 17:30:10 -0400 Received: from mmarshal3.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id E17508011F; Wed, 1 Jul 2020 09:30:06 +1200 (NZST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1593552606; bh=a9s+V2nzli8tsrcb0f2+rV3tw5YwE41Dqit8SLbbkqE=; h=From:To:Cc:Subject:Date; b=Ca7KOSLa8qcaM7G6uXP/Uf6OcU2/o107X/xBAUZuN7VCfORCIXCCKOGRmyBKkH06B PSijTfk35h8DoUScsrf6RBRQzV5VoAouAXyF5jSsk2TOspkWF6fFN5dXzbRzlsVPyk MAVlfRLd3tzRddhPTWHJqV8aARHBcYfsO+ER0jxTxSVPScgq+YojlCpPOviLc1/PhP N/gKzJHmzcQQ6P0StzYI4KKaW1mGxiS2sZ3Rv5LNXKH7jJCNZhio3Llx6EsvObUyC1 ZDT+zSHhzo00z/mOPJEhoYo364AxoW6GAguzY3EpedrcPcO/t6fMQbnOSfOcdHFuVe XP4P93b7DPyFg== Received: from smtp (Not Verified[10.32.16.33]) by mmarshal3.atlnz.lc with Trustwave SEG (v7,5,8,10121) id ; Wed, 01 Jul 2020 09:30:06 +1200 Received: from markto-dl.ws.atlnz.lc (markto-dl.ws.atlnz.lc [10.33.23.25]) by smtp (Postfix) with ESMTP id CC9E013EF9B; Wed, 1 Jul 2020 09:30:00 +1200 (NZST) Received: by markto-dl.ws.atlnz.lc (Postfix, from userid 1155) id D06D333E9BD; Wed, 1 Jul 2020 09:30:01 +1200 (NZST) From: Mark Tomlinson To: 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, Mark Tomlinson Subject: [PATCH] pinctrl: initialise nsp-mux earlier. Date: Wed, 1 Jul 2020 09:29:58 +1200 Message-Id: <20200630212958.24030-1-mark.tomlinson@alliedtelesis.co.nz> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable x-atlnz-ls: pat Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The GPIO specified in the DTS file references the pinctrl, which is specified after the GPIO. If the GPIO is initialised before pinctrl, 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 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); --=20 2.27.0