Skip to content

Commit 4cebb42

Browse files
mrhpearsonjwrdegoede
authored andcommitted
platform/x86: think-lmi: Correct NVME password handling
NVME passwords identifier have been standardised across the Lenovo systems and now use udrp and adrp (user and admin level) instead of unvp and mnvp. This should apparently be backwards compatible. Fixes: 640a5fa ("platform/x86: think-lmi: Opcode support") Signed-off-by: Mark Pearson <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hans de Goede <[email protected]>
1 parent 2aec96a commit 4cebb42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/platform/x86/think-lmi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,9 @@ static ssize_t new_password_store(struct kobject *kobj,
461461
sprintf(pwd_type, "mhdp%d", setting->index);
462462
} else if (setting == tlmi_priv.pwd_nvme) {
463463
if (setting->level == TLMI_LEVEL_USER)
464-
sprintf(pwd_type, "unvp%d", setting->index);
464+
sprintf(pwd_type, "udrp%d", setting->index);
465465
else
466-
sprintf(pwd_type, "mnvp%d", setting->index);
466+
sprintf(pwd_type, "adrp%d", setting->index);
467467
} else {
468468
sprintf(pwd_type, "%s", setting->pwd_type);
469469
}

0 commit comments

Comments
 (0)