diff options
author | Jia He <justin.he@arm.com> | 2022-10-10 02:35:57 +0000 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2022-10-21 22:09:54 +0200 |
commit | 315bada690e0c4a5c268a1dd3601aefd3355773f (patch) | |
tree | 944ab33e07d51e69893ee76f73fa095b49f9b207 /drivers/edac/layerscape_edac.c | |
parent | 802e7f1dfed7cc7fb309995e0c4138f08977fdfc (diff) | |
download | linux-stable-315bada690e0c4a5c268a1dd3601aefd3355773f.tar.gz linux-stable-315bada690e0c4a5c268a1dd3601aefd3355773f.tar.bz2 linux-stable-315bada690e0c4a5c268a1dd3601aefd3355773f.zip |
EDAC: Check for GHES preference in the chipset-specific EDAC drivers
Call ghes_get_devices() to check whether ghes_edac should be used on the
platform where it is preferred over the corresponding chipset-specific
EDAC driver.
Unlike the existing edac_get_owner() check, the ghes_get_devices() check
works independent to the module_init ordering.
[ bp: Massage. ]
Suggested-by: Toshi Kani <toshi.kani@hpe.com>
Signed-off-by: Jia He <justin.he@arm.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20221010023559.69655-6-justin.he@arm.com
Diffstat (limited to 'drivers/edac/layerscape_edac.c')
-rw-r--r-- | drivers/edac/layerscape_edac.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/edac/layerscape_edac.c b/drivers/edac/layerscape_edac.c index 94cac7686a56..35ceaca578e1 100644 --- a/drivers/edac/layerscape_edac.c +++ b/drivers/edac/layerscape_edac.c @@ -38,6 +38,9 @@ static int __init fsl_ddr_mc_init(void) { int res; + if (ghes_get_devices()) + return -EBUSY; + /* make sure error reporting method is sane */ switch (edac_op_state) { case EDAC_OPSTATE_POLL: |