edac: Split EDAC set ctrl to set error_type and error_trigger
Split setting EDAC IBECC ctrl to setting error_type and error_trigger to make it easier for other platforms. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
f80628ba96
commit
2dc413aa74
5 changed files with 91 additions and 9 deletions
|
@ -172,7 +172,9 @@ static int cmd_inject_ctrl(const struct shell *shell, size_t argc, char **argv)
|
|||
shell_fprintf(shell, SHELL_NORMAL, "Set injection control to: 0x%x\n",
|
||||
value);
|
||||
|
||||
edac_inject_ctrl_set(dev, value);
|
||||
edac_inject_set_error_type(dev, value);
|
||||
|
||||
edac_inject_error_trigger(dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue