[PATCH 2/6] powerpc/eeh: Check PCIe link after reset

2013-06-25 Thread Gavin Shan
After reset (e.g. complete reset) in order to bring the fenced PHB back, the PCIe link might not be ready yet. The patch intends to make sure the PCIe link is ready before accessing its subordinate PCI devices. The patch also fixes that wrong values restored to PCI_COMMAND register for PCI bridges.

Re: [PATCH 2/6] powerpc/eeh: Check PCIe link after reset

2013-06-25 Thread Gavin Shan
On Tue, Jun 25, 2013 at 09:58:40PM +1000, Benjamin Herrenschmidt wrote: >On Tue, 2013-06-25 at 18:00 +0800, Gavin Shan wrote: >> After reset (e.g. complete reset) in order to bring the fenced PHB >> back, the PCIe link might not be ready yet. The patch intends to >> make sure the PCIe link is ready

Re: [PATCH 2/6] powerpc/eeh: Check PCIe link after reset

2013-06-25 Thread Benjamin Herrenschmidt
On Tue, 2013-06-25 at 18:00 +0800, Gavin Shan wrote: > After reset (e.g. complete reset) in order to bring the fenced PHB > back, the PCIe link might not be ready yet. The patch intends to > make sure the PCIe link is ready before accessing its subordinate > PCI devices. The patch also fixes that w

[PATCH 2/6] powerpc/eeh: Check PCIe link after reset

2013-06-25 Thread Gavin Shan
After reset (e.g. complete reset) in order to bring the fenced PHB back, the PCIe link might not be ready yet. The patch intends to make sure the PCIe link is ready before accessing its subordinate PCI devices. The patch also fixes that wrong values restored to PCI_COMMAND register for PCI bridges.