From patchwork Tue Mar 19 20:19:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janusz Krzysztofik X-Patchwork-Id: 10860319 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 0AEFF1708 for ; Tue, 19 Mar 2019 20:20:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE34228DE6 for ; Tue, 19 Mar 2019 20:20:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D2C4C2959C; Tue, 19 Mar 2019 20:20:35 +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=-2.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI 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 AC3E229083 for ; Tue, 19 Mar 2019 20:20:15 +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: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:In-Reply-To:References: List-Owner; bh=cIdCCSz5glAiGGPBtHwzDvtg28/xXiwrSSBqjvKPqrI=; b=GEDLPqXvsTwNZl beh7iU+/gq+dSVPCm3Htb10LiTB7U8SFphLahjHHg9IIuypbpAMV6/yOs/XSoGDGu6mwp+kQHM3kc JyTgtHCW/Biy6g9ZfdjXCdTzOS1JRpWjH4KnXTIGZi5kcVKf7Jc3ZBaVMpZiu6fBX7gtoOaHbjGLA 6WHstvkLHG9HNcAAMF0AAz26j8k3l7Q5Rjs2snSFG1RoDa429iZE9DiWo6Pwvrwmttc+PHxT7CS0e +3X1iTj/IOz8jmcASr3YJYCkBISXitFM/5YLvG5oYk2/8fJQ7OwF9uJOa1TdX26rvsJZVyqxckQ46 3cwNnVpoPvMcoOfcQltg==; 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 1h6LDQ-0007hK-Ck; Tue, 19 Mar 2019 20:20:04 +0000 Received: from mail-lj1-x241.google.com ([2a00:1450:4864:20::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6LDM-0007TM-Fe for linux-arm-kernel@lists.infradead.org; Tue, 19 Mar 2019 20:20:01 +0000 Received: by mail-lj1-x241.google.com with SMTP id j89so276945ljb.1 for ; Tue, 19 Mar 2019 13:19:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=QAp0KuCd+VwXHGjzKhbOPSvfhdsI4XdE3B+BZLnU0mk=; b=j6s9im/uW0PjIPrC7LisBb4yt4hAP9QE0ccseZ//LilK2ZfaIxgGcC8Tgobaztjlln Nyi9NePlyThsQ4U3Ie6sjGo0+OklAqXc21M1zUbC10pqUIhlqCA7S07H/qMdD5egUjk0 nNN9BzCUvIKsVdPUBn81Bkn69N3nmmlSYUjQjccWbG9Q38tlLjIGdnZZK+bXY1ZPon7I L0wGnqXiPWcMRjFQr9z0NOW7AMQc2/18EQqQBE2k6IlSmkIvmlTiW/i2UZ8Ide6BEX6V T0L/zZAP16pUdtHOjs0zJDd4A/JW+cbdoKn5wueQhFC4AMKznsPxS5yA3HSeCsYzHpyw 7ohg== 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:mime-version :content-transfer-encoding; bh=QAp0KuCd+VwXHGjzKhbOPSvfhdsI4XdE3B+BZLnU0mk=; b=qOa2WJJwmSF1GBKBbKn8hj3CW/lQnNWobmx8W3f29/5bNJ8Uz8tiEWKMsOjBI8SXNf J4T9tyCpiHd0MSk9gaBvV50SpKPZagXRNjZmWBUnZaaTp3WefK53ghMgnScnkAbWn4H5 0fIXLrlp9+8ioCZxq9QueaMRPckqrQsPb1I+wu95qfjZFXWXak6JjkQHYki2V+plyD/Q /ZZ9eMsZSBHuTKIvWmRo5Ajxy8XCRhPtC0dTDXHN/7ZkBL2/tHPGrboLSHiIkgaRPcPW pEvmJ9+ESNUGtTOeeCaFFUS6hmygAyAh3itrO226BVQ6B8NtXdh026zawct0dsb6GZ2A yz8A== X-Gm-Message-State: APjAAAWe2XJqrPEyoFe7d3uayTNgOYl0c4tgeOODfdMpVDmKuhD/UXVY NqdmzsXwFibPQL2hr3jBM9k= X-Google-Smtp-Source: APXvYqygDDUfXYqH+4ugtLxN68Uudfb9H3IzyKHm/PL3yUCwrxxR86FDcwIcbV7LqN/S4wCBQg8TgA== X-Received: by 2002:a2e:899a:: with SMTP id c26mr13444322lji.192.1553026798116; Tue, 19 Mar 2019 13:19:58 -0700 (PDT) Received: from z50.gdansk-morena.vectranet.pl (109241207190.gdansk.vectranet.pl. [109.241.207.190]) by smtp.gmail.com with ESMTPSA id i24sm2864410lfl.73.2019.03.19.13.19.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Mar 2019 13:19:57 -0700 (PDT) From: Janusz Krzysztofik To: Tony Lindgren Subject: [PATCH] ARM: OMAP1: ams-delta: Fix broken GPIO ID allocation Date: Tue, 19 Mar 2019 21:19:52 +0100 Message-Id: <20190319201952.1309-1-jmkrzyszt@gmail.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190319_132000_519927_CBAC6687 X-CRM114-Status: GOOD ( 10.57 ) 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: Aaro Koskinen , Janusz Krzysztofik , linux-kernel@vger.kernel.org, stable@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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 In order to request dynamic allocationn of GPIO IDs, a negative number should be passed as a base GPIO ID via platform data. Unfortuntely, commit 771e53c4d1a1 ("ARM: OMAP1: ams-delta: Drop board specific global GPIO numbers") didn't follow that rule while switching to dynamically allocated GPIO IDs for Amstrad Delta latches, making their IDs overlapping with those already assigned to OMAP GPIO devices. Fix it. Fixes: 771e53c4d1a1 ("ARM: OMAP1: ams-delta: Drop board specific global GPIO numbers") Signed-off-by: Janusz Krzysztofik Cc: stable@vger.kernel.org Acked-by: Aaro Koskinen --- arch/arm/mach-omap1/board-ams-delta.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c index be30c3c061b4..1b15d593837e 100644 --- a/arch/arm/mach-omap1/board-ams-delta.c +++ b/arch/arm/mach-omap1/board-ams-delta.c @@ -182,6 +182,7 @@ static struct resource latch1_resources[] = { static struct bgpio_pdata latch1_pdata = { .label = LATCH1_LABEL, + .base = -1, .ngpio = LATCH1_NGPIO, }; @@ -219,6 +220,7 @@ static struct resource latch2_resources[] = { static struct bgpio_pdata latch2_pdata = { .label = LATCH2_LABEL, + .base = -1, .ngpio = LATCH2_NGPIO, };