Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1444999
| From | Scott Wood <oss@buserror.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v11 5/5] powerpc/fsl-pci: Use fsl_guts_get_svr() |
| Date | 2016-07-17 05:00 +0200 |
| Message-ID | <rVKtb-3yt-1@gated-at.bofh.it> (permalink) |
| References | <rVKtb-3yt-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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@buserror.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
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH v11 5/5] powerpc/fsl-pci: Use fsl_guts_get_svr() Scott Wood <oss@buserror.net> - 2016-07-17 05:00 +0200
csiph-web