From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755686AbcA1UHb (ORCPT ); Thu, 28 Jan 2016 15:07:31 -0500 Received: from www.linutronix.de ([62.245.132.108]:35581 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751249AbcA1UH1 (ORCPT ); Thu, 28 Jan 2016 15:07:27 -0500 Date: Thu, 28 Jan 2016 21:06:20 +0100 (CET) From: Thomas Gleixner To: Rob Herring cc: Brian Starkey , LKML , Marc Zyngier , Tomasz Figa , Frank Rowand , Grant Likely , "devicetree@vger.kernel.org" Subject: Re: [PATCH] genirq: fix trigger flags check for shared irqs In-Reply-To: Message-ID: References: <96c068ece0f5d01fc85bdbd9e0798f68180eebb8.1453204950.git.brian.starkey@arm.com> <20160128095955.GA12884@e106950-lin.cambridge.arm.com> <20160128111041.GB12884@e106950-lin.cambridge.arm.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 28 Jan 2016, Rob Herring wrote: > On Thu, Jan 28, 2016 at 5:49 AM, Thomas Gleixner wrote: > > I've cc'ed the author and the device tree folks. Perhaps are they able to > > explain what this commit tries to 'fix'. > > It's certainly not clear what driver was being fixed. I think the > intention was to provide the trigger flags from the DT to drivers in a > standard, non-DT specific way. The implementation of it certainly > seems convoluted. The usecase I can think of is drivers may need the > trigger information for cases where the device can support different > trigger modes/polarity. The DT says which trigger mode to use and the > device and irqchip need to be programmed to match. IIRC, SMSC ethernet > chips frequently used on ARM boards do this. I can see that the driver wants this information, but why would one feed that back into request_irq() when the interrupt was already configured by DT. Still confused. Thanks, tglx