]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6ed9a49662ec1661263293483bffdd8ce3249ce5
tree5d7d693c58ac4d4e539079df259463b85becfae5
parentb464f7817f07c1507e9ed56cd71784126ad70b9c
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: 1aa09fddac72 ("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