diff options
author | Gavin Shan <gwshan@linux.vnet.ibm.com> | 2015-02-15 22:45:42 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2015-03-16 19:31:19 -0400 |
commit | 95edcdeadf1e838c7d6f1ef43194128d823c61a1 (patch) | |
tree | 67553715d6aee62cf534e7a3ba19e83974394fb1 /arch | |
parent | 4cf17445589932155797444687dca1ef2dd47f10 (diff) |
powerpc/powernv: Drop PHB operation get_log()
The patch drops PHB operation get_log() and merges its logic to
eeh_ops::get_log().
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/powernv/eeh-ioda.c | 20 | ||||
-rw-r--r-- | arch/powerpc/platforms/powernv/eeh-powernv.c | 10 | ||||
-rw-r--r-- | arch/powerpc/platforms/powernv/pci.h | 2 |
3 files changed, 3 insertions, 29 deletions
diff --git a/arch/powerpc/platforms/powernv/eeh-ioda.c b/arch/powerpc/platforms/powernv/eeh-ioda.c index bd509ad08211..7eb6e724fbc9 100644 --- a/arch/powerpc/platforms/powernv/eeh-ioda.c +++ b/arch/powerpc/platforms/powernv/eeh-ioda.c | |||
@@ -531,25 +531,6 @@ static int ioda_eeh_reset(struct eeh_pe *pe, int option) | |||
531 | } | 531 | } |
532 | 532 | ||
533 | /** | 533 | /** |
534 | * ioda_eeh_get_log - Retrieve error log | ||
535 | * @pe: frozen PE | ||
536 | * @severity: permanent or temporary error | ||
537 | * @drv_log: device driver log | ||
538 | * @len: length of device driver log | ||
539 | * | ||
540 | * Retrieve error log, which contains log from device driver | ||
541 | * and firmware. | ||
542 | */ | ||
543 | static int ioda_eeh_get_log(struct eeh_pe *pe, int severity, | ||
544 | char *drv_log, unsigned long len) | ||
545 | { | ||
546 | if (!eeh_has_flag(EEH_EARLY_DUMP_LOG)) | ||
547 | pnv_pci_dump_phb_diag_data(pe->phb, pe->data); | ||
548 | |||
549 | return 0; | ||
550 | } | ||
551 | |||
552 | /** | ||
553 | * ioda_eeh_configure_bridge - Configure the PCI bridges for the indicated PE | 534 | * ioda_eeh_configure_bridge - Configure the PCI bridges for the indicated PE |
554 | * @pe: EEH PE | 535 | * @pe: EEH PE |
555 | * | 536 | * |
@@ -905,7 +886,6 @@ struct pnv_eeh_ops ioda_eeh_ops = { | |||
905 | .set_option = ioda_eeh_set_option, | 886 | .set_option = ioda_eeh_set_option, |
906 | .get_state = ioda_eeh_get_state, | 887 | .get_state = ioda_eeh_get_state, |
907 | .reset = ioda_eeh_reset, | 888 | .reset = ioda_eeh_reset, |
908 | .get_log = ioda_eeh_get_log, | ||
909 | .configure_bridge = ioda_eeh_configure_bridge, | 889 | .configure_bridge = ioda_eeh_configure_bridge, |
910 | .next_error = ioda_eeh_next_error | 890 | .next_error = ioda_eeh_next_error |
911 | }; | 891 | }; |
diff --git a/arch/powerpc/platforms/powernv/eeh-powernv.c b/arch/powerpc/platforms/powernv/eeh-powernv.c index 641ba3378ccf..465deb5f5f46 100644 --- a/arch/powerpc/platforms/powernv/eeh-powernv.c +++ b/arch/powerpc/platforms/powernv/eeh-powernv.c | |||
@@ -533,14 +533,10 @@ static int pnv_eeh_wait_state(struct eeh_pe *pe, int max_wait) | |||
533 | static int pnv_eeh_get_log(struct eeh_pe *pe, int severity, | 533 | static int pnv_eeh_get_log(struct eeh_pe *pe, int severity, |
534 | char *drv_log, unsigned long len) | 534 | char *drv_log, unsigned long len) |
535 | { | 535 | { |
536 | struct pci_controller *hose = pe->phb; | 536 | if (!eeh_has_flag(EEH_EARLY_DUMP_LOG)) |
537 | struct pnv_phb *phb = hose->private_data; | 537 | pnv_pci_dump_phb_diag_data(pe->phb, pe->data); |
538 | int ret = -EEXIST; | ||
539 | 538 | ||
540 | if (phb->eeh_ops && phb->eeh_ops->get_log) | 539 | return 0; |
541 | ret = phb->eeh_ops->get_log(pe, severity, drv_log, len); | ||
542 | |||
543 | return ret; | ||
544 | } | 540 | } |
545 | 541 | ||
546 | /** | 542 | /** |
diff --git a/arch/powerpc/platforms/powernv/pci.h b/arch/powerpc/platforms/powernv/pci.h index c7e047f19528..1e7a623cbff4 100644 --- a/arch/powerpc/platforms/powernv/pci.h +++ b/arch/powerpc/platforms/powernv/pci.h | |||
@@ -81,8 +81,6 @@ struct pnv_eeh_ops { | |||
81 | int (*set_option)(struct eeh_pe *pe, int option); | 81 | int (*set_option)(struct eeh_pe *pe, int option); |
82 | int (*get_state)(struct eeh_pe *pe); | 82 | int (*get_state)(struct eeh_pe *pe); |
83 | int (*reset)(struct eeh_pe *pe, int option); | 83 | int (*reset)(struct eeh_pe *pe, int option); |
84 | int (*get_log)(struct eeh_pe *pe, int severity, | ||
85 | char *drv_log, unsigned long len); | ||
86 | int (*configure_bridge)(struct eeh_pe *pe); | 84 | int (*configure_bridge)(struct eeh_pe *pe); |
87 | int (*next_error)(struct eeh_pe **pe); | 85 | int (*next_error)(struct eeh_pe **pe); |
88 | }; | 86 | }; |