Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753473AbcDILwW (ORCPT ); Sat, 9 Apr 2016 07:52:22 -0400 Received: from foss.arm.com ([217.140.101.70]:43054 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752900AbcDILwU (ORCPT ); Sat, 9 Apr 2016 07:52:20 -0400 Date: Sat, 9 Apr 2016 12:52:07 +0100 From: Marc Zyngier To: Jon Hunter Cc: Thomas Gleixner , Jason Cooper , =?ISO-8859-1?Q?Beno=EEt?= Cousson , Tony Lindgren , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , "Kumar Gala" , Stephen Warren , "Thierry Reding" , Kevin Hilman , Geert Uytterhoeven , Grygorii Strashko , Lars-Peter Clausen , Linus Walleij , , , , Subject: Re: [PATCH 12/15] irqchip/gic: Pass GIC pointer to save/restore functions Message-ID: <20160409125207.4f1d73dd@arm.com> In-Reply-To: <1458224359-32665-13-git-send-email-jonathanh@nvidia.com> References: <1458224359-32665-1-git-send-email-jonathanh@nvidia.com> <1458224359-32665-13-git-send-email-jonathanh@nvidia.com> Organization: ARM Ltd X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; arm-unknown-linux-gnueabihf) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 732 Lines: 20 On Thu, 17 Mar 2016 14:19:16 +0000 Jon Hunter wrote: > Instead of passing the GIC index to the save/restore functions pass a > pointer to the GIC chip data. This will allow these save/restore > functions to be re-used by a platform driver where the GIC chip data > structure is allocated dynamically and so there is no applicable index > for identifying the GIC. > > Signed-off-by: Jon Hunter Eventually, I'd like to move to a situation where we don't statically allocate the chip data anymore, and kill CONFIG_ARM_GIC_MAX_NR altogether. This is obviously a step in the right direction. Acked-by: Marc Zyngier M. -- Jazz is not dead. It just smells funny.