[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1468723822-30457-6-git-send-email-oss@buserror.net>
Date: Sat, 16 Jul 2016 21:50:22 -0500
From: Scott Wood <oss@...error.net>
To: linuxppc-dev@...ts.ozlabs.org
Cc: Yangbo Lu <yangbo.lu@....com>, linux-mmc@...r.kernel.org,
Arnd Bergmann <arnd@...db.de>, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, Scott Wood <oss@...error.net>
Subject: [PATCH v11 5/5] powerpc/fsl-pci: Use fsl_guts_get_svr()
Establish an initial user of fsl_guts_get_svr(), so that the code gets
some test coverage until users outside arch/powerpc can get converted.
Signed-off-by: Scott Wood <oss@...error.net>
---
arch/powerpc/Kconfig | 1 +
arch/powerpc/sysdev/fsl_pci.c | 6 +++++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index fcfe533..765df81 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -777,6 +777,7 @@ config FSL_PCI
bool
select PPC_INDIRECT_PCI
select PCI_QUIRKS
+ select FSL_GUTS
config FSL_PMC
bool
diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c
index 0fd1895..9ba570cf 100644
--- a/arch/powerpc/sysdev/fsl_pci.c
+++ b/arch/powerpc/sysdev/fsl_pci.c
@@ -22,6 +22,7 @@
#include <linux/delay.h>
#include <linux/string.h>
#include <linux/fsl/edac.h>
+#include <linux/fsl/guts.h>
#include <linux/fsl/svr.h>
#include <linux/init.h>
#include <linux/interrupt.h>
@@ -529,7 +530,10 @@ int fsl_add_bridge(struct platform_device *pdev, int is_primary)
struct device_node *dev;
struct ccsr_pci __iomem *pci;
u16 temp;
- u32 svr = mfspr(SPRN_SVR);
+ u32 svr;
+
+ fsl_guts_init();
+ svr = fsl_guts_get_svr();
dev = pdev->dev.of_node;
--
2.7.4
Powered by blists - more mailing lists