Thread (4 messages) 4 messages, 3 authors, 2017-07-24

Re: [PATCH] qe: fix compile issue for arm64

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2017-07-21 06:34:26
Also in: lkml

Zhao Qiang [off-list ref] writes:
quoted hunk ↗ jump to hunk
Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
---
 drivers/soc/fsl/qe/qe.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/drivers/soc/fsl/qe/qe.c b/drivers/soc/fsl/qe/qe.c
index 2ef6fc6..d48fa4a 100644
--- a/drivers/soc/fsl/qe/qe.c
+++ b/drivers/soc/fsl/qe/qe.c
@@ -229,7 +229,9 @@ int qe_setbrg(enum qe_clock brg, unsigned int rate, unsigned int multiplier)
 	/* Errata QE_General4, which affects some MPC832x and MPC836x SOCs, says
 	   that the BRG divisor must be even if you're not using divide-by-16
 	   mode. */
+#ifdef CONFIG_PPC
 	if (pvr_version_is(PVR_VER_836x) || pvr_version_is(PVR_VER_832x))
+#endif
 		if (!div16 && (divisor & 1) && (divisor > 3))
 			divisor++;
Are you sure that's what you want to do on arm64 ?

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help