Skip to content
Commit 2ca492e2 authored by hotran's avatar hotran Committed by Guenter Roeck
Browse files

hwmon: (xgene) Fix crash when alarm occurs before driver probe



The system crashes during probing xgene-hwmon driver when temperature
alarm interrupt occurs before.
It's because
 - xgene_hwmon_probe() requests mailbox channel which also enables
   the mailbox interrupt.
 - As temperature alarm interrupt is pending, ISR runs and crashes when
   accesses into invalid resourse as unmapped PCC shared memory.

This patch fixes this issue by saving this alarm message and scheduling a
bottom handler after xgene_hwmon_probe() finish.

Signed-off-by: default avatarHoan Tran <hotran@apm.com>
Reported-by: default avatarItaru Kitayama <itaru.kitayama@riken.jp>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 9417fefe
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment