Re: [PATCH] powerpc: pseries: use irq_of_parse_and_map helper
From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2018-01-25 06:08:39
Also in:
lkml
From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2018-01-25 06:08:39
Also in:
lkml
Rob Herring [off-list ref] writes:
On Tue, Jan 23, 2018 at 12:53 AM, Michael Ellerman [off-list ref] wrote:quoted
Rob Herring [off-list ref] writes:quoted
Instead of calling both of_irq_parse_one and irq_create_of_mapping, call of_irq_parse_and_map instead which does the same thing. This gets us closer to making the former 2 functions static.
...
quoted
Are you trying to remove the low-level routines or is this just a cleanup?The former, but I'm not sure that will happen. There's a handful of others left, but they aren't simply a call to of_irq_parse_one and then irq_create_of_mapping.quoted
The patch below works, it loses the error handling if the interrupts property is corrupt/empty, but that's probably overly paranoid anyway.Not quite. Previously, it was silent if parsing failed. Only the mapping would give an error which would mean the interrupt parent had some error. Actually, we could use of_irq_get here to preserve the error handling. It will return error codes from parsing, 0 on mapping failure, or the Linux irq number. It adds an irq_find_host call for deferred probe, but that should be harmless. I'll respin it.
OK thanks. cheers