linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PCI: designware: Remove unnecessary RC BAR setting
@ 2014-04-01 10:30 Jingoo Han
  2014-04-02  4:57 ` Mohit KUMAR DCG
  0 siblings, 1 reply; 10+ messages in thread
From: Jingoo Han @ 2014-04-01 10:30 UTC (permalink / raw)
  To: 'Bjorn Helgaas'
  Cc: linux-pci, 'Mohit Kumar', 'Pratyush Anand',
	'Marek Vasut', 'Richard Zhu',
	'Kishon Vijay Abraham I', 'Jingoo Han'

According to the spec, the synopsys core does not implement the
optional BARs such as BAR0/1. This is based on the assumption
that the RC host probably has registers on some other internal
bus and has knowledge and setup access to these registers already.
So, remove unnecessary RC BAR setting.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
Tested on Exynos5440.

 drivers/pci/host/pcie-designware.c |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/pci/host/pcie-designware.c b/drivers/pci/host/pcie-designware.c
index 6d23d8c..7bee01f 100644
--- a/drivers/pci/host/pcie-designware.c
+++ b/drivers/pci/host/pcie-designware.c
@@ -798,10 +798,6 @@ void dw_pcie_setup_rc(struct pcie_port *pp)
 	}
 	dw_pcie_writel_rc(pp, val, PCIE_LINK_WIDTH_SPEED_CONTROL);
 
-	/* setup RC BARs */
-	dw_pcie_writel_rc(pp, 0x00000004, PCI_BASE_ADDRESS_0);
-	dw_pcie_writel_rc(pp, 0x00000000, PCI_BASE_ADDRESS_1);
-
 	/* setup interrupt pins */
 	dw_pcie_readl_rc(pp, PCI_INTERRUPT_LINE, &val);
 	val &= 0xffff00ff;
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-04-25  1:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-01 10:30 [PATCH] PCI: designware: Remove unnecessary RC BAR setting Jingoo Han
2014-04-02  4:57 ` Mohit KUMAR DCG
2014-04-02  5:22   ` Jingoo Han
2014-04-02  5:33     ` Mohit KUMAR DCG
2014-04-02  5:34       ` Kishon Vijay Abraham I
2014-04-02 10:34         ` Marek Vasut
2014-04-02 11:58           ` Hong-Xing.Zhu
2014-04-04  2:31             ` Jingoo Han
2014-04-24 21:35               ` Bjorn Helgaas
2014-04-25  1:04                 ` Jingoo Han

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).