diff options
author | Pali Rohár <[email protected]> | 2022-01-10 02:49:57 +0100 |
---|---|---|
committer | Lorenzo Pieralisi <[email protected]> | 2022-02-08 10:40:52 +0000 |
commit | 805dfc18dd3d4dd97a987d4406593b5a225b1253 (patch) | |
tree | 9efba5af53727b27f2930785bdaa4067cfdb4588 /net/lapb/lapb_subr.c | |
parent | 1d86abf1f89672a70f2ab65f6000299feb1f1781 (diff) |
PCI: aardvark: Fix reading MSI interrupt number
In advk_pcie_handle_msi() it is expected that when bit i in the W1C
register PCIE_MSI_STATUS_REG is cleared, the PCIE_MSI_PAYLOAD_REG is
updated to contain the MSI number corresponding to index i.
Experiments show that this is not so, and instead PCIE_MSI_PAYLOAD_REG
always contains the number of the last received MSI, overall.
Do not read PCIE_MSI_PAYLOAD_REG register for determining MSI interrupt
number. Since Aardvark already forbids more than 32 interrupts and uses
own allocated hwirq numbers, the msi_idx already corresponds to the
received MSI number.
Link: https://lore.kernel.org/r/[email protected]
Fixes: 8c39d710363c ("PCI: aardvark: Add Aardvark PCI host controller driver")
Signed-off-by: Pali Rohár <[email protected]>
Signed-off-by: Marek Behún <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions