diff options
author | Maximilian Luz <luzmaximilian@gmail.com> | 2021-05-04 20:48:13 +0200 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2021-05-13 18:26:07 +0200 |
commit | e633f33d2669cb54db2846f9cde08662d254dbd3 (patch) | |
tree | a386f5a3a5294d679914a4736e1a5f771d491a87 /mm/mprotect.c | |
parent | 6efb943b8616ec53a5e444193dccf1af9ad627b5 (diff) |
power: supply: surface_battery: Fix battery event handling
The battery subsystem of the Surface Aggregator Module EC requires us to
register the battery notifier with instance ID 0. However, battery
events are actually sent with the instance ID corresponding to the
device, which is nonzero. Thus, the strict-matching approach doesn't
work here and will discard events that the driver is expected to handle.
To fix this we have to fall back on notifier matching by target-category
only and have to manually check the instance ID in the notifier
callback.
Fixes: 167f77f7d0b3 ("power: supply: Add battery driver for Surface Aggregator Module")
Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'mm/mprotect.c')
0 files changed, 0 insertions, 0 deletions