Skip to content

Commit

Permalink
power: Reset KBC on CPU reset
Browse files Browse the repository at this point in the history
Ensure the keyboard controller is not left locked/disabled.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
  • Loading branch information
crawfxrd authored and jackpot51 committed Jul 22, 2023
1 parent de546fa commit 4552064
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/board/system76/common/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <board/config.h>
#include <board/fan.h>
#include <board/gpio.h>
#include <board/kbc.h>
#include <board/kbled.h>
#include <board/lid.h>
#include <board/peci.h>
Expand Down Expand Up @@ -341,7 +342,8 @@ void power_cpu_reset(void) {
acpi_reset();
// Reset fans
fan_reset();
//TODO: reset KBC and touchpad states
//TODO: reset touchpad states
kbc_reset();
kbled_reset();
// Set PL4
//TODO: if this returns false, retry?
Expand Down

0 comments on commit 4552064

Please sign in to comment.