Received: by 10.192.165.148 with SMTP id m20csp3153296imm; Mon, 23 Apr 2018 01:16:18 -0700 (PDT) X-Google-Smtp-Source: AIpwx49rHKbQstdf0ksaOMAAnPGySZ7OW7SbMQdSfD4u00NnyIecJ0yWbT8mJInfN3KRXMqnF1NZ X-Received: by 2002:a17:902:6887:: with SMTP id i7-v6mr19831185plk.269.1524471378350; Mon, 23 Apr 2018 01:16:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524471378; cv=none; d=google.com; s=arc-20160816; b=Y2zAWsrADQaYlKoYWJBAmoKqjvIZ5GTi4pqy6LQ4KvEGJpGu5PtLWZrsOue52L3g+K B3VGXvh5DWekx0L2cyPP7Ew+UKnMTMTPC1HZk1gI4QS8uqlYmJkYViQscWBPa8WjIl+r pu8ydX4bxF2I1c7kJ2wJNYFYNe84yy6gNtpfe3EsTk0AR/o+zU/uSC3xPm9XbUJsR9Om rhLobvV09MtLJ6eZZQqWupfFeNG7fWRBlgEFfWL5/iAwPM/KWtprTKqKpn0PFWDlEqG5 n2j4iA44tS+F0kV8QDK66KfqSK1FY0EHJL5BkHuHNoIjTiJwUuteSJ5EApstPKyABLvQ 2g+g== 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=HsR5V/z07IgqnyaXFotiJ0/WOLY0ARo2B1sDe7P/jLM=; b=QpV+uBw05kUMIBQvDbimmhCO/xHROJJ7MHdmKqUhbeCpAsVK+ZzS6toqqToVyq+8/Y Hjo06e8d7uGGbMGuokPnOlOyCeAevB1TXXEDKbrbxWL/I7a6CP8ubnM7Q0nGNB6BOlW/ GD8ddKQ6HpVkoNa51U//8qnFyizkqpzAiGm2dTQa+TYWxUEb25aRdmXC0nvgYvHKT+Lz GWB00crm/cb26jJ8eLN+tbj0UF/SZyPc+nY/Lt5FYSb4AWb8GJt3+Ol7MPXUnvTqrxoJ qsC0J3IphtWkKkUKEEpIR+e/qYz0wvq3nuhWuf06ziSBE1JYYk6iPb9tpLf+ZefXBOCX x3FA== 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 w189si7044062pgb.602.2018.04.23.01.16.04; Mon, 23 Apr 2018 01:16:18 -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 S1754491AbeDWIOa (ORCPT + 99 others); Mon, 23 Apr 2018 04:14:30 -0400 Received: from mail.bootlin.com ([62.4.15.54]:56474 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754475AbeDWIOZ (ORCPT ); Mon, 23 Apr 2018 04:14:25 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 9CAF8207BE; Mon, 23 Apr 2018 10:14:23 +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 6C5792071D; Mon, 23 Apr 2018 10:14:23 +0200 (CEST) Date: Mon, 23 Apr 2018 10:14:23 +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, horms@verge.net.au, geert@linux-m68k.org, magnus.damm@gmail.com, linux-renesas-soc@vger.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 v7 08/11] ARM: sun9i: smp: Add is_a83t field Message-ID: <20180423081423.h7b35sobagypokpe@flea> References: <20180420211022.11759-1-mylene.josserand@bootlin.com> <20180420211022.11759-9-mylene.josserand@bootlin.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="qmq5ehzlj356zjuy" Content-Disposition: inline In-Reply-To: <20180420211022.11759-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 --qmq5ehzlj356zjuy Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 20, 2018 at 11:10:19PM +0200, Myl=E8ne Josserand wrote: > To prepare the support of sun8i-a83t, add a field in the smp_data > structure to know if we are on sun9i-a80 or sun8i-a83t. >=20 > Add also a global variable to retrieve which architecture we are > having. >=20 > Signed-off-by: Myl=E8ne Josserand > --- > arch/arm/mach-sunxi/mc_smp.c | 4 ++++ > 1 file changed, 4 insertions(+) >=20 > diff --git a/arch/arm/mach-sunxi/mc_smp.c b/arch/arm/mach-sunxi/mc_smp.c > index 03f021d0c73e..48e5f4db64b6 100644 > --- a/arch/arm/mach-sunxi/mc_smp.c > +++ b/arch/arm/mach-sunxi/mc_smp.c > @@ -74,6 +74,7 @@ static void __iomem *sram_b_smp_base; > =20 > extern void sunxi_mc_smp_secondary_startup(void); > extern void sunxi_mc_smp_resume(void); > +static int is_a83t; > =20 > static bool sunxi_core_is_cortex_a15(unsigned int core, unsigned int clu= ster) > { > @@ -624,6 +625,7 @@ struct sunxi_mc_smp_nodes { > struct sunxi_mc_smp_data { > const char *enable_method; > int (*get_smp_nodes)(struct sunxi_mc_smp_nodes *nodes); > + int is_a83t; This can be made a boolean. Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com --qmq5ehzlj356zjuy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlrdld4ACgkQ0rTAlCFN r3QoohAAmqsGMdtV9sKqbxoEg9PNx3E5cqw7/5L8YY+nFx+m33Osld8kJzyP4/uL QPSU91AWDuujEE62O5K599qtOFO6IATGkE92gx/HgHiNGQvO604ci0tEpH7JnKEE hmRnf4MN+CXh/bgCZJ8lsfLx5i3nw2wk9mmXVr9fzVDOgyPU6iXHJa8f2T+f8mcG SQ8GFKGCgmnyNHCTWTAPKChTuT8YpujSWrkaLBo3msWf3CHXy6dfRHrPFo5poqF7 8tXH5NqrRfq1QwyD2sxBKHzWOioFMNOqvJyoGtDC99P5UZC+QGEWsin5/BwI3qxj pWEyyAV/FGyJ2tmX3RBScgg3yqLRwplL18giS5uwON0N2kbW6x8Yq2SmLwzK/Mes 91cTNpC7eP9+q3t3/Dc0PrCN1gGO5eDjWuvbaeIA15z6+4WcjaNyrO+cQ846kTID UTd/Dh/PxdivW2atu7LkMRjXbB77ZZeQyT6dWpr5+PxY5Bh6JByCwg8gorHKpGN0 ezABMxPJdyI1cG2CPPkirUWI3s7DOszTRMh2ONMsO3691NzkTnoc9XrH2ff+cv8Q rqgnz+QNEBnyi+6qvge0jl+A0giBASfWCmJv3JOPGcJxc7ZDiDr+KJsI5m98WOqr PozjDhp+HqEzymCME1BsgVAT3L8VGwSPyjsF/SUfjZyfa27szMA= =kwK7 -----END PGP SIGNATURE----- --qmq5ehzlj356zjuy--