From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A0DCC432C0 for ; Tue, 19 Nov 2019 11:00:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3DAA721852 for ; Tue, 19 Nov 2019 11:00:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="TopOXo3R" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726351AbfKSLAi (ORCPT ); Tue, 19 Nov 2019 06:00:38 -0500 Received: from pandora.armlinux.org.uk ([78.32.30.218]:49768 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726000AbfKSLAi (ORCPT ); Tue, 19 Nov 2019 06:00:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=7xYPBOsOUttXU6u6FFGO6AadLzEHL85S6CRWNpo/gZQ=; b=TopOXo3RK1DkRNils8wMuqomO 33SdGU7uMQFzhaga5C2QPeBRsJjvMo6N4ytk+A0fOZJ9qykcoq9ZKnpur5C6+cRLTCnGEp6HtvH8I z0nelwmeTxj7nAtINIOa6UZrzwt8TAZgfNJJept6qHcQsHbxBrlfJ7bIvZIaspP5ChFvbTx2yrqLu MhpNQ6/2vv/P/nH7FCs18Fsard5vDJBfKKmMOy0fQ4yQqXoBvCooOI77SBtkjY6b7Vrszyw3oO9Py MGl7RdiFlq7sH/ytvnFCIfErM628Me03XktDGGhYuDcfohhu/Ui8JWY+oVcJ7M0kQbO6BoUoGiErL JLHPGYfLQ==; Received: from shell.armlinux.org.uk ([2002:4e20:1eda:1:5054:ff:fe00:4ec]:37538) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1iX1FH-0000nU-Nv; Tue, 19 Nov 2019 11:00:31 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1iX1FH-0000fC-2X; Tue, 19 Nov 2019 11:00:31 +0000 Date: Tue, 19 Nov 2019 11:00:31 +0000 From: Russell King - ARM Linux admin To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: Marc Gonzalez , Marc Zyngier , MSM , Linus Walleij , GPIO , Linux ARM Subject: Re: Using a GPIO as an interrupt line Message-ID: <20191119110030.GA25745@shell.armlinux.org.uk> References: <20191119095748.GX25745@shell.armlinux.org.uk> <07db59e7-ff16-0457-87f2-fba10dc182d6@free.fr> <20191119105619.4osmin7m5ryqfwih@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191119105619.4osmin7m5ryqfwih@pengutronix.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org On Tue, Nov 19, 2019 at 11:56:19AM +0100, Uwe Kleine-König wrote: > Having a pin configured as GPIO is the boot default setting for many > SoCs/pins. So you might get away with not specifying a setting for pin > 42, but that's not as robust as configuring that explicitly. If only that was universally true - the LX2160A as an example doesn't default to GPIO mode... just be very aware of what the documentation, and, as the saying goes "if there is any doubt, there is no doubt". -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up