Home
last modified time | relevance | path

Searched hist:"44 af7927316e83eb8865933f7c836dcc85f8eb74" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/spi/
H A Dspi.cdiff 44af7927316e83eb8865933f7c836dcc85f8eb74 Fri Oct 09 16:45:55 CEST 2015 Jon Hunter <jonathanh@nvidia.com> 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 <treding@nvidia.com>.

Cc: Thierry Reding <treding@nvidia.com>
Cc: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>