]> www.infradead.org Git - users/dwmw2/linux.git/commit
platform/surface: aggregator_tabletsw: Add support for book mode in KIP subsystem
authorMaximilian Luz <luzmaximilian@gmail.com>
Thu, 25 May 2023 21:32:17 +0000 (23:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jun 2023 09:15:15 +0000 (11:15 +0200)
commitec2e12b14aa08b13cac1bd4b311a29ca2d3e4da9
tree43822d9217e713a250b24907f55ce3ec800691eb
parent24845da026b8696134aa491339fdc6eecd19d466
platform/surface: aggregator_tabletsw: Add support for book mode in KIP subsystem

[ Upstream commit 9bed667033e66083d363a11e9414ad401ecc242c ]

Devices with a type-cover have an additional "book" mode, deactivating
type-cover input and turning off its backlight. This is currently
unsupported, leading to the warning

  surface_aggregator_tablet_mode_switch 01:0e:01:00:01: unknown KIP cover state: 6

Therefore, add support for this state and map it to enable tablet-mode.

Fixes: 9f794056db5b ("platform/surface: Add KIP/POS tablet-mode switch driver")
Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20230525213218.2797480-2-luzmaximilian@gmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/surface/surface_aggregator_tabletsw.c