platform/x86: think-lmi: Fix password opcode ordering for workstations
authorMark Pearson <mpearson-lenovo@squebb.ca>
Fri, 9 Feb 2024 15:23:47 +0000 (10:23 -0500)
committerHans de Goede <hdegoede@redhat.com>
Mon, 19 Feb 2024 11:40:47 +0000 (12:40 +0100)
commit6f7d0f5fd8e440c3446560100ac4ff9a55eec340
tree28b105177b585560015654c3882a7aa71b25e539
parent1abdf288b0ef5606f76b6e191fa6df05330e3d7e
platform/x86: think-lmi: Fix password opcode ordering for workstations

The Lenovo workstations require the password opcode to be run before
the attribute value is changed (if Admin password is enabled).

Tested on some Thinkpads to confirm they are OK with this order too.

Signed-off-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Fixes: 640a5fa50a42 ("platform/x86: think-lmi: Opcode support")
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20240209152359.528919-1-mpearson-lenovo@squebb.ca
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/think-lmi.c