diff options
-rw-r--r-- | board/hatch_fp/board_rw.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/board/hatch_fp/board_rw.c b/board/hatch_fp/board_rw.c index 74794647cf..bfea56508c 100644 --- a/board/hatch_fp/board_rw.c +++ b/board/hatch_fp/board_rw.c @@ -101,6 +101,10 @@ void board_init_rw(void) gpio_enable_interrupt(GPIO_SLP_ALT_L); gpio_enable_interrupt(GPIO_SLP_L); - /* enable the SPI slave interface if the PCH is up */ - hook_call_deferred(&ap_deferred_data, 0); + /* + * Enable the SPI slave interface if the PCH is up. + * Do not use hook_call_deferred(), because ap_deferred() will be + * called after tasks with priority higher than HOOK task (very late). + */ + ap_deferred(); } |