From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932572AbcAYO2j (ORCPT ); Mon, 25 Jan 2016 09:28:39 -0500 Received: from smtp08.smtpout.orange.fr ([80.12.242.130]:24925 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932224AbcAYO2g convert rfc822-to-8bit (ORCPT ); Mon, 25 Jan 2016 09:28:36 -0500 X-ME-Helo: belgarion X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Mon, 25 Jan 2016 15:28:35 +0100 X-ME-IP: 86.199.70.65 From: Robert Jarzmik To: Marcel Ziswiler Cc: Linus Walleij , Alexandre Courbot , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [REGRESSION] gpio: pxa: change initcall level second attempt References: <1453598314.3178.12.camel@ziswiler.com> X-URL: http://belgarath.falguerolles.org/ Date: Mon, 25 Jan 2016 15:28:33 +0100 Message-ID: <87oac9ag32.fsf@belgarion.home> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Marcel Ziswiler writes: > Hi Robert > > I tried latest next-20160122 on Colibri PXA270 with a previously > working device tree and got the following DM9000 Ethernet driver issue: > > [    1.062495] dm9000 8000000.ethernet: insufficient resources > [    1.068439] dm9000 8000000.ethernet: not found (-2). > [    1.073451] dm9000: probe of 8000000.ethernet failed with error -2 > > Digging deeper I debugged it to a missing interrupt ressource. A > subsequent git bisect blamed your patch changing the initcall level and > indeed just reverting that made it all work again. > > I then also noticed the following message upon boot in the failing case > which is probably related: > > [    0.175995] irq: no irq domain found for /pxabus/gpio@40e00000 ! > > Have you seen this as well or do you know how exactly that should be > worked around? Hi Marcel, I haven't seen that before on my devicetree boards, I will try this evening on top of next-20160125. Could you activate the debug logs in drivers/of/irq.c please, and send me privately your boot dmesg ? And I'd like to see your board .dts file and your .config also, to compare with mine for the mioa701. I think in your dm9000 case we have this callstack : - of_irq_get() of_irq_parse_one() => fails, for an unknown reason to me => I would have expected it return 0 => the following irq_find_host() would return -EPROBE_DEFER, that's what I'd expect irq_create_of_mapping() irq_create_fwspec_mapping() => error message What is probable is that gpio-pxa was not probed yet, and this triggers the error. What I don't understand is why you don't end up with -EPROBE_DEFER, that's why I'd like to have your logs. Cheers. -- Robert