]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
platform/x86: intel-vbtn: Only activate tablet mode switch on 2-in-1's
authorMario Limonciello <mario.limonciello@dell.com>
Thu, 22 Feb 2018 19:58:42 +0000 (13:58 -0600)
committerDarren Hart (VMware) <dvhart@infradead.org>
Sat, 24 Feb 2018 21:37:37 +0000 (13:37 -0800)
commit027d50ccd6a01c6ca8969b49e69f26d64a8f94b2
tree22a50fd014b2ff91a69989c8f5281dcaf5b5f5ec
parent819cddae7cfa9b7673c24c338199274ba175e2b3
platform/x86: intel-vbtn: Only activate tablet mode switch on 2-in-1's

Some laptops such as the XPS 9360 support the intel-vbtn INT33D6
interface but don't initialize the bit that intel-vbtn uses to
represent switching tablet mode.

By running this only on real 2-in-1's it shouldn't cause false
positives.

Fixes: 30323fb6d5 ("Support tablet mode switch")
Reported-by: Jeremy Cline <jeremy@jcline.org>
Signed-off-by: Mario Limonciello <mario.limonciello@dell.com>
Tested-by: Jeremy Cline <jeremy@jcline.org>
Tested-by: Darren Hart (VMware) <dvhart@infradead.org>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/intel-vbtn.c