Re: [PATCH v2] [POWERPC] 4xx: Add endpoint support to 4xx PCIe driver

2008-04-25 Thread Benjamin Herrenschmidt
On Mon, 2008-04-21 at 16:54 +0200, Stefan Roese wrote: This patch adds basic endpoint support to the 4xx PCIe driver. This is done by checking the device_type property of the PCIe device node (pci for root-complex and pci-endpoint for endpoint configuration). Note: Currently we map a

Re: [PATCH v2] [POWERPC] 4xx: Add endpoint support to 4xx PCIe driver

2008-04-25 Thread Josh Boyer
On Fri, 25 Apr 2008 16:24:01 +1000 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: On Mon, 2008-04-21 at 16:54 +0200, Stefan Roese wrote: This patch adds basic endpoint support to the 4xx PCIe driver. This is done by checking the device_type property of the PCIe device node (pci for

Re: [PATCH v2] [POWERPC] 4xx: Add endpoint support to 4xx PCIe driver

2008-04-25 Thread Benjamin Herrenschmidt
On Fri, 2008-04-25 at 05:37 -0500, Josh Boyer wrote: On Fri, 25 Apr 2008 16:24:01 +1000 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: On Mon, 2008-04-21 at 16:54 +0200, Stefan Roese wrote: This patch adds basic endpoint support to the 4xx PCIe driver. This is done by checking

Re: [PATCH v2] [POWERPC] 4xx: Add endpoint support to 4xx PCIe driver

2008-04-25 Thread Josh Boyer
On Fri, 25 Apr 2008 22:58:04 +1000 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: On Fri, 2008-04-25 at 05:37 -0500, Josh Boyer wrote: On Fri, 25 Apr 2008 16:24:01 +1000 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: On Mon, 2008-04-21 at 16:54 +0200, Stefan Roese wrote:

Re: [PATCH v2] [POWERPC] 4xx: Add endpoint support to 4xx PCIe driver

2008-04-25 Thread Kumar Gala
On Apr 25, 2008, at 8:19 AM, Josh Boyer wrote: On Fri, 25 Apr 2008 22:58:04 +1000 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: On Fri, 2008-04-25 at 05:37 -0500, Josh Boyer wrote: On Fri, 25 Apr 2008 16:24:01 +1000 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: On Mon, 2008-04-21 at

[PATCH v2] [POWERPC] 4xx: Add endpoint support to 4xx PCIe driver

2008-04-21 Thread Stefan Roese
This patch adds basic endpoint support to the 4xx PCIe driver. This is done by checking the device_type property of the PCIe device node (pci for root-complex and pci-endpoint for endpoint configuration). Note: Currently we map a fixed 64MByte window to PLB address 0 (SDRAM). This should

Re: [PATCH v2] [POWERPC] 4xx: Add endpoint support to 4xx PCIe driver

2008-04-21 Thread Benjamin Herrenschmidt
On Mon, 2008-04-21 at 16:54 +0200, Stefan Roese wrote: -- - As suggested by Benjamin Herrenschmidt, don't determine endpoint mode by looking at the already configured PCIe port state, but evaluate the device_type property instead. This makes it possible for boards without

Re: [PATCH v2] [POWERPC] 4xx: Add endpoint support to 4xx PCIe driver

2008-04-21 Thread Stefan Roese
On Monday 21 April 2008, Benjamin Herrenschmidt wrote: On Mon, 2008-04-21 at 16:54 +0200, Stefan Roese wrote: -- - As suggested by Benjamin Herrenschmidt, don't determine endpoint mode by looking at the already configured PCIe port state, but evaluate the device_type