]> git.baikalelectronics.ru Git - kernel.git/commit
s390/pci: obtain function handle in hotplug notifier
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Wed, 18 Dec 2013 15:46:02 +0000 (16:46 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 30 Dec 2013 10:28:47 +0000 (11:28 +0100)
commit8c660634caa964d3529baa744142be3bf75325f4
treee1a0020a0f2efce7444fe7ec7a166f662b71fd8c
parentf16c1cdabfa9dd06fbe2820af0012d1192bf78cc
s390/pci: obtain function handle in hotplug notifier

When using the CLP interface to enable or disable a pci device a
valid function handle needs to be delivered. So far our assumption
was that we always have an up-to-date version of the function handle
(since it doesn't change when the device is in use). This assumption
is incorrect if the pci device is enabled or disabled outside of our
control. When we are notified about such a change we already receive
the new function handle. Just use it.

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