Files
linux/arch/powerpc/kernel
Michal Suchanek df2bf4fa31 powerpc/fadump: Return error when fadump registration fails
commit 98b8cd7f75 upstream.

 - log an error message when registration fails and no error code listed
   in the switch is returned
 - translate the hv error code to posix error code and return it from
   fw_register
 - return the posix error code from fw_register to the process writing
   to sysfs
 - return EEXIST on re-registration
 - return success on deregistration when fadump is not registered
 - return ENODEV when no memory is reserved for fadump

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Tested-by: Hari Bathini <hbathini@linux.vnet.ibm.com>
[mpe: Use pr_err() to shrink the error print]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Cc: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-15 08:56:23 +09:00
..
2007-05-11 05:38:25 -04:00
2016-06-14 13:58:26 +10:00
2016-06-21 15:30:56 +10:00
2014-11-27 09:32:58 +11:00
2016-08-07 23:50:09 -04:00
2016-08-07 23:50:09 -04:00
2015-08-06 15:10:20 +10:00
2011-03-31 11:26:23 -03:00
2016-08-07 23:50:09 -04:00
2015-03-24 13:15:52 +11:00
2016-07-15 14:57:47 +10:00
2011-03-31 11:26:23 -03:00
2016-06-14 13:58:26 +10:00
2011-03-31 11:26:23 -03:00
2015-04-07 17:15:13 +10:00
2016-08-09 16:52:00 +10:00