]> git.baikalelectronics.ru Git - kernel.git/commit
platform/surface: aggregator: Fix event disable function
authorMaximilian Luz <luzmaximilian@gmail.com>
Thu, 3 Jun 2021 00:06:36 +0000 (02:06 +0200)
committerHans de Goede <hdegoede@redhat.com>
Wed, 16 Jun 2021 15:47:51 +0000 (17:47 +0200)
commitc481df2ae349316fae52139958a3c23f60b3bcfb
tree0952c8de0b23e8a39dd6857ed7c67321f0eeb634
parentd62bc5ef3fafcc6cf68d34cfb9fba60ae3740420
platform/surface: aggregator: Fix event disable function

Disabling events silently fails due to the wrong command ID being used.
Instead of the command ID for the disable call, the command ID for the
enable call was being used. This causes the disable call to enable the
event instead. As the event is already enabled when we call this
function, the EC silently drops this command and does nothing.

Use the correct command ID for disabling the event to fix this.

Fixes: 1dddf157a63b ("platform/surface: Add Surface Aggregator subsystem")
Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20210603000636.568846-1-luzmaximilian@gmail.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/surface/aggregator/controller.c