From patchwork Tue Nov 8 19:35:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 9418003 X-Patchwork-Delegate: geert@linux-m68k.org 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 EFB0560512 for ; Tue, 8 Nov 2016 19:35:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DFE28285E5 for ; Tue, 8 Nov 2016 19:35:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D30F728AE3; Tue, 8 Nov 2016 19:35:45 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0010F285E5 for ; Tue, 8 Nov 2016 19:35:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753882AbcKHTfo (ORCPT ); Tue, 8 Nov 2016 14:35:44 -0500 Received: from andre.telenet-ops.be ([195.130.132.53]:44090 "EHLO andre.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752945AbcKHTfn (ORCPT ); Tue, 8 Nov 2016 14:35:43 -0500 Received: from ayla.of.borg ([84.193.137.253]) by andre.telenet-ops.be with bizsmtp id 5Xbg1u00Q5UCtCs01XbgG5; Tue, 08 Nov 2016 20:35:41 +0100 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.82) (envelope-from ) id 1c4CBI-00034O-FC; Tue, 08 Nov 2016 20:35:40 +0100 Received: from geert by ramsan with local (Exim 4.82) (envelope-from ) id 1c4CBQ-000707-NW; Tue, 08 Nov 2016 20:35:48 +0100 From: Geert Uytterhoeven To: Thomas Gleixner , Jason Cooper , Marc Zyngier Cc: Florian Fainelli , Simon Horman , Magnus Damm , linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2] irqchip/renesas-irqc: Postpone driver initialization Date: Tue, 8 Nov 2016 20:35:47 +0100 Message-Id: <1478633747-26878-1-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 1.9.1 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Currently the renesas-irqc driver uses postcore_initcall(). However, the new CPG/MSSR driver uses subsys_initcall(). Hence the IRQC's probe will be deferred, which causes the Micrel Ethernet PHY to not find its interrupt on R-Car Gen2 and RZ/G, as the of_mdio subsystem does not support deferred probe yet. Replace postcore_initcall() by device_initcall() to work around this. Note that on R-Mobile APE6, where the PFC/GPIO combo uses the IRQC as its parent interrupt controller, this does cause a few additional probe deferrals (for SCIFA0, SD0, SD1, and MMC). But the affected drivers handle that fine. Signed-off-by: Geert Uytterhoeven Tested-by: Sergei Shtylyov --- v2: - Drop RFC state, - Add Tested-by, - Improved description. --- drivers/irqchip/irq-renesas-irqc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-renesas-irqc.c b/drivers/irqchip/irq-renesas-irqc.c index 52304b139aa46a60..992849e54d00ea77 100644 --- a/drivers/irqchip/irq-renesas-irqc.c +++ b/drivers/irqchip/irq-renesas-irqc.c @@ -295,7 +295,7 @@ static int __init irqc_init(void) { return platform_driver_register(&irqc_device_driver); } -postcore_initcall(irqc_init); +device_initcall(irqc_init); static void __exit irqc_exit(void) {