OSDN Git Service

powerpc/eeh: Clean up and document event handling functions
authorRussell Currey <ruscur@russell.cc>
Wed, 19 Apr 2017 07:39:27 +0000 (17:39 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 2 May 2017 12:41:43 +0000 (22:41 +1000)
commitc0b64978f09195e00d6649ca0ad0242a80e6e99a
tree520d090ebfa76698aa0ddefb33909fac4a13d45a
parentdaeba2956f32f91f3493788ff6ee02fb1b2f02fa
powerpc/eeh: Clean up and document event handling functions

Remove unnecessary tags in eeh_handle_normal_event(), and add function
comments for eeh_handle_normal_event() and eeh_handle_special_event().

The only functional difference is that in the case of a PE reaching the
maximum number of failures, rather than one message telling you of this
and suggesting you reseat the device, there are two separate messages.

Suggested-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Russell Currey <ruscur@russell.cc>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Reviewed-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/eeh_driver.c