]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
platform/x86: think-lmi: Add extra TC BIOS error messages
authorMark Pearson <mpearson-lenovo@squebb.ca>
Wed, 3 Sep 2025 17:38:14 +0000 (13:38 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Nov 2025 20:37:13 +0000 (15:37 -0500)
[ Upstream commit a0d6959c345d89d811288a718e3f6b145dcadc8c ]

Add extra error messages that are used by ThinkCenter platforms.

Signed-off-by: Kean Ren <kean0048@gmail.com>
Signed-off-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Link: https://lore.kernel.org/r/20250903173824.1472244-4-mpearson-lenovo@squebb.ca
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/x86/lenovo/think-lmi.c

index 0992b41b6221da77db2186f0ec8cda6c10a4f689..e6a2c8e94cfdc9b9373eb1b02160b3af7a6f7a7f 100644 (file)
@@ -179,10 +179,21 @@ MODULE_PARM_DESC(debug_support, "Enable debug command support");
 
 static const struct tlmi_err_codes tlmi_errs[] = {
        {"Success", 0},
+       {"Set Certificate operation was successful.", 0},
        {"Not Supported", -EOPNOTSUPP},
        {"Invalid Parameter", -EINVAL},
        {"Access Denied", -EACCES},
        {"System Busy", -EBUSY},
+       {"Set Certificate operation failed with status:Invalid Parameter.", -EINVAL},
+       {"Set Certificate operation failed with status:Invalid certificate type.", -EINVAL},
+       {"Set Certificate operation failed with status:Invalid password format.", -EINVAL},
+       {"Set Certificate operation failed with status:Password retry count exceeded.", -EACCES},
+       {"Set Certificate operation failed with status:Password Invalid.", -EACCES},
+       {"Set Certificate operation failed with status:Operation aborted.", -EBUSY},
+       {"Set Certificate operation failed with status:No free slots to write.", -ENOSPC},
+       {"Set Certificate operation failed with status:Certificate not found.", -EEXIST},
+       {"Set Certificate operation failed with status:Internal error.", -EFAULT},
+       {"Set Certificate operation failed with status:Certificate too large.", -EFBIG},
 };
 
 static const char * const encoding_options[] = {