Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4061862ybc; Thu, 14 Nov 2019 20:52:33 -0800 (PST) X-Google-Smtp-Source: APXvYqzwpDY1ws9Uz2QSr9Cfi082c47t/pZo5AlZdCjeVg1VKplAxv8XCUBEPYWZ5+0+zF/OF1aJ X-Received: by 2002:a17:906:d293:: with SMTP id ay19mr10810495ejb.146.1573793553041; Thu, 14 Nov 2019 20:52:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573793553; cv=none; d=google.com; s=arc-20160816; b=WeUOBO4T66v4aBdunhGyhNrwEshOeOJzQIo6JjZ5WEdYL8rgu59hqVxxKRIJTR4lZv p6lJyx5yFA/2jNlnvrz5hphIpKkz20AcTJdhlhVfGLgRXQsQJ0LbJWITo1eauFyaAiEm +MqOGSW/753EKNTdudba/jHeaXBDIy9maXZKL3Pg5bZ1vqIhmAfk6QZ6nn4GUtGTGh3e MJhGG0Yt7tExzitmoYmYP7CwSPOGaXONU28zQVkKAyRTXk4iM2r/pv+M8niKxkwUW6Kf nsuUTOhLoV8KRBwObWkMRgQa39sLpdlfTlyT3eA6+9RNtzTAd+CAr3RF1PZqOV0ynGoj nW5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=HTL+ISCyWuw1eXALXRXXS84j0oMLrUwsZc2VcVFODXU=; b=xVya0aLJVtLgvb/QwQknrceo58XzDWua71pbLHv1SCuWL408mAGzmsyio/fDETg8pO Z7SQinP/btnHIryWDByCbAmAV2YCLgYvPoL4ev12GX0xbE3tdYr75zwBTZIJnMNXqFQg hftHLsOgWauIx+qGxD+wHZJeT8s1xvsZGS+F9oCZ44PKUtvrf8aYCIdZZ8Frp6lnOQYM rQwYdWhZB1VSaKaraYNL0WfqkzMOi5xo9BBXO446TDfIuKvTffRgnPG5D/Wkk/7+ytfA 3LsbmkbNcyokuN5yUh3j6PDG+B934KZSW5PCNu8vY6oPDLNs0cgLjspdmlyFhEI5qmW8 77sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=U6HSO2Yx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b2si4901111eja.89.2019.11.14.20.52.07; Thu, 14 Nov 2019 20:52:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=U6HSO2Yx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727183AbfKOEvB (ORCPT + 99 others); Thu, 14 Nov 2019 23:51:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:53208 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726755AbfKOEvA (ORCPT ); Thu, 14 Nov 2019 23:51:00 -0500 Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 18905206E6 for ; Fri, 15 Nov 2019 04:50:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573793459; bh=Zf6sTIMli76oYQWsxTvqKPeMc72IZB/Z2B0hBOL0C+w=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=U6HSO2YxLNSLY6xFeYZ9L9kZOnK1zLpDkmnckCZ40n7Wa2tNA8RrHy8A/3JbXDRMO 0c59Tcos/mF4g2JiaTaJAqm7VWCRDVjlegnSnsoXJdJUDHp9MEEUWO4o2/BDcp1Zog VLk+oFYf+bN8ZPmHI3WhZycAGPyJWHg/ObSj/sa8= Received: by mail-qk1-f180.google.com with SMTP id m4so7114815qke.9 for ; Thu, 14 Nov 2019 20:50:59 -0800 (PST) X-Gm-Message-State: APjAAAWJQqc4V7noWubu2i1oYtoG1bqRkvIZw1YwNNPEwCMyOvxukvu4 BoxTYMgYRyRSmwDKHNAkgxf9v1vIiRqwvNLes5k= X-Received: by 2002:a37:9d44:: with SMTP id g65mr10669230qke.302.1573793458206; Thu, 14 Nov 2019 20:50:58 -0800 (PST) MIME-Version: 1.0 References: <20191108130123.6839-1-linux@rasmusvillemoes.dk> <20191108130123.6839-8-linux@rasmusvillemoes.dk> In-Reply-To: <20191108130123.6839-8-linux@rasmusvillemoes.dk> From: Timur Tabi Date: Thu, 14 Nov 2019 22:50:21 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 07/47] soc: fsl: qe: qe.c: guard use of pvr_version_is() with CONFIG_PPC32 To: Rasmus Villemoes Cc: Qiang Zhao , Li Yang , Christophe Leroy , Scott Wood , linuxppc-dev@lists.ozlabs.org, lkml , linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 8, 2019 at 7:04 AM Rasmus Villemoes wrote: > > +static bool qe_general4_errata(void) > +{ > +#ifdef CONFIG_PPC32 > + return pvr_version_is(PVR_VER_836x) || pvr_version_is(PVR_VER_832x); > +#endif > + return false; > +} > + > /* Program the BRG to the given sampling rate and multiplier > * > * @brg: the BRG, QE_BRG1 - QE_BRG16 > @@ -223,7 +231,7 @@ 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. */ Can you also move this comment (and fix the comment formatting so that it's a proper function comment) to qe_general4_errata()?