Received: by 10.213.65.68 with SMTP id h4csp3274023imn; Tue, 3 Apr 2018 01:50:28 -0700 (PDT) X-Google-Smtp-Source: AIpwx49HJbvS5S0UkGjcHOoLdKngD4hFBPV0OAvErPHmKojh6qEjJ2wtDsonx+HqQ/CKrmEG8gjF X-Received: by 10.98.200.130 with SMTP id i2mr9768835pfk.221.1522745428401; Tue, 03 Apr 2018 01:50:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522745428; cv=none; d=google.com; s=arc-20160816; b=OV/zjRKrgt9ItI+OIhzoQeBORuvREV24bB9ktmHbQATJJtO6Uie7s9xBSJmxvu586H q0BFymZ2VruI8kG6Wn8xMtc4aswaAxVn9RFGLEQdsKduX/zk2JkWbSr7cTUhteQNNffl rsTOSY2lZ/icYhC/vyfHovU4gLnv1q59tWl07g3DQ+ADoWF9cgK1/NQrSVbAxHlqK8dW lLNA7YHk6m/ZGiExgZXGupuRqSY9GOYDQbfB17Y5nzkhi+mwj+OkY5vIetTxQeSRU5pv hVhSKhSa1t7OauEcR+Y2jMJp4TtTy2srmYQ9zjNo+lfJrLGDkuDMKvoxsJh3jS7KMSPN W87g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :arc-authentication-results; bh=3fn3hV3Cj65Nkf+HiVr5yk2LR5r/bsWJiYutPwTnAyI=; b=sM6uWy4vXnFR+4pLUOcDR/slO6CsvSCyCOLKehBo7B4mcl3XqUcElEPZDdH7Qqysuc 7qM31Zn4qd03BPN5s4/QfHO+wTwmVLr1hh4C5KHSPZvHnue0TVOldQ8x7q19ZQF3vFyM BRd2ED+eSh7lnn9PUrWl2t5c3y/TxiJZUMIVxQr4I9mklvbwpiOievSQlKHXmmgvqul1 70rHxTJoNCVcb3UD4sHCTSZ3sEn4D+pLYR33ILf/+F6odeQpDfQkV3j52jFYbUzWfRsD JwlYNyjGk29z++GaYy7hvr2EcJneWvxUViwUIhuLP/cDi8P3HGKbm6RBqoQ0N+lP+Tbz Jujg== 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 1-v6si13096ple.629.2018.04.03.01.50.15; Tue, 03 Apr 2018 01:50:28 -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 S1755286AbeDCItF convert rfc822-to-8bit (ORCPT + 99 others); Tue, 3 Apr 2018 04:49:05 -0400 Received: from mail-wm0-f49.google.com ([74.125.82.49]:38469 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754961AbeDCItE (ORCPT ); Tue, 3 Apr 2018 04:49:04 -0400 Received: by mail-wm0-f49.google.com with SMTP id i3so9482704wmf.3; Tue, 03 Apr 2018 01:49:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=QHVCtMm53KET2bYS+XdtQ9DB/R+jSAOPO1HNATeOzBM=; b=D/25cFfNF/IcGmamEoUSoVTmB/Yi8ZB+Vu6aUZ++QnBIv9lNFu2IdrkJBiZwaLiAOE 1pFVX8od66EVvyvnNGZ+1UO1NoBLfjAJApTnxvLQkY8JJ311uiDU/lqk19Z7WfylNBW0 JGb44E5l7FvbD0GLvWddwEaSacYNgTjj/uPoYuygkx8R6Yvnan7eB+I0bLjhZCIF8uRK ZbyYDdOBrtjT4daN7ZvravsUVCXx0xvDjIjsz54SiL85940n/gkXfjUvF9pEX5rHefPQ 6IgFgJt6/sg1X7w+Nbzf5zL+h5FlctlHCAsdMslnK2T4noTOlqJFR5pAu+pE9tP5+bua f/Uw== X-Gm-Message-State: AElRT7EA1RsD6FA4kSdneOBxixhOVZOUetYqKsuFZCwE9Ns9NxGZl3kD UhWBCcBCj266wWyaSfCIjPoOZKxZ X-Received: by 10.80.204.69 with SMTP id n5mr12066310edi.20.1522745342531; Tue, 03 Apr 2018 01:49:02 -0700 (PDT) Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com. [74.125.82.54]) by smtp.gmail.com with ESMTPSA id r6sm1456475edi.21.2018.04.03.01.49.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Apr 2018 01:49:02 -0700 (PDT) Received: by mail-wm0-f54.google.com with SMTP id v21so31811628wmc.1; Tue, 03 Apr 2018 01:49:02 -0700 (PDT) X-Received: by 10.28.15.78 with SMTP id 75mr3079516wmp.16.1522745341908; Tue, 03 Apr 2018 01:49:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.164.129 with HTTP; Tue, 3 Apr 2018 01:48:41 -0700 (PDT) In-Reply-To: <20180403084655.x6u7s4jzqdvq2eey@flea> References: <20180403061836.3926-1-mylene.josserand@bootlin.com> <20180403061836.3926-12-mylene.josserand@bootlin.com> <20180403084655.x6u7s4jzqdvq2eey@flea> From: Chen-Yu Tsai Date: Tue, 3 Apr 2018 16:48:41 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 11/13] ARM: sun9i: smp: Add is_sun9i field To: Maxime Ripard Cc: =?UTF-8?Q?Myl=C3=A8ne_Josserand?= , Mark Rutland , devicetree , quentin.schulz@bootlin.com, Marc Zyngier , Russell King , linux-kernel , Rob Herring , LABBE Corentin , Thomas Petazzoni , linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 3, 2018 at 4:46 PM, Maxime Ripard wrote: > On Tue, Apr 03, 2018 at 08:18:34AM +0200, Mylène Josserand wrote: >> To prepare the support of sun8i-a83t, add a field in the smp_data >> structure to enable the case of sun9i. >> >> Start to handle the differences between sun9i-a80 and sun8i-a83t >> by using this variable. >> >> Add an index to retrieve which structures we are using. > > This should have been in a separate commit, but maybe we can store a > pointer to the array cell we're using instead of always using the > index? Using a pointer would also avoid some of the code movement from the previous patch. ChenYu