Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753198AbdCPRsc (ORCPT ); Thu, 16 Mar 2017 13:48:32 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:53953 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751960AbdCPRs0 (ORCPT ); Thu, 16 Mar 2017 13:48:26 -0400 Date: Thu, 16 Mar 2017 18:47:33 +0100 (CET) From: Thomas Gleixner To: Mason cc: LKML , Linux ARM , Marc Zyngier , Jason Cooper , linux-pci , Bjorn Helgaas , Thibaud Cornic , Phuong Nguyen , Robin Murphy , Liviu Dudau , Lorenzo Pieralisi , Uwe Kleine-Konig , Rob Herring Subject: Re: Legacy PCI interrupt support in PCIe host driver In-Reply-To: <8443b350-6aa6-75f8-af48-892c722fc2d9@free.fr> Message-ID: References: <5612adb6-af5c-9fbf-e725-813ee7fe1b4b@free.fr> <8443b350-6aa6-75f8-af48-892c722fc2d9@free.fr> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 812 Lines: 23 On Thu, 16 Mar 2017, Mason wrote: > About shared ISRs. Are they supposed to return IRQ_HANDLED > if and only if they handled something? Every interrupt handler is supposed to return IRQ_NONE if it did not handle it. That does not depend on shared or not. The handler does not know if it's on a shared interrupt line or not. IRQF_SHARED only tells, that the handler is capable of sharing the interrupt line with another device. > Will that stop the next ISR from being called? No. > I guess if two interrupts fire at the same time, we'll just take two > separate exceptions? Wrong guess. That might work with level interupts, but with other types nothing will raise another exception. Sharing interrupts on edge types is a stupid idea, but hardware folks insist on implementing stupid ideas. Thanks, tglx