From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751843AbdAWSii (ORCPT ); Mon, 23 Jan 2017 13:38:38 -0500 Received: from foss.arm.com ([217.140.101.70]:52136 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751729AbdAWSig (ORCPT ); Mon, 23 Jan 2017 13:38:36 -0500 Subject: Re: [PATCH 3/4] PCI: Xilinx NWL: Modifying flow handler for legacy interrupts To: Bharat Kumar Gogada , bhelgaas@google.com, paul.gortmaker@windriver.com, robh@kernel.org, colin.king@canonical.com, linux-pci@vger.kernel.org References: <1484997072-19276-1-git-send-email-bharatku@xilinx.com> <1484997072-19276-3-git-send-email-bharatku@xilinx.com> Cc: michal.simek@xilinx.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, rgummal@xilinx.com, arnd@arndb.de, Bharat Kumar Gogada From: Marc Zyngier Organization: ARM Ltd Message-ID: Date: Mon, 23 Jan 2017 18:38:26 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.5.1 MIME-Version: 1.0 In-Reply-To: <1484997072-19276-3-git-send-email-bharatku@xilinx.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/01/17 11:11, Bharat Kumar Gogada wrote: > Legacy interrupts are level sensitive, so using handle_level_irq > is more approprate as it is masks interrupts until End point handles > interrupts and unmasks interrutps after End point handler is executed. > > Signed-off-by: Bharat Kumar Gogada > --- > drivers/pci/host/pcie-xilinx-nwl.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/pci/host/pcie-xilinx-nwl.c b/drivers/pci/host/pcie-xilinx-nwl.c > index e1809f9..50f9c0d 100644 > --- a/drivers/pci/host/pcie-xilinx-nwl.c > +++ b/drivers/pci/host/pcie-xilinx-nwl.c > @@ -433,7 +433,7 @@ static void nwl_unmask_leg_irq(struct irq_data *data) > static int nwl_legacy_map(struct irq_domain *domain, unsigned int irq, > irq_hw_number_t hwirq) > { > - irq_set_chip_and_handler(irq, &nwl_leg_irq_chip, handle_simple_irq); > + irq_set_chip_and_handler(irq, &nwl_leg_irq_chip, handle_level_irq); > irq_set_chip_data(irq, domain->host_data); > > return 0; > Please merge this patch and the following one in patch #2. There is no need for going through equally broken intermediate steps. Thanks, M. -- Jazz is not dead. It just smells funny...