linux/drivers/bus/mhi/core
Loic Poulain b0fc0167f2 bus: mhi: core: Allow shared IRQ for event rings
There is no requirement for using a dedicated IRQ per event ring.
Some systems does not support multiple MSI vectors (e.g. intel
without CONFIG_IRQ_REMAP), In that case the MHI controller can
configure all the event rings to use the same interrupt (as fallback).

Allow this by removing the nr_irqs = ev_ring test and add extra check
in the irq_setup function.

Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20200929175218.8178-17-manivannan.sadhasivam@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-10-02 11:33:47 +02:00
..
boot.c bus: mhi: core: Read and save device hardware information from BHI 2020-10-02 11:33:47 +02:00
debugfs.c bus: mhi: core: Introduce debugfs entries for MHI 2020-10-02 11:33:47 +02:00
init.c bus: mhi: core: Allow shared IRQ for event rings 2020-10-02 11:33:47 +02:00
internal.h bus: mhi: core: Introduce debugfs entries for MHI 2020-10-02 11:33:47 +02:00
main.c bus: mhi: core: Use generic name field for an MHI device 2020-10-02 11:33:46 +02:00
Makefile bus: mhi: core: Introduce debugfs entries for MHI 2020-10-02 11:33:47 +02:00
pm.c bus: mhi: core: Allow shared IRQ for event rings 2020-10-02 11:33:47 +02:00