[PATCH 7/8] platform: dell: laptop: Don't load if SMBIOS calls are non-functional

From: Brian Mak

Date: Fri Nov 20 2026 - 19:08:39 EST


dell-laptop relies on the SMBIOS calling interface for all of its
functionality. On platforms where the interface returns all-zero
buffers, dell-laptop reports bogus battery charge modes and thresholds,
and registers mute and mic mute LEDs that do nothing.

Don't load dell-laptop on these platforms.

Signed-off-by: Brian Mak <bmak@xxxxxxxxxx>
---
drivers/platform/dell/dell-laptop.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/drivers/platform/dell/dell-laptop.c b/drivers/platform/dell/dell-laptop.c
index 89e85c7f7132..7bf51b9cb03b 100644
--- a/drivers/platform/dell/dell-laptop.c
+++ b/drivers/platform/dell/dell-laptop.c
@@ -2464,6 +2464,9 @@ static int __init dell_init(void)
if (!dmi_check_system(dell_device_table))
return -ENODEV;

+ if (!dell_smbios_calls_functional())
+ return -ENODEV;
+
quirks = NULL;
/* find if this machine support other functions */
dmi_check_system(dell_quirks);
--
2.53.0