From: grygorii.strashko@ti.com (Grygorii Strashko)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v1] of/irq: do irq resolution in platform_get_irq_byname()
Date: Wed, 28 May 2014 12:49:01 +0300 [thread overview]
Message-ID: <5385B10D.3020207@ti.com> (raw)
In-Reply-To: <CAL_JsqLm3wfVS+au+JUbhBhxz=LuVpepH6GxabCQhPowhbw77g@mail.gmail.com>
Hi All,
On 05/28/2014 03:37 AM, Rob Herring wrote:
> On Tue, May 27, 2014 at 3:23 PM, Kevin Hilman <khilman@linaro.org> wrote:
>> On Fri, May 23, 2014 at 1:03 AM, Grant Likely <grant.likely@linaro.org> wrote:
>>> On Tue, 20 May 2014 13:42:02 +0300, Grygorii Strashko <grygorii.strashko@ti.com> wrote:
>>>> The commit 9ec36cafe43bf835f8f29273597a5b0cbc8267ef
>>>> "of/irq: do irq resolution in platform_get_irq" from Rob Herring -
>>>> moves resolving of the interrupt resources in platform_get_irq().
>>>> But this solution isn't complete because platform_get_irq_byname()
>>>> need to be modified the same way.
>>>>
>>>> Hence, fix it by adding interrupt resolution code at the
>>>> platform_get_irq_byname() function too.
>>>>
>>>> Cc: Russell King <linux@arm.linux.org.uk>
>>>> Cc: Rob Herring <robh@kernel.org>
>>>> Cc: Tony Lindgren <tony@atomide.com>
>>>> Cc: Grant Likely <grant.likely@linaro.org>
>>>> Cc: Thierry Reding <thierry.reding@gmail.com>
>>>>
>>>> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
>>>
>>> Applied, Thanks.
>>
>> As of next-20150526, the ST u8500 Snowball board has been failing boot
>> in linux-next, and was bisected down to this patch (commit
>> ad69674e73a1 in -next). Full boot failure attached.
>>
>> I have not dug any deeper, but can confirm that next-20140526 with
>> this patch reverted boots again on the snowball board.
>
> There's a patch on the list which fixes it. The problem is stmmac
> driver was expecting only one error code.
>
Seems root cause of problem is hidden inside MFD ab8500-core.c :(
And it's related to simulations supporting of DT and non-DT devices.
For example:
----- Log file contains lines
[ 0.919677] ab8500-debug ab8500-debug.0: First irq not found, err -22
[ 0.926147] ab8500-debug: probe of ab8500-debug.0 failed with error -22
DT definition of ab8500-debug is specified as following (ste-dbx5x0.dtsi):
ab8500-debugfs {
compatible = "stericsson,ab8500-debug";
};
In code ab8500-debug is created using mfd_add_devices() API which fills
device's resources manually, but, in same time, It links ab8500-debug device
to DT node because MFD cell has of_compatible property set to:
.of_compatible = "stericsson,ab8500-debug",
Problem: both new versions of APIs platform_get_irq_byname() and
platform_get_irq() will fail to get IRQ.
Another problem is:
[ 1.038909] abx5x0-usb ab8500-usb.0: Link status irq not found
- looking on it now - it should work
Best regards,
-grygorii
WARNING: multiple messages have this Message-ID (diff)
From: Grygorii Strashko <grygorii.strashko@ti.com>
To: Rob Herring <robh@kernel.org>, Kevin Hilman <khilman@linaro.org>
Cc: Grant Likely <grant.likely@linaro.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Rob Herring <robh+dt@kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
Russell King <linux@arm.linux.org.uk>,
Tony Lindgren <tony@atomide.com>,
LKML <linux-kernel@vger.kernel.org>,
Thierry Reding <thierry.reding@gmail.com>,
Santosh Shilimkar <santosh.shilimkar@ti.com>,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
Lee Jones <lee.jones@linaro.org>,
Linus Walleij <linus.walleij@linaro.org>,
Olof Johansson <olof@lixom.net>
Subject: Re: [PATCH v1] of/irq: do irq resolution in platform_get_irq_byname()
Date: Wed, 28 May 2014 12:49:01 +0300 [thread overview]
Message-ID: <5385B10D.3020207@ti.com> (raw)
In-Reply-To: <CAL_JsqLm3wfVS+au+JUbhBhxz=LuVpepH6GxabCQhPowhbw77g@mail.gmail.com>
Hi All,
On 05/28/2014 03:37 AM, Rob Herring wrote:
> On Tue, May 27, 2014 at 3:23 PM, Kevin Hilman <khilman@linaro.org> wrote:
>> On Fri, May 23, 2014 at 1:03 AM, Grant Likely <grant.likely@linaro.org> wrote:
>>> On Tue, 20 May 2014 13:42:02 +0300, Grygorii Strashko <grygorii.strashko@ti.com> wrote:
>>>> The commit 9ec36cafe43bf835f8f29273597a5b0cbc8267ef
>>>> "of/irq: do irq resolution in platform_get_irq" from Rob Herring -
>>>> moves resolving of the interrupt resources in platform_get_irq().
>>>> But this solution isn't complete because platform_get_irq_byname()
>>>> need to be modified the same way.
>>>>
>>>> Hence, fix it by adding interrupt resolution code at the
>>>> platform_get_irq_byname() function too.
>>>>
>>>> Cc: Russell King <linux@arm.linux.org.uk>
>>>> Cc: Rob Herring <robh@kernel.org>
>>>> Cc: Tony Lindgren <tony@atomide.com>
>>>> Cc: Grant Likely <grant.likely@linaro.org>
>>>> Cc: Thierry Reding <thierry.reding@gmail.com>
>>>>
>>>> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
>>>
>>> Applied, Thanks.
>>
>> As of next-20150526, the ST u8500 Snowball board has been failing boot
>> in linux-next, and was bisected down to this patch (commit
>> ad69674e73a1 in -next). Full boot failure attached.
>>
>> I have not dug any deeper, but can confirm that next-20140526 with
>> this patch reverted boots again on the snowball board.
>
> There's a patch on the list which fixes it. The problem is stmmac
> driver was expecting only one error code.
>
Seems root cause of problem is hidden inside MFD ab8500-core.c :(
And it's related to simulations supporting of DT and non-DT devices.
For example:
----- Log file contains lines
[ 0.919677] ab8500-debug ab8500-debug.0: First irq not found, err -22
[ 0.926147] ab8500-debug: probe of ab8500-debug.0 failed with error -22
DT definition of ab8500-debug is specified as following (ste-dbx5x0.dtsi):
ab8500-debugfs {
compatible = "stericsson,ab8500-debug";
};
In code ab8500-debug is created using mfd_add_devices() API which fills
device's resources manually, but, in same time, It links ab8500-debug device
to DT node because MFD cell has of_compatible property set to:
.of_compatible = "stericsson,ab8500-debug",
Problem: both new versions of APIs platform_get_irq_byname() and
platform_get_irq() will fail to get IRQ.
Another problem is:
[ 1.038909] abx5x0-usb ab8500-usb.0: Link status irq not found
- looking on it now - it should work
Best regards,
-grygorii
next prev parent reply other threads:[~2014-05-28 9:49 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-20 10:42 [PATCH v1] of/irq: do irq resolution in platform_get_irq_byname() Grygorii Strashko
2014-05-20 10:42 ` Grygorii Strashko
2014-05-20 10:42 ` Grygorii Strashko
2014-05-23 8:03 ` Grant Likely
2014-05-23 8:03 ` Grant Likely
2014-05-23 8:03 ` Grant Likely
2014-05-27 20:23 ` Kevin Hilman
2014-05-27 20:23 ` Kevin Hilman
2014-05-27 20:23 ` Kevin Hilman
2014-05-28 0:37 ` Rob Herring
2014-05-28 0:37 ` Rob Herring
2014-05-28 7:18 ` Lee Jones
2014-05-28 7:18 ` Lee Jones
2014-05-28 7:18 ` Lee Jones
2014-05-28 8:25 ` Linus Walleij
2014-05-28 8:25 ` Linus Walleij
2014-05-28 8:25 ` Linus Walleij
2014-05-28 8:49 ` Chen-Yu Tsai
2014-05-28 8:49 ` Chen-Yu Tsai
2014-05-28 9:03 ` Grant Likely
2014-05-28 9:03 ` Grant Likely
2014-05-28 9:03 ` Grant Likely
2014-05-28 10:07 ` Grygorii Strashko
2014-05-28 10:07 ` Grygorii Strashko
2014-05-28 10:07 ` Grygorii Strashko
2014-06-02 14:48 ` Kevin Hilman
2014-06-02 14:48 ` Kevin Hilman
2014-06-02 14:48 ` Kevin Hilman
2014-06-03 9:20 ` Grant Likely
2014-06-03 9:20 ` Grant Likely
2014-06-03 9:20 ` Grant Likely
2014-06-03 11:12 ` Grygorii Strashko
2014-06-03 11:12 ` Grygorii Strashko
2014-06-03 11:12 ` Grygorii Strashko
2014-06-11 14:04 ` Linus Walleij
2014-06-11 14:04 ` Linus Walleij
2014-06-11 14:04 ` Linus Walleij
2014-05-28 8:39 ` Grant Likely
2014-05-28 8:39 ` Grant Likely
2014-05-28 8:39 ` Grant Likely
2014-05-28 9:49 ` Grygorii Strashko [this message]
2014-05-28 9:49 ` Grygorii Strashko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5385B10D.3020207@ti.com \
--to=grygorii.strashko@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.