]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/fsl-pci: use 'Header Type' to identify PCIE mode
authorMinghuan Lian <Minghuan.Lian@freescale.com>
Mon, 24 Sep 2012 05:50:52 +0000 (13:50 +0800)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 27 Sep 2012 12:31:58 +0000 (07:31 -0500)
commit59c58c324a81cfb08c490384a7c292b82609673a
treec4dfb067e4ed4db88d1f5fac7d319ba7e0f70feb
parent7844663a31e97930e3949430573452ac245bfdd5
powerpc/fsl-pci: use 'Header Type' to identify PCIE mode

The original code uses 'Programming Interface' field to judge if PCIE is
EP or RC mode, however, some latest silicons do not support this
functionality.  According to PCIE specification, 'Header Type' offset 0x0e
is used to indicate header type, so change code to use 'Header Type' field
to judge PCIE mode. Because FSL PCI controller does not support
'Header Type', patch still uses 'Programming Interface' to identify PCI
mode.

Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com>
Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/fsl_pci.c