From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from vps0.lunn.ch ([185.16.172.187]:35567 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933992AbeCSQhZ (ORCPT ); Mon, 19 Mar 2018 12:37:25 -0400 Date: Mon, 19 Mar 2018 17:37:13 +0100 From: Andrew Lunn To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: Vivien Didelot , Marc Zyngier , Thomas Gleixner , kernel@pengutronix.de, Florian Fainelli , netdev@vger.kernel.org, Gregory CLEMENT Subject: Re: [PATCH 0/4] net: dsa: mv88e6xxx: novice fixes and irq handling Message-ID: <20180319163713.GH26039@lunn.ch> References: <20180319100523.24498-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180319100523.24498-1-u.kleine-koenig@pengutronix.de> Sender: netdev-owner@vger.kernel.org List-ID: > interrupt-parent = <&gpiosb>; > interrupts = <23 IRQ_TYPE_LEVEL_LOW>; > > to the switch of the espressobin's dtb, the irq couldn't be used. The > reason is the interaction of several things: > > - On the first try to probe the switch, the driver did: > > irq = of_irq_get(np, 0); > request_threaded_irq(irq, NULL, func, IRQF_ONESHOT | IRQF_TRIGGER_FALLING, ...); Hi Uwe It looks like we should just drop IRQF_TRIGGER_FALLING from here. The interrupt trigger will be configured by of_irq_get(). All the current DT files actually list it as IRQ_TYPE_LEVEL_LOW. > When I tested the second change however the driver still failed > because the gpio controller doesn't support level sensitive > irqs. :-| Do you have documentation for the SoC? Is it a hardware limitation, or just missing from the pinctrl driver? Andrew