Skip to content

Commit 77b246b

Browse files
Tyler Baicarwildea01
authored andcommitted
acpi: apei: check for pending errors when probing GHES entries
Check for pending errors when probing GHES entries. It is possible that a fatal error is already pending at this point, so we should handle it as soon as the driver is probed. This also avoids a potential issue if there was an interrupt that was already cleared for an error since the GHES driver wasn't present. Signed-off-by: Tyler Baicar <tbaicar@codeaurora.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
1 parent 621f48e commit 77b246b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎drivers/acpi/apei/ghes.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,6 +1179,9 @@ static int ghes_probe(struct platform_device *ghes_dev)
11791179
}
11801180
platform_set_drvdata(ghes_dev, ghes);
11811181

1182+
/* Handle any pending errors right away */
1183+
ghes_proc(ghes);
1184+
11821185
return 0;
11831186
err_edac_unreg:
11841187
ghes_edac_unregister(ghes);

0 commit comments

Comments
 (0)