]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PCI: designware: Fix configuration base address when using 'reg'
authorMinghuan Lian <Minghuan.Lian@freescale.com>
Tue, 23 Sep 2014 14:28:56 +0000 (22:28 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 24 Sep 2014 13:01:47 +0000 (07:01 -0600)
commitec98e9ab6f2475ff57c12d069e78b90548c0f60e
treebc805deeeb15cd11d1b2e457cec031ca5ba3a8c2
parent9f0dbe087bff6cfffcf8b0c25c08891d66b987be
PCI: designware: Fix configuration base address when using 'reg'

The code has calculated cfg0_base and cfg1_base when parsing 'reg' or
'ranges' property of PCI DTS node, so remove duplicate calculation.  When
using 'reg', resource cfg is not used, so this code computed an incorrect
configuration base.

Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Mohit KUMAR <mohit.kumar@st.com>
drivers/pci/host/pcie-designware.c