public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Serious bug in ACPI enumeration
@ 2001-04-05 20:51 Pavel Machek
  0 siblings, 0 replies; 2+ messages in thread
From: Pavel Machek @ 2001-04-05 20:51 UTC (permalink / raw)
  To: andrew.grover, kernel list

Hi!

My "toshiba workaround" was not toshiba specific: you stopped scanning
at first device that was not present. That's bad, you have to continue
scanning. Here's fix.

								Pavel

--- clean/drivers/acpi/namespace/nsxfobj.c	Sun Apr  1 00:23:00 2001
+++ linux/drivers/acpi/namespace/nsxfobj.c	Thu Apr  5 22:49:18 2001
@@ -592,7 +595,7 @@
 
 	status = acpi_cm_execute_STA (node, &flags);
 	if (ACPI_FAILURE (status)) {
-		return (status);
+		return AE_OK;
 	}
 
 	if (!(flags & 0x01)) {


-- 
I'm pavel@ucw.cz. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at discuss@linmodems.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: Serious bug in ACPI enumeration
@ 2001-04-10 17:11 Grover, Andrew
  0 siblings, 0 replies; 2+ messages in thread
From: Grover, Andrew @ 2001-04-10 17:11 UTC (permalink / raw)
  To: 'Pavel Machek', kernel list; +Cc: Acpi-linux (E-mail)

This is because at this stage of ACPI development, we want to be as strict
as possible w.r.t. AML, to expose bugs in the software.

That said, maybe it's better to just emit a warning here, instead of
failing. I'll bring it up with the team.

Regards -- Andy

> From: Pavel Machek [mailto:pavel@suse.cz]
> 
> Hi!
> 
> My "toshiba workaround" was not toshiba specific: you stopped scanning
> at first device that was not present. That's bad, you have to continue
> scanning. Here's fix.
> 
> 								Pavel
> 
> --- clean/drivers/acpi/namespace/nsxfobj.c	Sun Apr  1 00:23:00 2001
> +++ linux/drivers/acpi/namespace/nsxfobj.c	Thu Apr  5 22:49:18 2001
> @@ -592,7 +595,7 @@
>  
>  	status = acpi_cm_execute_STA (node, &flags);
>  	if (ACPI_FAILURE (status)) {
> -		return (status);
> +		return AE_OK;
>  	}
>  
>  	if (!(flags & 0x01)) {
> 
> 
> -- 
> I'm pavel@ucw.cz. "In my country we have almost anarchy and I 
> don't care."
> Panos Katsaloulis describing me w.r.t. patents at 
> discuss@linmodems.org
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-04-10 17:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-05 20:51 Serious bug in ACPI enumeration Pavel Machek
  -- strict thread matches above, loose matches on Subject: below --
2001-04-10 17:11 Grover, Andrew

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox