All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] qe: fix compile issue for arm64
@ 2017-07-24  3:39 Zhao Qiang
  2017-07-28  6:13 ` Michael Ellerman
  0 siblings, 1 reply; 5+ messages in thread
From: Zhao Qiang @ 2017-07-24  3:39 UTC (permalink / raw)
  To: oss; +Cc: valentin.longchamp, linuxppc-dev, linux-kernel, Zhao Qiang

Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
---
Changes for v2:
	- include all Errata QE_General4 in #ifdef

 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..4ac9ce8 100644
--- a/drivers/soc/fsl/qe/qe.c
+++ b/drivers/soc/fsl/qe/qe.c
@@ -229,9 +229,11 @@ 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))
 		if (!div16 && (divisor & 1) && (divisor > 3))
 			divisor++;
+#endif
 
 	tempval = ((divisor - 1) << QE_BRGC_DIVISOR_SHIFT) |
 		QE_BRGC_ENABLE | div16;
-- 
2.1.0.27.g96db324

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

* Re: [PATCH v2] qe: fix compile issue for arm64
  2017-07-24  3:39 [PATCH v2] qe: fix compile issue for arm64 Zhao Qiang
@ 2017-07-28  6:13 ` Michael Ellerman
  2017-07-28  7:14     ` Qiang Zhao
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Ellerman @ 2017-07-28  6:13 UTC (permalink / raw)
  To: Zhao Qiang, oss
  Cc: valentin.longchamp, linuxppc-dev, linux-kernel, Zhao Qiang

Zhao Qiang <qiang.zhao@nxp.com> writes:

> Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
> ---
> Changes for v2:
> 	- include all Errata QE_General4 in #ifdef
>
>  drivers/soc/fsl/qe/qe.c | 2 ++
>  1 file changed, 2 insertions(+)

AFAICS this driver can only be built on PPC, what am I missing?

config QUICC_ENGINE
        bool "Freescale QUICC Engine (QE) Support"
        depends on FSL_SOC && PPC32

cheers

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

* RE: [PATCH v2] qe: fix compile issue for arm64
  2017-07-28  6:13 ` Michael Ellerman
@ 2017-07-28  7:14     ` Qiang Zhao
  0 siblings, 0 replies; 5+ messages in thread
From: Qiang Zhao @ 2017-07-28  7:14 UTC (permalink / raw)
  To: Michael Ellerman, oss; +Cc: valentin.longchamp, linuxppc-dev, linux-kernel

Fri 7/28/2017 2:14 PM, Michael Ellerman <mpe@ellerman.id.au> wrote:

> -----Original Message-----
> From: Michael Ellerman [mailto:mpe@ellerman.id.au]
> Sent: Friday, July 28, 2017 2:14 PM
> To: Qiang Zhao <qiang.zhao@nxp.com>; oss@buserror.net
> Cc: valentin.longchamp@keymile.com; linuxppc-dev@lists.ozlabs.org; linux-
> kernel@vger.kernel.org; Qiang Zhao <qiang.zhao@nxp.com>
> Subject: Re: [PATCH v2] qe: fix compile issue for arm64
> 
> Zhao Qiang <qiang.zhao@nxp.com> writes:
> 
> > Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
> > ---
> > Changes for v2:
> > 	- include all Errata QE_General4 in #ifdef
> >
> >  drivers/soc/fsl/qe/qe.c | 2 ++
> >  1 file changed, 2 insertions(+)
> 
> AFAICS this driver can only be built on PPC, what am I missing?
> 
> config QUICC_ENGINE
>         bool "Freescale QUICC Engine (QE) Support"
>         depends on FSL_SOC && PPC32
> 
> cheers

I sent another patchset to support it on arm64.
Thank you! 

Best Regards
Qiang Zhao

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

* RE: [PATCH v2] qe: fix compile issue for arm64
@ 2017-07-28  7:14     ` Qiang Zhao
  0 siblings, 0 replies; 5+ messages in thread
From: Qiang Zhao @ 2017-07-28  7:14 UTC (permalink / raw)
  To: Michael Ellerman, oss; +Cc: valentin.longchamp, linuxppc-dev, linux-kernel

Fri 7/28/2017 2:14 PM, Michael Ellerman <mpe@ellerman.id.au> wrote:

> -----Original Message-----
> From: Michael Ellerman [mailto:mpe@ellerman.id.au]
> Sent: Friday, July 28, 2017 2:14 PM
> To: Qiang Zhao <qiang.zhao@nxp.com>; oss@buserror.net
> Cc: valentin.longchamp@keymile.com; linuxppc-dev@lists.ozlabs.org; linux-
> kernel@vger.kernel.org; Qiang Zhao <qiang.zhao@nxp.com>
> Subject: Re: [PATCH v2] qe: fix compile issue for arm64
>=20
> Zhao Qiang <qiang.zhao@nxp.com> writes:
>=20
> > Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
> > ---
> > Changes for v2:
> > 	- include all Errata QE_General4 in #ifdef
> >
> >  drivers/soc/fsl/qe/qe.c | 2 ++
> >  1 file changed, 2 insertions(+)
>=20
> AFAICS this driver can only be built on PPC, what am I missing?
>=20
> config QUICC_ENGINE
>         bool "Freescale QUICC Engine (QE) Support"
>         depends on FSL_SOC && PPC32
>=20
> cheers

I sent another patchset to support it on arm64.
Thank you!=20

Best Regards
Qiang Zhao

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

* RE: [PATCH v2] qe: fix compile issue for arm64
  2017-07-28  7:14     ` Qiang Zhao
  (?)
@ 2017-07-31 10:37     ` Michael Ellerman
  -1 siblings, 0 replies; 5+ messages in thread
From: Michael Ellerman @ 2017-07-31 10:37 UTC (permalink / raw)
  To: Qiang Zhao, oss; +Cc: valentin.longchamp, linuxppc-dev, linux-kernel

Qiang Zhao <qiang.zhao@nxp.com> writes:

> Fri 7/28/2017 2:14 PM, Michael Ellerman <mpe@ellerman.id.au> wrote:
>
>> -----Original Message-----
>> From: Michael Ellerman [mailto:mpe@ellerman.id.au]
>> Sent: Friday, July 28, 2017 2:14 PM
>> To: Qiang Zhao <qiang.zhao@nxp.com>; oss@buserror.net
>> Cc: valentin.longchamp@keymile.com; linuxppc-dev@lists.ozlabs.org; linux-
>> kernel@vger.kernel.org; Qiang Zhao <qiang.zhao@nxp.com>
>> Subject: Re: [PATCH v2] qe: fix compile issue for arm64
>> 
>> Zhao Qiang <qiang.zhao@nxp.com> writes:
>> 
>> > Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
>> > ---
>> > Changes for v2:
>> > 	- include all Errata QE_General4 in #ifdef
>> >
>> >  drivers/soc/fsl/qe/qe.c | 2 ++
>> >  1 file changed, 2 insertions(+)
>> 
>> AFAICS this driver can only be built on PPC, what am I missing?
>> 
>> config QUICC_ENGINE
>>         bool "Freescale QUICC Engine (QE) Support"
>>         depends on FSL_SOC && PPC32
>> 
>> cheers
>
> I sent another patchset to support it on arm64.

Where? I don't see it.

Shouldn't this patch be part of that series? Otherwise when that series
is merged the build will break on arm64.

cheers

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

end of thread, other threads:[~2017-07-31 10:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-24  3:39 [PATCH v2] qe: fix compile issue for arm64 Zhao Qiang
2017-07-28  6:13 ` Michael Ellerman
2017-07-28  7:14   ` Qiang Zhao
2017-07-28  7:14     ` Qiang Zhao
2017-07-31 10:37     ` Michael Ellerman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.