From nobody@FreeBSD.org  Fri Jan 27 12:30:59 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 97EF81065686
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 27 Jan 2012 12:30:59 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 831F58FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 27 Jan 2012 12:30:59 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q0RCUwjX095388
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 27 Jan 2012 12:30:58 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q0RCUwdl095387;
	Fri, 27 Jan 2012 12:30:58 GMT
	(envelope-from nobody)
Message-Id: <201201271230.q0RCUwdl095387@red.freebsd.org>
Date: Fri, 27 Jan 2012 12:30:58 GMT
From: Pierre Imai <pierre@imai.at>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] add support for newer Lenovo ThinkPads to acpi_ibm
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         164538
>Category:       kern
>Synopsis:       [acpi_ibm] [patch] add support for newer Lenovo ThinkPads to acpi_ibm
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bapt
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 27 12:40:10 UTC 2012
>Closed-Date:    Mon Nov 12 14:07:22 UTC 2012
>Last-Modified:  Mon Nov 12 14:07:22 UTC 2012
>Originator:     Pierre Imai
>Release:        9.0-stable
>Organization:
>Environment:
FreeBSD X.Y.net 9.0-STABLE FreeBSD 9.0-STABLE #0: Fri Jan 20 20:52:52 CET 2012     root@X.Y.net:/usr/obj/data/usr/src/sys/COMMON-AMD64  amd64
>Description:
The acpi_ibm kernel module does not include the ID used by newer Lenovo Laptops (basically, "IBM0086" was replaced by "LEN0086"). Adding the new string to the ibm_ids struct in acpi_ibm.c allows the driver to attach and work properly. Tested during daily use on a ThinkPad W520 running 9.0-stable AMD64 since Nov 2011.
>How-To-Repeat:
Try "kldload ibm_acpi" on e.g. a Lenovo ThinkPad W520, the driver will not recognize the ACPI ID.
>Fix:
Replace line 293 of 
sys/dev/acpi_support/acpi_ibm.c:

--- /usr/src/sys/dev/acpi_support/acpi_ibm.c.old	2012-01-27 13:18:19.000000000 +0100
+++ /usr/src/sys/dev/acpi_support/acpi_ibm.c	2012-01-27 13:19:32.000000000 +0100
@@ -290,7 +290,7 @@
 DRIVER_MODULE(acpi_ibm, acpi, acpi_ibm_driver, acpi_ibm_devclass,
 	      0, 0);
 MODULE_DEPEND(acpi_ibm, acpi, 1, 1, 1);
-static char    *ibm_ids[] = {"IBM0068", NULL};
+static char    *ibm_ids[] = {"LEN0068", "IBM0068", NULL};
 
 static void
 ibm_led(void *softc, int onoff)

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-acpi 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Jan 28 03:08:18 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=164538 
Responsible-Changed-From-To: freebsd-acpi->miwi 
Responsible-Changed-By: miwi 
Responsible-Changed-When: Sun Jan 29 08:21:00 UTC 2012 
Responsible-Changed-Why:  
take for testing. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=164538 
State-Changed-From-To: open->patched 
State-Changed-By: bapt 
State-Changed-When: Mon Oct 29 10:23:11 UTC 2012 
State-Changed-Why:  
awaiting MFC 


Responsible-Changed-From-To: miwi->bapt 
Responsible-Changed-By: bapt 
Responsible-Changed-When: Mon Oct 29 10:23:11 UTC 2012 
Responsible-Changed-Why:  
awaiting MFC 

http://www.freebsd.org/cgi/query-pr.cgi?pr=164538 
State-Changed-From-To: patched->closed 
State-Changed-By: bapt 
State-Changed-When: Mon Nov 12 14:07:21 UTC 2012 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=164538 
>Unformatted:
