[ltp] Re: [ibm-acpi-devel] thinkpad-acpi release 0.23-20090606 uploaded
to ibm-acpi.sf.net
Henrique de Moraes Holschuh
linux-thinkpad@linux-thinkpad.org
Thu, 11 Jun 2009 22:46:14 -0300
--+HP7ph2BbKc20aGI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Sat, 06 Jun 2009, Henrique de Moraes Holschuh wrote:
> I have released version 0.23-20090606 of thinkpad-acpi through
> the sourceforge.net release system.
And it has a brown paperbag bug. Please apply the attached patch after you
apply the regular thinkpad-acpi patch.
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
--+HP7ph2BbKc20aGI
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="fix-two-fan-support.patch"
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index f909f8b..9fc3024 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -7064,12 +7064,18 @@ static const struct attribute_group fan_attr_group = {
.ec = TPID(__id1, __id2), \
.quirks = __quirks }
+#define TPACPI_FAN_QL(__id1, __id2, __quirks) \
+ { .vendor = PCI_VENDOR_ID_LENOVO, \
+ .bios = TPACPI_MATCH_ANY, \
+ .ec = TPID(__id1, __id2), \
+ .quirks = __quirks }
+
static const struct tpacpi_quirk fan_quirk_table[] __initconst = {
TPACPI_FAN_QI('1', 'Y', TPACPI_FAN_Q1),
TPACPI_FAN_QI('7', '8', TPACPI_FAN_Q1),
TPACPI_FAN_QI('7', '6', TPACPI_FAN_Q1),
TPACPI_FAN_QI('7', '0', TPACPI_FAN_Q1),
- TPACPI_FAN_QI('7', 'M', TPACPI_FAN_2FAN),
+ TPACPI_FAN_QL('7', 'M', TPACPI_FAN_2FAN),
};
#undef TPACPI_FAN_QI
--+HP7ph2BbKc20aGI--