Received: by 10.223.185.116 with SMTP id b49csp1100740wrg; Fri, 23 Feb 2018 11:58:13 -0800 (PST) X-Google-Smtp-Source: AH8x225B4G7CY1zS/W2KrwgQcpB+yo3vcmpWgiQ9BXgx/zeCKwSXnV3OklcJKf6RMSnorutfE6WQ X-Received: by 10.101.69.67 with SMTP id x3mr2280803pgr.69.1519415892945; Fri, 23 Feb 2018 11:58:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519415892; cv=none; d=google.com; s=arc-20160816; b=0SMnnoCX2bgFQXjdeNgopVTsQz2N/f4yb1HgrUNeoWNggEChZSeuUHtq3Nwu3P+CJ2 sOEf/2Y63ybjfAesVWEVBsvTEbG+qV4SIqlOLOGL5iB0lOnRMCg2d21CKpPoOrENk/W+ RtCde4oONi6Wd0hX67NjEj0HT6jHPmvWsg51AlVfZNbh/6IbZqTkFh+IB28wvQ9fa4Gi j0w7Nd2cjFu0G9dmSizpSWHWyjvhELdsWevZW6dR5qtzptLM2N/uKwQChSY7qAwPbVzS E7vdH2FhRk1ajbZ/7OSkFXx+c7ZYjVjzuK6PRZkn1NPr224tHEH7D8xNsNjODmy8x4Lz Shvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=qvGj7/3h5cKtkwfT6ancPoKV4C7GNVHpGcaS9wBjRUc=; b=R7t+3LmQk55nx7jfmRER8yt6gnDxeOvU40VrXrLAGtf3mGKQd7LR/QaDIUSI8ip/ZI O+UK2qQ4AHYXZyA6r1PCbZkjF01a1W0HFrDxqErT/UqSOxvtYQxwNNi27VdrJ7CtL3VK 9CSZJofyi4tCrc8jTZpan2ki1f72cze/uk048ul50kowr3f4H2FErOBuwwtqblrLVb2x j4KDBF4fs5l+g+EKe+CgkNFShwN/Wyhm8goYqmwzFSqnZfVNOOLLNDm350Df3tZ+BE13 Ldpsxr/m9UpG/CekEnoBY8HtXNL3flkK40yPukycy8uunpTWTR+qSNFwK4Cv3X7elUuE U01g== ARC-Authentication-Results: i=1; mx.google.com; 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 3-v6si2190867pls.721.2018.02.23.11.57.58; Fri, 23 Feb 2018 11:58:12 -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; 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 S933589AbeBWSoc (ORCPT + 99 others); Fri, 23 Feb 2018 13:44:32 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:42542 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933574AbeBWSo1 (ORCPT ); Fri, 23 Feb 2018 13:44:27 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 0BD1B120B; Fri, 23 Feb 2018 18:44:25 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andre Przywara , Chen-Yu Tsai , Linus Walleij , Sasha Levin Subject: [PATCH 4.9 053/145] pinctrl: sunxi: Fix A80 interrupt pin bank Date: Fri, 23 Feb 2018 19:25:59 +0100 Message-Id: <20180223170731.750733201@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170724.669759283@linuxfoundation.org> References: <20180223170724.669759283@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Andre Przywara [ Upstream commit 6ad4cc8d1ac483e0fd33f605fb2788b0ecf51ed4 ] On the A80 the pins on port B can trigger interrupts, and those are assigned to the second interrupt bank. Having two pins assigned to the same interrupt bank/pin combination does not look healthy (instead more like a copy&paste bug from pins PA14-PA16), so fix the interrupt bank for pins PB14-PB16, which is actually 1. I don't have any A80 board, so could not test this. Fixes: d5e9fb31baa2 ("pinctrl: sunxi: Add A80 pinctrl muxing options") Signed-off-by: Andre Przywara Acked-by: Chen-Yu Tsai Signed-off-by: Linus Walleij Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/pinctrl/sunxi/pinctrl-sun9i-a80.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/pinctrl/sunxi/pinctrl-sun9i-a80.c +++ b/drivers/pinctrl/sunxi/pinctrl-sun9i-a80.c @@ -145,19 +145,19 @@ static const struct sunxi_desc_pin sun9i SUNXI_FUNCTION(0x0, "gpio_in"), SUNXI_FUNCTION(0x1, "gpio_out"), SUNXI_FUNCTION(0x3, "mcsi"), /* MCLK */ - SUNXI_FUNCTION_IRQ_BANK(0x6, 0, 14)), /* PB_EINT14 */ + SUNXI_FUNCTION_IRQ_BANK(0x6, 1, 14)), /* PB_EINT14 */ SUNXI_PIN(SUNXI_PINCTRL_PIN(B, 15), SUNXI_FUNCTION(0x0, "gpio_in"), SUNXI_FUNCTION(0x1, "gpio_out"), SUNXI_FUNCTION(0x3, "mcsi"), /* SCK */ SUNXI_FUNCTION(0x4, "i2c4"), /* SCK */ - SUNXI_FUNCTION_IRQ_BANK(0x6, 0, 15)), /* PB_EINT15 */ + SUNXI_FUNCTION_IRQ_BANK(0x6, 1, 15)), /* PB_EINT15 */ SUNXI_PIN(SUNXI_PINCTRL_PIN(B, 16), SUNXI_FUNCTION(0x0, "gpio_in"), SUNXI_FUNCTION(0x1, "gpio_out"), SUNXI_FUNCTION(0x3, "mcsi"), /* SDA */ SUNXI_FUNCTION(0x4, "i2c4"), /* SDA */ - SUNXI_FUNCTION_IRQ_BANK(0x6, 0, 16)), /* PB_EINT16 */ + SUNXI_FUNCTION_IRQ_BANK(0x6, 1, 16)), /* PB_EINT16 */ /* Hole */ SUNXI_PIN(SUNXI_PINCTRL_PIN(C, 0),