From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752706AbdGXDc5 (ORCPT ); Sun, 23 Jul 2017 23:32:57 -0400 Received: from host.buserror.net ([209.198.135.123]:57927 "EHLO host.buserror.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752092AbdGXDcx (ORCPT ); Sun, 23 Jul 2017 23:32:53 -0400 Message-ID: <1500867155.3739.2.camel@buserror.net> From: Scott Wood To: Qiang Zhao , Michael Ellerman Cc: "valentin.longchamp@keymile.com" , "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" Date: Sun, 23 Jul 2017 22:32:35 -0500 In-Reply-To: References: <1500603550-5567-1-git-send-email-qiang.zhao@nxp.com> <87mv7ye1sg.fsf@concordia.ellerman.id.au> Organization: NXP Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 69.180.160.44 X-SA-Exim-Rcpt-To: qiang.zhao@nxp.com, mpe@ellerman.id.au, valentin.longchamp@keymile.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: oss@buserror.net X-Spam-Report: * 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. * See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block * for more information. * [URIs: buserror.net] * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * -15 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Subject: Re: [PATCH] qe: fix compile issue for arm64 X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:57:07 +0000) X-SA-Exim-Scanned: Yes (on host.buserror.net) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2017-07-24 at 02:09 +0000, Qiang Zhao wrote: > On Fri, 2017-07-21 at 02:34PM, Michael Ellerman wrote: > > > -----Original Message----- > > From: Michael Ellerman [mailto:mpe@ellerman.id.au] > > Sent: Friday, July 21, 2017 2:34 PM > > To: Qiang Zhao ; oss@buserror.net > > Cc: valentin.longchamp@keymile.com; linuxppc-dev@lists.ozlabs.org; linux- > > kernel@vger.kernel.org; Qiang Zhao > > Subject: Re: [PATCH] qe: fix compile issue for arm64 > > > > Zhao Qiang writes: > > > > > Signed-off-by: Zhao Qiang > > > --- > > >  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 ? > > Is there any problem? > > Best Regards > Qiang Zhao The comment says the workaround applies to MPC832x and MPC836x, but you're applying the workaround on arm64 as well. -Scott