diff options
author | Linus Walleij | 2014-10-31 21:32:06 +0100 |
---|---|---|
committer | David S. Miller | 2014-11-01 17:04:20 -0400 |
commit | d52fdbb735c36a209f36a628d40ca9185b349ba7 (patch) | |
tree | 59055d87af4665d19e58d84d7130e390e6be0e50 /net/ipv4 | |
parent | 1db3ddff1602edf2390b7667dcbaa0f71512e3ea (diff) |
smc91x: retrieve IRQ and trigger flags in a modern way
The SMC91x is written to explicitly look up the IRQ resource
from the platform device and extract the IRQ and flags, however
the platform_get_irq() does additional things, like call
of_irq_get() in the device tree case, which will translate
the IRQ using the irqdomain and defer the probe if the
IRQ host cannot be found.
As we're not looking up the resource, this will not retrieve
the IRQ flags, but that is better done using
irqd_get_trigger_type(), as the trigger is what the driver
wants to modify. We take care to preserve the semantics that
will make the trigger type provided from the resource
override any local specifier.
Tested on the Nomadik NHK15 which has its SMC91x IRQ line
connected to a STMPE2401 GPIO expander on I2C.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions