[PATCH v2 1/2] Input: i8042: Avoid probing if no keyboard and mouse are set in quirks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Some laptops have an i8042 controller in the SOC, nothing mentioned in
ACPI PNP and nothing connected to the controller. Add the ability to
skip probing in this case.

Signed-off-by: Mario Limonciello <mario.limonciello@xxxxxxx>
---
 drivers/input/serio/i8042-acpipnpio.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/input/serio/i8042-acpipnpio.h b/drivers/input/serio/i8042-acpipnpio.h
index 9c39553d30fa..0fd88bbfaee1 100644
--- a/drivers/input/serio/i8042-acpipnpio.h
+++ b/drivers/input/serio/i8042-acpipnpio.h
@@ -1707,6 +1707,9 @@ static int __init i8042_platform_init(void)
 		"");
 #endif
 
+	if (i8042_nokbd && i8042_noaux)
+		return -ENODEV;
+
 	retval = i8042_pnp_init();
 	if (retval)
 		return retval;
-- 
2.34.1





[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux