dmaengine: hsu: disable spurious interrupt
authorFerry Toth <ftoth@exalondelft.nl>
Tue, 12 Jan 2021 22:37:49 +0000 (23:37 +0100)
committerVinod Koul <vkoul@kernel.org>
Wed, 13 Jan 2021 16:31:34 +0000 (22:01 +0530)
commit035b73b2b3b2e074a56489a7bf84b6a8012c0e0d
tree5d7d693c58ac4d4e539079df259463b85becfae5
parent747ee57bd33d5d64e127c09ea0d24026acc1a653
dmaengine: hsu: disable spurious interrupt

On Intel Tangier B0 and Anniedale the interrupt line, disregarding
to have different numbers, is shared between HSU DMA and UART IPs.
Thus on such SoCs we are expecting that IRQ handler is called in
UART driver only. hsu_pci_irq was handling the spurious interrupt
from HSU DMA by returning immediately. This wastes CPU time and
since HSU DMA and HSU UART interrupt occur simultaneously they race
to be handled causing delay to the HSU UART interrupt handling.
Fix this by disabling the interrupt entirely.

Fixes: 4831e0d9054c ("serial: 8250_mid: handle interrupt correctly in DMA case")
Signed-off-by: Ferry Toth <ftoth@exalondelft.nl>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20210112223749.97036-1-ftoth@exalondelft.nl
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/hsu/pci.c