dmaengine: acpi: Avoid comparison GSI with Linux vIRQ
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 30 Jul 2021 20:27:15 +0000 (23:27 +0300)
committerVinod Koul <vkoul@kernel.org>
Fri, 6 Aug 2021 16:18:11 +0000 (21:48 +0530)
commit67db87dc8284070adb15b3c02c1c31d5cf51c5d6
tree476e76c7c5b963161032b08d28d391bff499bc83
parentd803c8b9f3f2b8e5c047f2d0a27a9ea3ef91510f
dmaengine: acpi: Avoid comparison GSI with Linux vIRQ

Currently the CRST parsing relies on the fact that on most of x86 devices
the IRQ mapping is 1:1 with Linux vIRQ. However, it may be not true for
some. Fix this by converting GSI to Linux vIRQ before checking it.

Fixes: ee8209fd026b ("dma: acpi-dma: parse CSRT to extract additional resources")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210730202715.24375-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/acpi-dma.c