Re: [patch] ACPI: use _STA bit names rather than 0x0F

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Applied.

thanks,
-Len

On Friday 20 April 2007 12:56, Bjorn Helgaas wrote:
> Be explicit about what "device->status = 0x0F" really means.
> 
> Signed-off-by: Bjorn Helgaas <bjorn.helgaas@xxxxxx>
> 
> Index: w/drivers/acpi/scan.c
> ===================================================================
> --- w.orig/drivers/acpi/scan.c	2007-04-19 21:35:42.000000000 -0600
> +++ w/drivers/acpi/scan.c	2007-04-19 21:36:50.000000000 -0600
> @@ -1068,7 +1068,9 @@
>  		}
>  		break;
>  	default:
> -		STRUCT_TO_INT(device->status) = 0x0F;
> +		STRUCT_TO_INT(device->status) =
> +		    ACPI_STA_DEVICE_PRESENT | ACPI_STA_DEVICE_ENABLED |
> +		    ACPI_STA_DEVICE_UI      | ACPI_STA_DEVICE_FUNCTIONING;
>  		break;
>  	}
>  
> Index: w/drivers/acpi/bus.c
> ===================================================================
> --- w.orig/drivers/acpi/bus.c	2007-04-19 21:35:42.000000000 -0600
> +++ w/drivers/acpi/bus.c	2007-04-19 21:37:52.000000000 -0600
> @@ -103,7 +103,9 @@
>  	else if (device->parent)
>  		device->status = device->parent->status;
>  	else
> -		STRUCT_TO_INT(device->status) = 0x0F;
> +		STRUCT_TO_INT(device->status) =
> +		    ACPI_STA_DEVICE_PRESENT | ACPI_STA_DEVICE_ENABLED |
> +		    ACPI_STA_DEVICE_UI      | ACPI_STA_DEVICE_FUNCTIONING;
>  
>  	if (device->status.functional && !device->status.present) {
>  		printk(KERN_WARNING PREFIX "Device [%s] status [%08x]: "
> 
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux