From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932203AbdGJPyC (ORCPT ); Mon, 10 Jul 2017 11:54:02 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:33995 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932133AbdGJPyB (ORCPT ); Mon, 10 Jul 2017 11:54:01 -0400 Subject: Re: [PATCH 4/6] irqchip: brcmstb-l2: Remove some processing from the handler To: Doug Berger , Thomas Gleixner Cc: Kevin Cernekee , Jason Cooper , Marc Zyngier , Brian Norris , Gregory Fong , "maintainer:BROADCOM BCM7XXX ARM ARCHITECTURE" , "open list:BROADCOM BMIPS MIPS ARCHITECTURE" , "open list:IRQCHIP DRIVERS" , "moderated list:BROADCOM BCM7XXX ARM ARCHITECTURE" References: <20170707192016.13001-1-opendmb@gmail.com> <20170707192016.13001-5-opendmb@gmail.com> From: Florian Fainelli Message-ID: <3a27d1b1-23ca-3237-92ba-d91299448f33@gmail.com> Date: Mon, 10 Jul 2017 08:53:55 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170707192016.13001-5-opendmb@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/07/2017 12:20 PM, Doug Berger wrote: > Saving the generic chip pointer in the brcmstb_l2_intc_data prevents > the need to call irq_get_domain_generic_chip(). Also don't need to > save parent_irq and base there since local variables in the > brcmstb_l2_intc_of_init() function are just as good. > > The handle_edge_irq flow or chained_irq_enter takes care of the > acknowledgement of the interrupt so it is redundant to clear it in > brcmstb_l2_intc_irq_handle(). > > irq_linear_revmap() is a fast path equivalent of irq_find_mapping() > that is appropriate to use for domain controllers of this type. > > Defining irq_mask_ack is slightly more efficient than just > implementing irq_mask and irq_ack seperately. > > Signed-off-by: Doug Berger Reviewed-by: Florian Fainelli -- Florian