Thread (10 messages) flat view 10 messages, 7 authors, 2018-02-09

Re: [kernel] powerpc/pci: Fix broken INTx configuration via OF

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2018-02-09 05:34:08

Alexey Kardashevskiy [off-list ref] writes:
On 09/02/18 15:00, Michael Ellerman wrote:
quoted
On Thu, 2018-02-08 at 05:33:54 UTC, Alexey Kardashevskiy wrote:
quoted
Commit 59f47eff03a0 ("powerpc/pci: Use of_irq_parse_and_map_pci() helper")
correctly states that of_irq_parse_and_map_pci() does the same thing as
of_irq_parse_pci() does as it simply calls
of_irq_parse_pci() and irq_create_of_mapping().

However of_irq_parse_and_map_pci() not only returns 0 for success and
negative value for an error but also a positive virq value from
irq_create_of_mapping() which the mentioned commit ignores and
INTx config fails.

This fixes the of_irq_parse_and_map_pci() return value handling.

Fixes: 59f47eff03a0 "powerpc/pci: Use of_irq_parse_and_map_pci() helper"
Signed-off-by: Alexey Kardashevskiy <redacted>
Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/560c0f978155282e36f33d21b2aeae

there is a v2, this one is not 100% correct
Yeah I just saw, I'll back this out.

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help