From patchwork Tue Nov 13 13:50:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10680811 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A6A0113BB for ; Tue, 13 Nov 2018 14:18:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9157928481 for ; Tue, 13 Nov 2018 14:18:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 835712A9DE; Tue, 13 Nov 2018 14:18:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D54582A9C7 for ; Tue, 13 Nov 2018 14:18:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0z1QW5f0uhwONor4QICxvEx4ip3lhcNbkpKmcvweCgQ=; b=dkEgyK1t+Tkt3Y VY2rYcRIEMRTT6yFHbFvtRwnBNjXoHMlrrqPVHlVpfKvi1V9FSPUke2PAOPOXjxcn0AKXw8MwjL1d WIhzlIW9t5cV5mGv/F/sB56AKz5L2AXHkWMrSo3ZQwVXy+NSW0f/UPYl7lix9DmpkXe+Y9zjRA+j4 VS9YjomH4CbQLsAuCV7cpWJcHNEBpGF3hNRCBaOflttgYLeZ2CcHbuaMgAcWeIfC5NzRmGBLejQ7E ryEyZ4Oesx/LT1BY5ASE07bh6Li4cOBjmk78LFh8gxU9Zic0wcxOYCm5IrX1D/HOVDiLDB1fO2REX MNpN0YW1x0+MSxh+pgJw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMZWZ-0008Jh-VL; Tue, 13 Nov 2018 14:18:39 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMZLm-0002mT-Dk for linux-arm-kernel@bombadil.infradead.org; Tue, 13 Nov 2018 14:07:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type: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=EqbcBvNIf6iLrXvBJ0RudteC88DgQj0z3czJgabReDo=; b=S/X4aLpTpoROBryIrN1GUMD83K +cZconJfT3Pj9pJGA4ra6eMdNPFA1115/21yog/AB8AtwpnRF8wbq6vf22Jfmqu5DqmRTPGXJdcFo wdX60GvkTZkkekIB3lPxIos87i57K4oF+lCpSpB0zd6EwIkgPnitV1LhJOvVTA+n2E14onkLqdoIg 29crgf1/fNmbVAwAykaQWx75aoEFYKB+9y7istg6eQ+b1t1kc6XlWSTXZSASAO6DhPtLFCTU8Ap2p Ddxyaao25BdUuY/N7jSIEMpe3w266YQuwgSgawa2SJiUNNyG7mCX/c3csCyEP1UCbBE7qFTBxDOMg RkUhBqCg==; Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMZ62-0006Cs-Kr for linux-arm-kernel@lists.infradead.org; Tue, 13 Nov 2018 13:51:16 +0000 Received: by mail-wm1-x343.google.com with SMTP id w7-v6so11997067wmc.1 for ; Tue, 13 Nov 2018 05:51:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=EqbcBvNIf6iLrXvBJ0RudteC88DgQj0z3czJgabReDo=; b=F/tgXOjk8SqibHjxfSKi/GCz3517Y5953cdDAlJqG8w7t+qd4HudPaDJzOW3x4F57q skpqT1spCNNy2q8hLlwScb6/4RGP8LwvPuoFqqAki1pvMoKTvrD3iHWkd6Quya40Nl4Y qwwuWSNjulS+uR9Zo1xIV5VCks0b0oAbuFKOP22R9QML9GA97OWe6MEvQvnBC99FeHYt +pzOfsRrKMRfihxS578zoefbrKbMXFlWsB9K5csxA3XZzVRQcTu0KpI6T7KeGbtz5RVy 5gUbHtMx/DJx0y4mKwNNxgz/AVSxwhb+CUj74NPbI3HI8Q+WPQLJDV+UTWYcnzCxnUyt B9Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EqbcBvNIf6iLrXvBJ0RudteC88DgQj0z3czJgabReDo=; b=PIUw+UpPzdvHYO1Lws5GoVF3muZwf5n2YqKoK+UtnjzVD8KG5No3mKAg+AVQS3nYXu C5BhBM8eXEu2ty6JX2jtBS0CNulKK4ZkIEzFtP+RhmvEIkpPo0iFQiscTN/84CiiZ39M HSPpcUDHSJAC8RHS0P+92mTtWdBzpvNErJ/kdCWU8vDgtGnO/DXjnrukAtdg2koNmQUr jdGOVzmacjnaMoarRHPym2OfiZZCSRyF5l1+2otzuhwIwWFi2EAFbkFpuOPqx9pWofML MaurrGY/dBJ1MTUQeNFdnYy3oXi3yVItEx21jgsEVUzkisoQUcKhi+FWu7Yz+tD1AKMn mcUg== X-Gm-Message-State: AGRZ1gLjInAYC4Dk6hyyMhDeYBJYbmg9VXSc3J58RQRJAcUXMePm4Tke hz637FyN+ARpIVi4zrVizekVcw== X-Google-Smtp-Source: AJdET5cX3cgrOQjkPXEqQLeqGEnZIJD0uu/3tprn9dF5OcpZDi0uaBxsIz642w85iYymYCgap78vjw== X-Received: by 2002:a1c:5d41:: with SMTP id r62-v6mr3148449wmb.93.1542117063096; Tue, 13 Nov 2018 05:51:03 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id j40-v6sm15170050wre.48.2018.11.13.05.51.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 05:51:02 -0800 (PST) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Russell King , Keerthy , Linus Walleij , Grygorii Strashko Subject: [PATCH 1/3] ARM: davinci: define gpio interrupts as separate resources Date: Tue, 13 Nov 2018 14:50:49 +0100 Message-Id: <20181113135051.15308-2-brgl@bgdev.pl> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181113135051.15308-1-brgl@bgdev.pl> References: <20181113135051.15308-1-brgl@bgdev.pl> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181113_135114_684169_97F15D88 X-CRM114-Status: GOOD ( 15.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-gpio@vger.kernel.org, stable@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Bartosz Golaszewski Since commit eb3744a2dd01 ("gpio: davinci: Do not assume continuous IRQ numbering") the davinci GPIO driver fails to probe if we boot in legacy mode from any of the board files. Since the driver now expects every interrupt to be defined as a separate resource, split the definition in devices-da8xx.c instead of having a single continuous interrupt range. Fixes: eb3744a2dd01 ("gpio: davinci: Do not assume continuous IRQ numbering") Cc: stable@vger.kernel.org Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/devices-da8xx.c | 42 ++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c index 1fd3619f6a09..8c4ae9866e3c 100644 --- a/arch/arm/mach-davinci/devices-da8xx.c +++ b/arch/arm/mach-davinci/devices-da8xx.c @@ -701,9 +701,49 @@ static struct resource da8xx_gpio_resources[] = { }, { /* interrupt */ .start = IRQ_DA8XX_GPIO0, - .end = IRQ_DA8XX_GPIO8, + .end = IRQ_DA8XX_GPIO0, .flags = IORESOURCE_IRQ, }, + { + .start = IRQ_DA8XX_GPIO1, + .end = IRQ_DA8XX_GPIO1, + .flags = IORESOURCE_IRQ, + }, + { + .start = IRQ_DA8XX_GPIO2, + .end = IRQ_DA8XX_GPIO2, + .flags = IORESOURCE_IRQ, + }, + { + .start = IRQ_DA8XX_GPIO3, + .end = IRQ_DA8XX_GPIO3, + .flags = IORESOURCE_IRQ, + }, + { + .start = IRQ_DA8XX_GPIO4, + .end = IRQ_DA8XX_GPIO4, + .flags = IORESOURCE_IRQ, + }, + { + .start = IRQ_DA8XX_GPIO5, + .end = IRQ_DA8XX_GPIO5, + .flags = IORESOURCE_IRQ, + }, + { + .start = IRQ_DA8XX_GPIO6, + .end = IRQ_DA8XX_GPIO6, + .flags = IORESOURCE_IRQ, + }, + { + .start = IRQ_DA8XX_GPIO7, + .end = IRQ_DA8XX_GPIO7, + .flags = IORESOURCE_IRQ, + }, + { + .start = IRQ_DA8XX_GPIO8, + .end = IRQ_DA8XX_GPIO8, + .flags = IORESOURCE_IRQ, + } }; static struct platform_device da8xx_gpio_device = {