Received: by 10.213.65.68 with SMTP id h4csp3292142imn; Tue, 3 Apr 2018 02:13:44 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/4cz4JgjRR8d3HgtuYhXMqhxWCUdxmSmO2qvifQcviosPvRy1LsnIlpTI+cQvOg+WoGwPH X-Received: by 2002:a17:902:274a:: with SMTP id j10-v6mr13004454plg.28.1522746824870; Tue, 03 Apr 2018 02:13:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522746824; cv=none; d=google.com; s=arc-20160816; b=H3sZ/BoQ2zsuahmnlYN6B6wWEzarITEqpW0CcTkJpvbhDNwVI4RMkjSLhbtjBGLNrK PB7yQgRzFloW5Sf/+6QquTs8PbDK0Wwu77XTAAd8ZS3X+z22LFju3RTr8Lk5OMY+zpIy ICMIVTNXQnSoZ6MOfvpAu9hknWzW/nfoHUkMwdv3nyJblNoPWVBXFD03dMW3SSATKzZt BE1EGAMoIHWY24kDcYZbBVS7ykvjuR6FRfr9odJUjaASd+WlpHn/Qxy/I7gG7gNP4GWc fMMcxTmNEAAujRge2BRecRHXHom0smwjVSqZNssjJ3GsD67iMsNWuWmSB+JSyTmrKaZx cFHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=hvvb/+WlRYka1VzQ6ZRn0wHl747YDn1SsPssBBdtNzc=; b=LGshU9v2zRuZzFCH9WG/n7ax5ixTk11O71cangy2tYmgZnfBnhgtZHC+ir1h8FhcAK BTvRtXwZucF2MHVmbxZlEiDRDldnYBvAmn7/Kyf4zpZvs3mvALBVEIp1VLdQB3w0JaQn bFWDcfqyaGZsUXrcUztI9O1WFCCru9sw7j+TiJCgdPhLd1kxlxPTsjrMpTPF5vwOy1h9 wS8wvzFe0ZIVCHiSobktUMf3YK/vCpvPom/FUCQZGTNnJtBrhF5VNH859yRc/EuqOnzb hsPHndbvBFzDcInCRMcGshmGqth5c4BpFOD8sTUW2Tne2StrZJpzef+gmOZGPaG+lVst 8n8A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a8-v6si48983pln.234.2018.04.03.02.13.31; Tue, 03 Apr 2018 02:13:44 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755302AbeDCJMW (ORCPT + 99 others); Tue, 3 Apr 2018 05:12:22 -0400 Received: from mail.bootlin.com ([62.4.15.54]:41364 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753441AbeDCJMU (ORCPT ); Tue, 3 Apr 2018 05:12:20 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id EC1F420729; Tue, 3 Apr 2018 11:12:18 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id C041E20702; Tue, 3 Apr 2018 11:12:18 +0200 (CEST) Date: Tue, 3 Apr 2018 11:12:18 +0200 From: Maxime Ripard To: =?utf-8?Q?Myl=C3=A8ne?= Josserand Cc: linux@armlinux.org.uk, wens@csie.org, marc.zyngier@arm.com, mark.rutland@arm.com, robh+dt@kernel.org, devicetree@vger.kernel.org, clabbe.montjoie@gmail.com, quentin.schulz@bootlin.com, thomas.petazzoni@bootlin.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 08/13] ARM: sunxi: Add initialization of CNTVOFF Message-ID: <20180403091218.t6xuq6csjp4uyy5u@flea> References: <20180403061836.3926-1-mylene.josserand@bootlin.com> <20180403061836.3926-9-mylene.josserand@bootlin.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="4m3zop5wrmxfi2tg" Content-Disposition: inline In-Reply-To: <20180403061836.3926-9-mylene.josserand@bootlin.com> User-Agent: NeoMutt/20180323 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --4m3zop5wrmxfi2tg Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 03, 2018 at 08:18:31AM +0200, Myl=E8ne Josserand wrote: > Add the initialization of CNTVOFF for sun8i-a83t. >=20 > For boot CPU, Create a new machine that handles this > function's call in an "init_early" callback. > For secondary CPUs, add this function into secondary_startup > assembly entry. >=20 > Signed-off-by: Myl=E8ne Josserand > --- > arch/arm/mach-sunxi/headsmp.S | 1 + > arch/arm/mach-sunxi/sunxi.c | 18 +++++++++++++++++- > 2 files changed, 18 insertions(+), 1 deletion(-) >=20 > diff --git a/arch/arm/mach-sunxi/headsmp.S b/arch/arm/mach-sunxi/headsmp.S > index 79890fbe5613..b586b7cf803a 100644 > --- a/arch/arm/mach-sunxi/headsmp.S > +++ b/arch/arm/mach-sunxi/headsmp.S > @@ -71,6 +71,7 @@ ENDPROC(sunxi_mc_smp_cluster_cache_enable) > =20 > ENTRY(sunxi_mc_smp_secondary_startup) > bl sunxi_mc_smp_cluster_cache_enable > + bl smp_init_cntvoff > b secondary_startup > ENDPROC(sunxi_mc_smp_secondary_startup) > =20 > diff --git a/arch/arm/mach-sunxi/sunxi.c b/arch/arm/mach-sunxi/sunxi.c > index 5e9602ce1573..090784108c0a 100644 > --- a/arch/arm/mach-sunxi/sunxi.c > +++ b/arch/arm/mach-sunxi/sunxi.c > @@ -16,6 +16,7 @@ > #include > =20 > #include > +#include > =20 > static const char * const sunxi_board_dt_compat[] =3D { > "allwinner,sun4i-a10", > @@ -62,7 +63,6 @@ MACHINE_END > static const char * const sun8i_board_dt_compat[] =3D { > "allwinner,sun8i-a23", > "allwinner,sun8i-a33", > - "allwinner,sun8i-a83t", > "allwinner,sun8i-h2-plus", > "allwinner,sun8i-h3", > "allwinner,sun8i-r40", > @@ -75,6 +75,22 @@ DT_MACHINE_START(SUN8I_DT, "Allwinner sun8i Family") > .dt_compat =3D sun8i_board_dt_compat, > MACHINE_END > =20 > +void __init sun8i_cntvoff_init(void) > +{ > + smp_init_cntvoff(); Can't this be moved to the SMP setup code? > +} > + > +static const char * const sun8i_cntvoff_board_dt_compat[] =3D { > + "allwinner,sun8i-a83t", > + NULL, > +}; > + > +DT_MACHINE_START(SUN8I_CNTVOFF_DT, "Allwinner sun8i boards needing cntvo= ff") All of the SoCs need CNTVOFF, so that doesn't really make sense. Why not just calling it for what it is: an A83t? Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com --4m3zop5wrmxfi2tg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlrDRXEACgkQ0rTAlCFN r3QFoA/9ENYIhzJJ4IrJXS0ndHyFQXwOquqJryc9vPyTtguGBoVDeuN+IuIdfsEP ybg42BWa7uTa3arB7kmxaqijKX7m3E3ijYljedwBFLzLe4TzFtmzI214CKNPaTWu uC1hY35SXgr8dTbFYPvhe9YXZHZTKaQ77Dhel7JegtwnnfmR8lHR9TBLnmnxNlaL W1bsyc4A2E9zABwSS8Ahpg1oCQX+iIurK2H1YT0YAd/SzVNu5jfbk46UXbe7nWOP QeWAfuKgU9v8Z+ilDDn1nDV6zgLu+czNkWyqOqWDE22F7ovZoUqnFAZSojOg6fnr ZfzS4X0rsMO0etV+u44buAFX3+r7j5mNU39ZLJvaRf+D1Gy14nQS1DMeWAYXX/fO zuiCQJfQ4k/q+RFLEeNr/J7ZMpv5XXIeCJhXWamcctFTSOPnXqnLjfSU0sY1ulg9 39opb9Zkso+Ncg9EOjWMF4PW/3wybdFJGmvIQTKOig8ytz1dzuV7hqknfTMFFW4A JyMMVzLx7lKcWp467no+axkjWbSRrUU1CktPmMF/WUdjY7MOIVaw8LIru7X7rmcE g+WJaNub0q1ck/XEnb6Zj20GbpFMHayKCjC/rN7D2ihYaFVtpebR+BleFvYpqdG4 PkzjYHEa+xJwCOeB2d0o2arAs16n9PFH6B2enigYu1UaVBH1Aek= =NLuM -----END PGP SIGNATURE----- --4m3zop5wrmxfi2tg--