Re: [PATCH] pci: aardvark: Wait for endpoint to be ready before training link

2019-04-26 Thread Lorenzo Pieralisi
On Fri, Apr 26, 2019 at 11:10:50AM -0500, Bjorn Helgaas wrote: > On Thu, Apr 25, 2019 at 11:08:27PM +0200, Remi Pommarel wrote: > > On Wed, Apr 24, 2019 at 05:50:02PM +0100, Lorenzo Pieralisi wrote: > > > On Wed, Apr 24, 2019 at 12:29:18AM +0200, Remi Pommarel wrote: > > > > On Tue, Apr 23, 2019 at

Re: [PATCH] pci: aardvark: Wait for endpoint to be ready before training link

2019-04-26 Thread Bjorn Helgaas
On Thu, Apr 25, 2019 at 11:08:27PM +0200, Remi Pommarel wrote: > On Wed, Apr 24, 2019 at 05:50:02PM +0100, Lorenzo Pieralisi wrote: > > On Wed, Apr 24, 2019 at 12:29:18AM +0200, Remi Pommarel wrote: > > > On Tue, Apr 23, 2019 at 05:32:15PM +0100, Lorenzo Pieralisi wrote: > > > > On Wed, Mar 13, 201

Re: [PATCH] pci: aardvark: Wait for endpoint to be ready before training link

2019-04-25 Thread Remi Pommarel
On Wed, Apr 24, 2019 at 05:50:02PM +0100, Lorenzo Pieralisi wrote: > On Wed, Apr 24, 2019 at 12:29:18AM +0200, Remi Pommarel wrote: > > Hi, > > > > On Tue, Apr 23, 2019 at 05:32:15PM +0100, Lorenzo Pieralisi wrote: > > > On Wed, Mar 13, 2019 at 10:37:52PM +0100, Remi Pommarel wrote: > > > > When c

Re: [PATCH] pci: aardvark: Wait for endpoint to be ready before training link

2019-04-25 Thread Bjorn Helgaas
On Wed, Mar 13, 2019 at 10:37:52PM +0100, Remi Pommarel wrote: > When configuring pcie reset pin from gpio (e.g. initially set by > u-boot) to pcie function this pin goes low for a brief moment > asserting the PERST# signal. Thus connected device enters fundamental > reset process and link configur

Re: [PATCH] pci: aardvark: Wait for endpoint to be ready before training link

2019-04-24 Thread Lorenzo Pieralisi
On Wed, Apr 24, 2019 at 12:29:18AM +0200, Remi Pommarel wrote: > Hi, > > On Tue, Apr 23, 2019 at 05:32:15PM +0100, Lorenzo Pieralisi wrote: > > On Wed, Mar 13, 2019 at 10:37:52PM +0100, Remi Pommarel wrote: > > > When configuring pcie reset pin from gpio (e.g. initially set by > > > u-boot) to pci

Re: [PATCH] pci: aardvark: Wait for endpoint to be ready before training link

2019-04-23 Thread Remi Pommarel
Hi, On Tue, Apr 23, 2019 at 05:32:15PM +0100, Lorenzo Pieralisi wrote: > On Wed, Mar 13, 2019 at 10:37:52PM +0100, Remi Pommarel wrote: > > When configuring pcie reset pin from gpio (e.g. initially set by > > u-boot) to pcie function this pin goes low for a brief moment > > asserting the PERST# si

Re: [PATCH] pci: aardvark: Wait for endpoint to be ready before training link

2019-04-23 Thread Lorenzo Pieralisi
On Wed, Mar 13, 2019 at 10:37:52PM +0100, Remi Pommarel wrote: > When configuring pcie reset pin from gpio (e.g. initially set by > u-boot) to pcie function this pin goes low for a brief moment > asserting the PERST# signal. Thus connected device enters fundamental > reset process and link configur

[PATCH] pci: aardvark: Wait for endpoint to be ready before training link

2019-03-13 Thread Remi Pommarel
When configuring pcie reset pin from gpio (e.g. initially set by u-boot) to pcie function this pin goes low for a brief moment asserting the PERST# signal. Thus connected device enters fundamental reset process and link configuration can only begin after a minimal 100ms delay (see [1]). This makes