Re: [PATCH] acpi: Fix proper return code for function acpi_gsi_to_irq

From: Rafael J. Wysocki
Date: Wed Jul 12 2017 - 17:27:11 EST


On Tuesday, July 11, 2017 12:45:43 PM Mark Salter wrote:
> The function acpi_gsi_to_irq must return 0 on success as the caller
> ghes_probe expects an 0 for success. This change also matches x86
> implementation.
>
> This patch was submitted around 4.5 timeframe but wasn't pushed because
> it didn't fix a real problem. Now that RAS/GHES patches are in kernel,
> this fixes an error seen on a Mustang (arm64) platform:
>
> GHES: Failed to map GSI to IRQ for generic hardware error source: 2
> GHES: probe of GHES.2 failed with error 81
>
> Signed-off-by: Tuan Phan <tphan@xxxxxxx>
> Signed-off-by: Loc Ho <lho@xxxxxxx>
> [rebased to v4.12-rc]
> Signed-off-by: Mark Salter <msalter@xxxxxxxxxx>

Applied with the Lorenzo's ACK.

Thanks,
Rafael