Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5385874imu; Tue, 13 Nov 2018 05:53:25 -0800 (PST) X-Google-Smtp-Source: AJdET5eC9Fg9lZxT6XqMo0LRWGJi/znnr1TkvLwdZ4/CmbIlXX7WgI65zI0Rg/E7DuQi2J/EzMrc X-Received: by 2002:a17:902:622:: with SMTP id 31-v6mr5202221plg.310.1542117205095; Tue, 13 Nov 2018 05:53:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542117205; cv=none; d=google.com; s=arc-20160816; b=GfgkJHgJEYOyaYoh5zE6q6aNbVUwi1WwrrQLpopOjBM1KUrImxO6OAvPlmuYDLoxQy ofZo/0t2+nPzTWNhZ2fv8yFRaQPB0kBsQhEU3IcrSk2fvZ5iZcmtWtdnGov0w/pAV+9s Lz6BTH3PGb0VOserGSXPuhs8+PhF3sGH+EZUiz8MvoT9FsUqOv6zT2HsO9b9TctUZXSb I/rWGSnAcSZyv6xzp/BOBWjsVpNNo2E2dhyw8CJrbcXp8yZ5w4WCA4pDhO1XiOJcrIP+ bp9AL5SZvD/Vp4QpnQ+AHwmP8IyKWTpZg34Twgg0RjQmgEzcnZktaaF/7iADs7jzTlsj 6MWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=EqbcBvNIf6iLrXvBJ0RudteC88DgQj0z3czJgabReDo=; b=XJ+n3ig8Ef8QYhFNzamxZ90R4JU7QQH5SjB2Kbe9563U/1FGhoWhnrWD6GOTGqhFbt hdVsDU8/QySF0tJLgBkWnSNhO/bTmP9wh63OR/9wzvaywwQbvfofCb8H94L90KBf7+EW DwJ1KZKF7BenvIdp1msdsY74ACf12rlokEz6b3ec9apfzZnvdDhseUPm34RnkY/Qw0uG hykvfDoTcoCzevkK0PXm71A3o471UnNZtNMNmh41+L5hZnHe25knnXMK1GsEFclHDOqR ArCjDE4TUyRtL2TnA8IdEmeNje5vj1nNG0ajVt7hxz9gDW+ijEe51coFh6w7JvFS1LD6 kFXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b="F/tgXOjk"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1-v6si18371973pfe.44.2018.11.13.05.53.10; Tue, 13 Nov 2018 05:53:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b="F/tgXOjk"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387412AbeKMXtT (ORCPT + 99 others); Tue, 13 Nov 2018 18:49:19 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:56088 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733196AbeKMXtS (ORCPT ); Tue, 13 Nov 2018 18:49:18 -0500 Received: by mail-wm1-f67.google.com with SMTP id i73-v6so6705098wmd.5 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=dkTxjRSAuKSgQaVPt7iTr2hNEZL9OPugL0e9LxH61L/OE19q8y0pbtcyk4fAxyMkb3 FFvnzIGP72pbvNqfyN86Zr5GZe0R8RoMRGUsb0Txq17hu9yacS29gGPZlPGrNSzTUsfL B+cNmOCYmI7SSg78b6HwwJui+XZa9SqGHSuMgYmHAHms/DdmZ5vSOonXMPGjY+NEDnYi 2I9wWw7oL2+QDbG1EqcEG6yVfbzIZMWnDpyGlyRnARyqYJS6Vzn6gRSINzHNp7ylL1Vq DqD/ueBif54QQpOfl4EHg/VTfOzjJMln4AfPuX00tVJtnWXVLCidCOWfjN5Z8t5cMrDc E4bw== X-Gm-Message-State: AGRZ1gK98EU8iE3caoWvCwYB7X8E6L6VRvTTmtsV3bwr+DcW9tPphAQ5 V1e2k5cv+JoQMKBjwLdbX6czIw== 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 Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski , stable@vger.kernel.org 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 = { -- 2.19.1