| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * PCI Dynamic LPAR, PCI Hot Plug and PCI EEH recovery code |
|---|
| 3 | 4 | * for RPA-compliant PPC64 platform. |
|---|
| .. | .. |
|---|
| 6 | 7 | * |
|---|
| 7 | 8 | * Updates, 2005, John Rose <johnrose@austin.ibm.com> |
|---|
| 8 | 9 | * Updates, 2005, Linas Vepstas <linas@austin.ibm.com> |
|---|
| 9 | | - * |
|---|
| 10 | | - * All rights reserved. |
|---|
| 11 | | - * |
|---|
| 12 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 13 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 14 | | - * the Free Software Foundation; either version 2 of the License, or (at |
|---|
| 15 | | - * your option) any later version. |
|---|
| 16 | | - * |
|---|
| 17 | | - * This program is distributed in the hope that it will be useful, but |
|---|
| 18 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 19 | | - * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or |
|---|
| 20 | | - * NON INFRINGEMENT. See the GNU General Public License for more |
|---|
| 21 | | - * details. |
|---|
| 22 | | - * |
|---|
| 23 | | - * You should have received a copy of the GNU General Public License |
|---|
| 24 | | - * along with this program; if not, write to the Free Software |
|---|
| 25 | | - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
|---|
| 26 | 10 | */ |
|---|
| 27 | 11 | |
|---|
| 28 | 12 | #include <linux/pci.h> |
|---|
| .. | .. |
|---|
| 50 | 34 | pci_devs_phb_init_dynamic(phb); |
|---|
| 51 | 35 | |
|---|
| 52 | 36 | /* Create EEH devices for the PHB */ |
|---|
| 53 | | - eeh_dev_phb_init_dynamic(phb); |
|---|
| 37 | + eeh_phb_pe_create(phb); |
|---|
| 54 | 38 | |
|---|
| 55 | 39 | if (dn->child) |
|---|
| 56 | | - eeh_add_device_tree_early(PCI_DN(dn)); |
|---|
| 40 | + pseries_eeh_init_edev_recursive(PCI_DN(dn)); |
|---|
| 57 | 41 | |
|---|
| 58 | 42 | pcibios_scan_phb(phb); |
|---|
| 59 | 43 | pcibios_finish_adding_to_bus(phb->bus); |
|---|