linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ACPI: EC: add another DMI check for ASUS hardware
@ 2011-04-24  3:44 Peter Collingbourne
  2011-04-24 21:09 ` [PATCH v2] " Peter Collingbourne
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Collingbourne @ 2011-04-24  3:44 UTC (permalink / raw)
  To: linux-acpi; +Cc: Peter Collingbourne, Alexey Starikovskiy

Commit 0adf3c746a73684b3f8c2821a584e1db998f61e9 introduced a regression
by making the ECDT validation test for ASUS hardware more restrictive.
The previous test used the dmi_name_in_vendors function which searches
a number of DMI fields, while the new test checked only the BIOS
vendor, which is known to not match on an ASUS F5GL laptop which
requires ECDT validation.

Add a rule to ec_dmi_table based on an alternative DMI pattern for
ASUS hardware as found elsewhere in the kernel.

Cc: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Peter Collingbourne <peter@pcc.me.uk>
---
According to a Google search [1], it seems unlikely that the ASUS 
rule introduced by 0adf3c7 would ever match ASUS hardware.  I wonder
if it is worth removing it.

[1] http://www.google.com/search?q=%22bios%20information%20vendor%20asus%22

 drivers/acpi/ec.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
index fa848c4..30ca717 100644
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -940,6 +940,9 @@ static struct dmi_system_id __initdata ec_dmi_table[] = {
 	{
 	ec_validate_ecdt, "ASUS hardware", {
 	DMI_MATCH(DMI_BIOS_VENDOR, "ASUS") }, NULL},
+	{
+	ec_validate_ecdt, "ASUS hardware", {
+	DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK Computer Inc.") }, NULL},
 	{},
 };
 
-- 
1.7.1


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

* [PATCH v2] ACPI: EC: add another DMI check for ASUS hardware
  2011-04-24  3:44 [PATCH] ACPI: EC: add another DMI check for ASUS hardware Peter Collingbourne
@ 2011-04-24 21:09 ` Peter Collingbourne
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Collingbourne @ 2011-04-24 21:09 UTC (permalink / raw)
  To: linux-acpi; +Cc: Peter Collingbourne, Len Brown

Commit 0adf3c746a73684b3f8c2821a584e1db998f61e9 introduced a regression
by making the ECDT validation test for ASUS hardware more restrictive.
The previous test used the dmi_name_in_vendors function which searches
a number of DMI fields, while the new test checked only the BIOS
vendor, which is known to not match on an ASUS F5GL laptop which
requires ECDT validation.

Add a rule to ec_dmi_table based on an alternative DMI pattern for
ASUS hardware as found elsewhere in the kernel.

Cc: Len Brown <len.brown@intel.com>
Signed-off-by: Peter Collingbourne <peter@pcc.me.uk>
---
Peter Collingbourne wrote:
> Cc: Alexey Starikovskiy <astarikovskiy@suse.de>

Sorry for the noise, wrong person was cc'd as subsystem maintainer.

 drivers/acpi/ec.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
index fa848c4..30ca717 100644
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -940,6 +940,9 @@ static struct dmi_system_id __initdata ec_dmi_table[] = {
 	{
 	ec_validate_ecdt, "ASUS hardware", {
 	DMI_MATCH(DMI_BIOS_VENDOR, "ASUS") }, NULL},
+	{
+	ec_validate_ecdt, "ASUS hardware", {
+	DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK Computer Inc.") }, NULL},
 	{},
 };
 
-- 
1.7.1


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

end of thread, other threads:[~2011-04-24 21:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-24  3:44 [PATCH] ACPI: EC: add another DMI check for ASUS hardware Peter Collingbourne
2011-04-24 21:09 ` [PATCH v2] " Peter Collingbourne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).