diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2013-04-16 08:11:14 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-04-17 08:07:35 -0400 |
commit | a2ab833360abbed3321fd694b69a5a32ee15785f (patch) | |
tree | bdf3d75949f7510d4bacfcbddcbe640c9e4cdca3 /drivers/pci/hotplug | |
parent | ea793788f8ec868e655920f4726b2bd6a881e5ae (diff) |
s390/pci: debug device states
Use the debugfs to keep track of a pci function's status changes.
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>
Diffstat (limited to 'drivers/pci/hotplug')
-rw-r--r-- | drivers/pci/hotplug/s390_pci_hpc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/hotplug/s390_pci_hpc.c b/drivers/pci/hotplug/s390_pci_hpc.c index 7db249a25016..6053e7221b51 100644 --- a/drivers/pci/hotplug/s390_pci_hpc.c +++ b/drivers/pci/hotplug/s390_pci_hpc.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/pci.h> | 16 | #include <linux/pci.h> |
17 | #include <linux/pci_hotplug.h> | 17 | #include <linux/pci_hotplug.h> |
18 | #include <linux/init.h> | 18 | #include <linux/init.h> |
19 | #include <asm/pci_debug.h> | ||
19 | #include <asm/sclp.h> | 20 | #include <asm/sclp.h> |
20 | 21 | ||
21 | #define SLOT_NAME_SIZE 10 | 22 | #define SLOT_NAME_SIZE 10 |
@@ -49,6 +50,7 @@ static int enable_slot(struct hotplug_slot *hotplug_slot) | |||
49 | return -EIO; | 50 | return -EIO; |
50 | 51 | ||
51 | rc = sclp_pci_configure(slot->zdev->fid); | 52 | rc = sclp_pci_configure(slot->zdev->fid); |
53 | zpci_dbg(3, "conf fid:%x, rc:%d\n", slot->zdev->fid, rc); | ||
52 | if (!rc) { | 54 | if (!rc) { |
53 | slot->zdev->state = ZPCI_FN_STATE_CONFIGURED; | 55 | slot->zdev->state = ZPCI_FN_STATE_CONFIGURED; |
54 | /* automatically scan the device after is was configured */ | 56 | /* automatically scan the device after is was configured */ |
@@ -70,6 +72,7 @@ static int disable_slot(struct hotplug_slot *hotplug_slot) | |||
70 | * or do we need to trigger that here? | 72 | * or do we need to trigger that here? |
71 | */ | 73 | */ |
72 | rc = sclp_pci_deconfigure(slot->zdev->fid); | 74 | rc = sclp_pci_deconfigure(slot->zdev->fid); |
75 | zpci_dbg(3, "deconf fid:%x, rc:%d\n", slot->zdev->fid, rc); | ||
73 | if (!rc) { | 76 | if (!rc) { |
74 | /* Fixme: better call List-PCI to find the disabled FH | 77 | /* Fixme: better call List-PCI to find the disabled FH |
75 | for the FID since the FH should be opaque... */ | 78 | for the FID since the FH should be opaque... */ |