Skip to contentSkip to conversation

dell-smo8800: Add more acpi ids and change description of driver

PATCH Superseded Pali Rohár 2 participants 6 messages Sep 29, 2014 – Dec 5, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dell-smo8800: Add more acpi ids and change description of driver

---
 drivers/platform/x86/Kconfig        |    4 ++--
 drivers/platform/x86/dell-smo8800.c |   10 ++++++++--
 2 files changed, 10 insertions(+), 4 deletions(-)
drivers/platform/x86/Kconfig +2 -2
index 3bbcbf1..ba9ee4f 100644
@@ -128,10 +128,10 @@ config DELL_WMI_AIO
 	  be called dell-wmi-aio.
 
 config DELL_SMO8800
-	tristate "Dell Latitude freefall driver (ACPI SMO8800/SMO8810)"
+	tristate "Dell Latitude freefall driver (ACPI SMO88XX)"
 	depends on ACPI
 	---help---
-	  Say Y here if you want to support SMO8800/SMO8810 freefall device
+	  Say Y here if you want to support SMO88XX freefall device
 	  on Dell Latitude laptops.
 
 	  To compile this driver as a module, choose M here: the module will
drivers/platform/x86/dell-smo8800.c +8 -2
index a653716..0aec4fd 100644
@@ -1,5 +1,5 @@
 /*
- *  dell-smo8800.c - Dell Latitude ACPI SMO8800/SMO8810 freefall sensor driver
+ *  dell-smo8800.c - Dell Latitude ACPI SMO88XX freefall sensor driver
  *
  *  Copyright (C) 2012 Sonal Santan <[email protected]>
  *  Copyright (C) 2014 Pali Rohár <[email protected]>
@@ -209,7 +209,13 @@ static int smo8800_remove(struct acpi_device *device)
 
 static const struct acpi_device_id smo8800_ids[] = {
 	{ "SMO8800", 0 },
+	{ "SMO8801", 0 },
 	{ "SMO8810", 0 },
+	{ "SMO8811", 0 },
+	{ "SMO8820", 0 },
+	{ "SMO8821", 0 },
+	{ "SMO8830", 0 },
+	{ "SMO8831", 0 },
 	{ "", 0 },
 };
 
@@ -228,6 +234,6 @@ static struct acpi_driver smo8800_driver = {
 
 module_acpi_driver(smo8800_driver);
 
-MODULE_DESCRIPTION("Dell Latitude freefall driver (ACPI SMO8800/SMO8810)");
+MODULE_DESCRIPTION("Dell Latitude freefall driver (ACPI SMO88XX)");
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Sonal Santan, Pali Rohár");
Signature · 1 line
1.7.9.5
#1 lore raw

On Mon, Sep 29, 2014 at 02:45:48PM +0200, Pali Rohár wrote:

Please see Documentation/SubmittingPatches, 15) The canonical patch format, and provide a complete message body.

Have you validated each of the 6 ACPI IDs added to the driver?

Quoted 11 lines
---
 drivers/platform/x86/Kconfig        |    4 ++--
 drivers/platform/x86/dell-smo8800.c |   10 ++++++++--
 2 files changed, 10 insertions(+), 4 deletions(-)
drivers/platform/x86/Kconfig +0 -0
index 3bbcbf1..ba9ee4f 100644

drivers/platform/x86/Kconfig config DELL_WMI_AIO · line 134

Quoted 9 lines
drivers/platform/x86/Kconfig +2 -2
@@ -128,10 +128,10 @@ config DELL_WMI_AIO
 	  be called dell-wmi-aio.
 
 config DELL_SMO8800
-	tristate "Dell Latitude freefall driver (ACPI SMO8800/SMO8810)"
+	tristate "Dell Latitude freefall driver (ACPI SMO88XX)"
 	depends on ACPI
 	---help---
-	  Say Y here if you want to support SMO8800/SMO8810 freefall device
+	  Say Y here if you want to support SMO88XX freefall device

"devices" now that multiple are supported.

Thanks,

Signature · 6 lines
Darren Hart
Intel Open Source Technology Center
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw

Oops, I lost this mail somewhere...

I copied these ids from windows driver inf file. I did not tested them because I do not have machine which reports these ids. It looks like all SMOXX devices have same acpi structure (one IRQ). So adding ids could not break anything (if acpi device will not have for some reason IRQ specified, device probe function will fail).

Quoted 39 lines · On Monday 29 September 2014 22:56:04 Darren Hart wrote:

On Mon, Sep 29, 2014 at 02:45:48PM +0200, Pali Rohár wrote:

Please see Documentation/SubmittingPatches, 15) The canonical patch format, and provide a complete message body.

Have you validated each of the 6 ACPI IDs added to the driver?

Quoted 26 lines

---

 drivers/platform/x86/Kconfig        |    4 ++--
 drivers/platform/x86/dell-smo8800.c |   10 ++++++++--
 2 files changed, 10 insertions(+), 4 deletions(-)
(quoted diff) +0 -0

b/drivers/platform/x86/Kconfig index 3bbcbf1..ba9ee4f 100644

drivers/platform/x86/Kconfig +0 -1
@@ -128,10 +128,10 @@ config DELL_WMI_AIO
 
 	  be called dell-wmi-aio.
 
 config DELL_SMO8800
 
-	tristate "Dell Latitude freefall driver (ACPI

SMO8800/SMO8810)" + tristate "Dell Latitude freefall driver
(ACPI SMO88XX)"

drivers/platform/x86/Kconfig +0 -1
 	depends on ACPI
 	---help---
 
-	  Say Y here if you want to support SMO8800/SMO8810
Quoted 2 lines

freefall device + Say Y here if you want to support
SMO88XX freefall device

"devices" now that multiple are supported.

Thanks,

Signature · 2 lines
Pali Rohár
[email protected]
#3 lore raw
Quoted 8 lines · Pali Rohár

Oops, I lost this mail somewhere...

I copied these ids from windows driver inf file. I did not tested them because I do not have machine which reports these ids. It looks like all SMOXX devices have same acpi structure (one IRQ). So adding ids could not break anything (if acpi device will not have for some reason IRQ specified, device probe function will fail).

Please resend with a complete message body and the typo fix below.

Quoted 45 lines · On Monday 29 September 2014 22:56:04 Darren Hart wrote:
Quoted 39 lines · Pali Rohár

Please see Documentation/SubmittingPatches, 15) The canonical patch format, and provide a complete message body.

Have you validated each of the 6 ACPI IDs added to the driver?

Quoted 26 lines

---

 drivers/platform/x86/Kconfig        |    4 ++--
 drivers/platform/x86/dell-smo8800.c |   10 ++++++++--
 2 files changed, 10 insertions(+), 4 deletions(-)
(quoted diff) +0 -0

b/drivers/platform/x86/Kconfig index 3bbcbf1..ba9ee4f 100644

drivers/platform/x86/Kconfig +0 -1
@@ -128,10 +128,10 @@ config DELL_WMI_AIO
 
 	  be called dell-wmi-aio.
 
 config DELL_SMO8800
 
-	tristate "Dell Latitude freefall driver (ACPI

SMO8800/SMO8810)" + tristate "Dell Latitude freefall driver
(ACPI SMO88XX)"

drivers/platform/x86/Kconfig +0 -1
 	depends on ACPI
 	---help---
 
-	  Say Y here if you want to support SMO8800/SMO8810
Quoted 2 lines

freefall device + Say Y here if you want to support
SMO88XX freefall device

"devices" now that multiple are supported.

Thanks,

Signature · 2 lines
Pali Rohár
[email protected]
Signature · 6 lines
Darren Hart
Intel Open Source Technology Center
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#4 lore raw

PATCH v2 1/1 dell-smo8800: Add more ACPI ids and change description of driver

This patch adds other ACPI ids from Windows inf driver which should be handled by dell-smo8800 driver. ACPI devices have same structure -- one IRQ number.

This patch also updates description of module.

---
 drivers/platform/x86/Kconfig        |    4 ++--
 drivers/platform/x86/dell-smo8800.c |   10 ++++++++--
 2 files changed, 10 insertions(+), 4 deletions(-)
drivers/platform/x86/Kconfig +2 -2
index 3bbcbf1..4614f35 100644
@@ -128,10 +128,10 @@ config DELL_WMI_AIO
 	  be called dell-wmi-aio.
 
 config DELL_SMO8800
-	tristate "Dell Latitude freefall driver (ACPI SMO8800/SMO8810)"
+	tristate "Dell Latitude freefall driver (ACPI SMO88XX)"
 	depends on ACPI
 	---help---
-	  Say Y here if you want to support SMO8800/SMO8810 freefall device
+	  Say Y here if you want to support SMO88XX freefall devices
 	  on Dell Latitude laptops.
 
 	  To compile this driver as a module, choose M here: the module will
drivers/platform/x86/dell-smo8800.c +8 -2
index a653716..0aec4fd 100644
@@ -1,5 +1,5 @@
 /*
- *  dell-smo8800.c - Dell Latitude ACPI SMO8800/SMO8810 freefall sensor driver
+ *  dell-smo8800.c - Dell Latitude ACPI SMO88XX freefall sensor driver
  *
  *  Copyright (C) 2012 Sonal Santan <[email protected]>
  *  Copyright (C) 2014 Pali Rohár <[email protected]>
@@ -209,7 +209,13 @@ static int smo8800_remove(struct acpi_device *device)
 
 static const struct acpi_device_id smo8800_ids[] = {
 	{ "SMO8800", 0 },
+	{ "SMO8801", 0 },
 	{ "SMO8810", 0 },
+	{ "SMO8811", 0 },
+	{ "SMO8820", 0 },
+	{ "SMO8821", 0 },
+	{ "SMO8830", 0 },
+	{ "SMO8831", 0 },
 	{ "", 0 },
 };
 
@@ -228,6 +234,6 @@ static struct acpi_driver smo8800_driver = {
 
 module_acpi_driver(smo8800_driver);
 
-MODULE_DESCRIPTION("Dell Latitude freefall driver (ACPI SMO8800/SMO8810)");
+MODULE_DESCRIPTION("Dell Latitude freefall driver (ACPI SMO88XX)");
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Sonal Santan, Pali Rohár");
Signature · 6 lines
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#5 lore raw

Re: [PATCH v2] dell-smo8800: Add more ACPI ids and change description of driver

Quoted 6 lines · Pali Rohár

This patch adds other ACPI ids from Windows inf driver which should be handled by dell-smo8800 driver. ACPI devices have same structure -- one IRQ number.

This patch also updates description of module.

Queued to testing, thanks Pali.

Signature · 6 lines
Darren Hart
Intel Open Source Technology Center
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html