diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2013-08-29 21:35:19 +0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-08-30 10:57:12 +0400 |
commit | 0ff70ec88ba61f72b05b365a21fbd8aa60436254 (patch) | |
tree | 0e45820fc2aaf256dc758a4ea4f83f6a2f961546 /arch/s390/pci/pci.c | |
parent | cb8091828757bbc9459ef59248f4a793e681f8cd (diff) | |
download | linux-0ff70ec88ba61f72b05b365a21fbd8aa60436254.tar.xz |
s390/pci: add recover sysfs knob
Add an arch specific attribute to recover a pci function from an
error state or config space blockage.
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/pci/pci.c')
-rw-r--r-- | arch/s390/pci/pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/pci/pci.c b/arch/s390/pci/pci.c index 61167b1209a3..b0ccd424308a 100644 --- a/arch/s390/pci/pci.c +++ b/arch/s390/pci/pci.c @@ -791,6 +791,8 @@ int zpci_enable_device(struct zpci_dev *zdev) rc = zpci_dma_init_device(zdev); if (rc) goto out_dma; + + zdev->state = ZPCI_FN_STATE_ONLINE; return 0; out_dma: @@ -819,8 +821,6 @@ int zpci_create_device(struct zpci_dev *zdev) rc = zpci_enable_device(zdev); if (rc) goto out_free; - - zdev->state = ZPCI_FN_STATE_ONLINE; } rc = zpci_scan_bus(zdev); if (rc) |