RE: [patch 21/26] acpi EC: acpi-ecdt-uid-hack

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

 



applied to acpi-test

thanks,
-Len 

>-----Original Message-----
>From: akpm@xxxxxxxx [mailto:akpm@xxxxxxxx] 
>Sent: Tuesday, March 28, 2006 5:04 PM
>To: Brown, Len
>Cc: linux-acpi@xxxxxxxxxxxxxxx; akpm@xxxxxxxx; 
>jirislaby@xxxxxxxxx; Yu, Luming
>Subject: [patch 21/26] acpi EC: acpi-ecdt-uid-hack
>
>
>From: Jiri Slaby <jirislaby@xxxxxxxxx>
>
>On some boxes ecdt uid may be equal to 0, so do not test for 
>uids equality,
>so that fake handler will be unconditionally removed to allow 
>loading the
>real one.
>
>See http://bugzilla.kernel.org/show_bug.cgi?id=6111
>
>Signed-off-by: Jiri Slaby <jirislaby@xxxxxxxxx>
>Cc: Luming Yu <luming.yu@xxxxxxxxx>
>Cc: "Brown, Len" <len.brown@xxxxxxxxx>
>Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
>---
>
> drivers/acpi/ec.c |   16 ++++++----------
> 1 files changed, 6 insertions(+), 10 deletions(-)
>
>diff -puN drivers/acpi/ec.c~acpi-ec-acpi-ecdt-uid-hack 
>drivers/acpi/ec.c
>--- devel/drivers/acpi/ec.c~acpi-ec-acpi-ecdt-uid-hack	
>2006-03-28 14:03:07.000000000 -0800
>+++ devel-akpm/drivers/acpi/ec.c	2006-03-28 
>14:03:07.000000000 -0800
>@@ -989,7 +989,6 @@ static int acpi_ec_poll_add(struct acpi_
> 	int result = 0;
> 	acpi_status status = AE_OK;
> 	union acpi_ec *ec = NULL;
>-	unsigned long uid;
> 
> 	ACPI_FUNCTION_TRACE("acpi_ec_add");
> 
>@@ -1012,10 +1011,9 @@ static int acpi_ec_poll_add(struct acpi_
> 	acpi_evaluate_integer(ec->common.handle, "_GLK", NULL,
> 			      &ec->common.global_lock);
> 
>-	/* If our UID matches the UID for the ECDT-enumerated EC,
>-	   we now have the *real* EC info, so kill the makeshift one. */
>-	acpi_evaluate_integer(ec->common.handle, "_UID", NULL, &uid);
>-	if (ec_ecdt && ec_ecdt->common.uid == uid) {
>+	/* XXX we don't test uids, because on some boxes ecdt 
>uid = 0, see:
>+	   http://bugzilla.kernel.org/show_bug.cgi?id=6111 */
>+	if (ec_ecdt) {
> 		acpi_remove_address_space_handler(ACPI_ROOT_OBJECT,
> 						  ACPI_ADR_SPACE_EC,
> 						  
>&acpi_ec_space_handler);
>@@ -1059,7 +1057,6 @@ static int acpi_ec_intr_add(struct acpi_
> 	int result = 0;
> 	acpi_status status = AE_OK;
> 	union acpi_ec *ec = NULL;
>-	unsigned long uid;
> 
> 	ACPI_FUNCTION_TRACE("acpi_ec_add");
> 
>@@ -1085,10 +1082,9 @@ static int acpi_ec_intr_add(struct acpi_
> 	acpi_evaluate_integer(ec->common.handle, "_GLK", NULL,
> 			      &ec->common.global_lock);
> 
>-	/* If our UID matches the UID for the ECDT-enumerated EC,
>-	   we now have the *real* EC info, so kill the makeshift one. */
>-	acpi_evaluate_integer(ec->common.handle, "_UID", NULL, &uid);
>-	if (ec_ecdt && ec_ecdt->common.uid == uid) {
>+	/* XXX we don't test uids, because on some boxes ecdt 
>uid = 0, see:
>+	   http://bugzilla.kernel.org/show_bug.cgi?id=6111 */
>+	if (ec_ecdt) {
> 		acpi_remove_address_space_handler(ACPI_ROOT_OBJECT,
> 						  ACPI_ADR_SPACE_EC,
> 						  
>&acpi_ec_space_handler);
>_
>
-
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