Re: [PATCH 0/2] PCI: altera: fix link retrain

From: Bjorn Helgaas
Date: Fri Jul 22 2016 - 17:07:15 EST


On Tue, Jun 21, 2016 at 04:53:11PM +0800, Ley Foon Tan wrote:
> This 2 patches fix the issue before and after retrain link.
>
> Ley Foon Tan (2):
> PCI: altera: check link status before retrain link
> PCI: altera: Polling for link up status after retrain the link
>
> drivers/pci/host/pcie-altera.c | 48 +++++++++++++++++++++++++++---------------
> 1 file changed, 31 insertions(+), 17 deletions(-)

I applied these to pci/host-altera for v4.8, thanks!

I split the code move into its own patch so the bug fix is clearly
visible. I also fixed these whitespace errors:

if(!altera_pcie_link_is_up(pcie))
while(!altera_pcie_link_is_up(pcie)) {

A space is required after "if" and "while".