aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorJon Hunter <[email protected]>2015-10-09 15:45:55 +0100
committerMark Brown <[email protected]>2015-10-12 17:34:05 +0100
commit44af7927316e83eb8865933f7c836dcc85f8eb74 (patch)
treebecd407b8c6c2ffb7ee833373a67b08117e51aa6 /scripts/gdb/linux/utils.py
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f (diff)
spi: Map SPI OF client IRQ at probe time
Currently the IRQs for SPI client devices, registered via device-tree, are mapped when the client devices are registered. If the corresponding irq-chip has not been probed yet, then the probing of the client device will fail and will not be retried. Resolve this by mapping the IRQ at probe time and allow the probe to be deferred if the IRQ is not yet available. If of_irq_get() returns an error that is not -EPROBE_DEFER, then assume that the SPI client does not have an IRQ and set the IRQ number to zero (which is equivalent to irq_of_parse_and_map()). This is based on some inputs from Thierry Reding <[email protected]>. Cc: Thierry Reding <[email protected]> Cc: Tomeu Vizoso <[email protected]> Signed-off-by: Jon Hunter <[email protected]> Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions