]> git.baikalelectronics.ru Git - kernel.git/commit
s390/pci: set error state for unavailable functions
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Thu, 12 Dec 2013 16:53:11 +0000 (17:53 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 16 Dec 2013 13:37:55 +0000 (14:37 +0100)
commite0eb9f5704ca883aef4f1bd79754a1073820b6ba
treea663713f196c4d5fdb9f41aa680e9b554a8e6f84
parent33504004f3ddc83dff61cd18f1d53a712cf25257
s390/pci: set error state for unavailable functions

If we receive a notification that a pci function became unavailable we clean
up by removing the pci device. This can confuse the driver since the function
is already unaccessible. Improve this situation by setting an appropriate
error_state.

Reviewed-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/pci/pci_event.c