Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1533867

Re: [PATCH] ACPI: fix the process flow for 0 which return from acpi_register_gsi

From "majun (Euler7)" <majun258@huawei.com>
Newsgroups linux.kernel
Subject Re: [PATCH] ACPI: fix the process flow for 0 which return from acpi_register_gsi
Date 2016-12-01 08:50 +0100
Message-ID <sJuhX-PI-11@gated-at.bofh.it> (permalink)
References <sJuhX-PI-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


sorry, ignore this one..


在 2016/12/1 15:41, Majun 写道:
> From: MaJun <majun258@huawei.com>
> 
> The return value 0 from acpi_register_gsi() means irq mapping failed.
> So, we should process this case in else branch.
> 
> Signed-off-by: MaJun <majun258@huawei.com>
> ---
>  drivers/acpi/resource.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c
> index 56241eb..9918326 100644
> --- a/drivers/acpi/resource.c
> +++ b/drivers/acpi/resource.c
> @@ -416,7 +416,7 @@ static void acpi_dev_get_irqresource(struct resource *res, u32 gsi,
>  
>  	res->flags = acpi_dev_irq_flags(triggering, polarity, shareable);
>  	irq = acpi_register_gsi(NULL, gsi, triggering, polarity);
> -	if (irq >= 0) {
> +	if (irq > 0) {
>  		res->start = irq;
>  		res->end = irq;
>  	} else {
> 

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH] ACPI: fix the process flow for 0 which return from  acpi_register_gsi "majun (Euler7)" <majun258@huawei.com> - 2016-12-01 08:50 +0100

csiph-web