diff mbox series

fix fan-quirk macro for Lenovo P50

Message ID 20190327192508.349725-1-matthias@wspse.de (mailing list archive)
State Changes Requested, archived
Delegated to: Andy Shevchenko
Headers show
Series fix fan-quirk macro for Lenovo P50 | expand

Commit Message

Matthias Hensler March 27, 2019, 7:25 p.m. UTC
Commit 846a416b4630fc960c10500b4194ad504bc22d4b changed the
quirk-matching for modern thinkpads to use three characters instead of
two. Unfortunately that commit did break the fan-quirk matching for the
P50. With commit 599eefffcf6b9cff3e8cc2d96fd8eebfadab339c there were
some cleanups in the quirk-macros, but still did not fix the wrong
matching for the P50.

Note: I guess the quirk-list needs to be expanded for the P70 and
      newer models.
---
 drivers/platform/x86/thinkpad_acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andy Shevchenko March 27, 2019, 7:53 p.m. UTC | #1
On Wed, Mar 27, 2019 at 9:25 PM Matthias Hensler <matthias@wspse.de> wrote:
>
> Commit 846a416b4630fc960c10500b4194ad504bc22d4b changed the
> quirk-matching for modern thinkpads to use three characters instead of
> two. Unfortunately that commit did break the fan-quirk matching for the
> P50. With commit 599eefffcf6b9cff3e8cc2d96fd8eebfadab339c there were
> some cleanups in the quirk-macros, but still did not fix the wrong
> matching for the P50.
>
> Note: I guess the quirk-list needs to be expanded for the P70 and
>       newer models.

You need to put your Signed-off-by tag as well.
This is according to the process:
https://www.kernel.org/doc/Documentation/process/submitting-patches.rst

In any case, don't send updated version right now. We still have time
in this release cycle and I would like to hear Henrique and others
opinions.

> ---
>  drivers/platform/x86/thinkpad_acpi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
> index 726341f2b638..575a1ea161f0 100644
> --- a/drivers/platform/x86/thinkpad_acpi.c
> +++ b/drivers/platform/x86/thinkpad_acpi.c
> @@ -8721,7 +8721,7 @@ static const struct tpacpi_quirk fan_quirk_table[] __initconst = {
>         TPACPI_QEC_IBM('7', '6', TPACPI_FAN_Q1),
>         TPACPI_QEC_IBM('7', '0', TPACPI_FAN_Q1),
>         TPACPI_QEC_LNV('7', 'M', TPACPI_FAN_2FAN),
> -       TPACPI_Q_LNV('N', '1', TPACPI_FAN_2FAN),
> +       TPACPI_Q_LNV3('N', '1', 'E', TPACPI_FAN_2FAN),
>  };
>
>  static int __init fan_init(struct ibm_init_struct *iibm)
> --
> 2.20.1
>
diff mbox series

Patch

diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index 726341f2b638..575a1ea161f0 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -8721,7 +8721,7 @@  static const struct tpacpi_quirk fan_quirk_table[] __initconst = {
 	TPACPI_QEC_IBM('7', '6', TPACPI_FAN_Q1),
 	TPACPI_QEC_IBM('7', '0', TPACPI_FAN_Q1),
 	TPACPI_QEC_LNV('7', 'M', TPACPI_FAN_2FAN),
-	TPACPI_Q_LNV('N', '1', TPACPI_FAN_2FAN),
+	TPACPI_Q_LNV3('N', '1', 'E', TPACPI_FAN_2FAN),
 };
 
 static int __init fan_init(struct ibm_init_struct *iibm)