From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?TXlsw6huZQ==?= Josserand Subject: Re: [PATCH v5 11/13] ARM: sun9i: smp: Add is_sun9i field Date: Tue, 3 Apr 2018 22:08:39 +0200 Message-ID: <20180403220839.0ec8f9b8@dell-desktop.home> References: <20180403061836.3926-1-mylene.josserand@bootlin.com> <20180403061836.3926-12-mylene.josserand@bootlin.com> <20180403084655.x6u7s4jzqdvq2eey@flea> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Chen-Yu Tsai Cc: Maxime Ripard , Mark Rutland , devicetree , quentin.schulz@bootlin.com, Marc Zyngier , Russell King , linux-kernel , Rob Herring , LABBE Corentin , Thomas Petazzoni , linux-arm-kernel List-Id: devicetree@vger.kernel.org Hi, On Tue, 3 Apr 2018 16:48:41 +0800 Chen-Yu Tsai wrote: > 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 Yep, I will use a pointer instead. Thanks for the correction. Best regards, -- Mylène Josserand, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering http://bootlin.com