From patchwork Mon Aug 7 11:01:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 9885039 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4047660363 for ; Mon, 7 Aug 2017 11:04:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3328D284D1 for ; Mon, 7 Aug 2017 11:04:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 27F5328583; Mon, 7 Aug 2017 11:04:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B70D2284D1 for ; Mon, 7 Aug 2017 11:04:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=h7YJMI3NDbKPio5t6ywwzpB5VIVjHi2qF3297xbDFJc=; b=FZ0XGcMU/9+wVuuU1IUG87Q5ei 8ybjNzxKMjmjvFk7AYTJ7QepCCY4sY4SVTxuv8Q1wcYy9osAJlIkBPC1RekWA36UOJlgc3lEteiqZ 1G88ue5QKRfyEkr8/UbvIMRRxv1CtguQ3QFuG00qze/U28eOd6aitXu/5tcJCdKyklEdxwMJlzDUP gCu3DEr+iq9nY84HzH3ILVG/wM0JnFmPAQaTghZdjjKOUVDYYA0PzEwL5wcKAzq47khIEEzh+djqH /Bxncqgtm/nzkfglfPnHogpmugbjIjPkHrtUyV8RfHYe5mrWaqsHG5w/nUFzs5Qg93PlVP4Tx3yx4 QXUTOxfA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1defpM-0002qz-VJ; Mon, 07 Aug 2017 11:04:05 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1defnm-00011V-7a for linux-arm-kernel@lists.infradead.org; Mon, 07 Aug 2017 11:02:30 +0000 Received: by mail-wm0-x242.google.com with SMTP id d40so602393wma.3 for ; Mon, 07 Aug 2017 04:02:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=ADh2/sbrWg87AU37cbuq+BMG731P0x7NaTozX9aBvlk=; b=MxGzcZkPi9BaE5oXJ6kqgUgb4yAzlHHZorJ3V/KpYPoQz2TwabVErdKoqhmhSqdPH8 ztYO0eg/bIeIc5DMAffcPmrdCauRrmGqHM2gTEWdGhbkzifSY9V+eGX3ftOWlj/Ca6jB HJ7NEi5UYfNgb5ilQE2c4scrPaNZgvU11l38yXwcuTRs4MxKzUABo0qSNvcaGXbhkRmu MtacVFu/lflYvhnpzZvLw+/mkT0FUx6uIkoy6VVG6A6actnTBdpo8DJ/mpLIB6XX1sz6 cNGEvlhSIA2qiG8gUwezbibnkWyvlYwMgwuxcviyg8AIoHXcGog0DTw0H+E45thld6BE TeJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references; bh=ADh2/sbrWg87AU37cbuq+BMG731P0x7NaTozX9aBvlk=; b=fJA8H/7IfL/Ep51od0vBnNGLD7sE3LLb/NWfwuSAQ5HYpX9ROPIu/19mS3YKfpKx6A U8xzDHZhtvjfjPwXJxFwpZ8aRYxpHnwJ34yHNIiKR3LkTWO7yJunJ280zm8MxpBs4nhx gzpX9bQb3WeGb0+jj5GpnWoydHAoD5K+lONHcfrp1r8BDEo7fHQ3cos8pL6BFJRpwiO3 uGzh5PHy8ptFD2OWZNFnr5D22j/FfAl4/4fjdjg2b58fooeiEMjyDxjPbuPYJCXkHnFw d02u8RoKPw+AJ6DOok+gbtDf5I8V0IQocMDol9Cwr0JxwlkFiaU51Ecpz+V3QSoNh69o 62Cw== X-Gm-Message-State: AHYfb5iSvCvAimlPYjtxRl9jQBmuK0TJbVHGqRcARyka4X8O9wAi2kLb 6DKY0Pp8cnlaa++F X-Received: by 10.28.34.130 with SMTP id i124mr448576wmi.135.1502103727725; Mon, 07 Aug 2017 04:02:07 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id t66sm9833563wrc.36.2017.08.07.04.02.06 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 07 Aug 2017 04:02:07 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu Subject: [PATCH 3/8] gpio: zynq: Shift zynq_gpio_init() to subsys_initcall level Date: Mon, 7 Aug 2017 13:01:56 +0200 Message-Id: X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170807_040226_507418_055C0437 X-CRM114-Status: GOOD ( 10.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Josh Cartwright , Peter Crosthwaite , Nava kishore Manne , Linus Walleij , linux-gpio@vger.kernel.org, Rob Herring , linux-arm-kernel@lists.infradead.org, Steffen Trumtrar , =?UTF-8?q?S=C3=B6ren=20Brinkmann?= MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Nava kishore Manne In general situation on-SoC GPIO controller drivers should be probed after pinctrl/pinmux controller driver, because on-SoC GPIOs utilize a pin/pad as a resource provided and controlled by pinctrl subsystem. GPIO must come after pinctrl as gpios may need to mux pins....etc Looking at Xilinx SoC series pinctrl drivers, zynq*_pinctrl_init() functions are called at arch_initcall init levels, so the change of initcall level for gpio-zynq driver from postcore_initcall to subsys_initcall level is sufficient. Also note that the most of GPIO controller drivers settled at subsys_initcall level. If pinctrl subsystem manages pads with GPIO functions, the change is needed to avoid unwanted driver probe deferrals during kernel boot. Signed-off-by: Nava kishore Manne Signed-off-by: Michal Simek --- drivers/gpio/gpio-zynq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-zynq.c b/drivers/gpio/gpio-zynq.c index 5198fa6e016a..bcf11f0ef5c3 100644 --- a/drivers/gpio/gpio-zynq.c +++ b/drivers/gpio/gpio-zynq.c @@ -929,7 +929,7 @@ static int __init zynq_gpio_init(void) { return platform_driver_register(&zynq_gpio_driver); } -postcore_initcall(zynq_gpio_init); +subsys_initcall(zynq_gpio_init); static void __exit zynq_gpio_exit(void) {