Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp15407img; Tue, 19 Mar 2019 13:22:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2DR067rBh9++UCttl2DwKkSczyOL/vZC/UQarb/psUP9RZOM/fH7lNqYlTYWmHerXeBsE X-Received: by 2002:aa7:8102:: with SMTP id b2mr3758682pfi.69.1553026934955; Tue, 19 Mar 2019 13:22:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553026934; cv=none; d=google.com; s=arc-20160816; b=ri3Sbcy082HDz4F76sN7wAm6PO0fxKLi6C5qB/9dDdHpr3vQSyjj1NSq1iVtWQLN3a CXEx/tUTXH3k96nJ4/9pv3mTo2ogrY1GCi1tl6m8Icrib84q+L4efA8KL7wAS/Bf/P+H /Uk7+fBY80S9vHHFyfR/ULrKyR7gGg3xgPAcI51Fo6RzupwXCsCjTdTFbtcBXA7ZeCYu Vlbe+eIq1Gf2Qq2oSGdToa3WpFrmVYjdTLYl4CFr3t0hSvHw84JjNZVuqUrmB4bZvFm6 vJnYZfPYUdz/pBfr7KWH9M3Cpd7OrmFlO9w4Q9cFewjeaTUVwmQLC21EpoGA2d2XttCS V9Lw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=QAp0KuCd+VwXHGjzKhbOPSvfhdsI4XdE3B+BZLnU0mk=; b=cZykMBYy2VGNETWz3qa+hvkZyZUKIthj2WmVrvwE8lnuB0RrEn+kFOk0lBS9xiMiov n6V3/1pGf0cfWxqMk3kIqQHIC7W1n1hHHwtSuKqIUlzhm0+FBKVFrBXMyEbxm+xS6kXh Bem2EpIV9FXxwoY1pX3p5e5sse2jUp6DkhiaIy2CwJP9+NJEV8/1Y1N1xw1UICDqhdYT Puwe98rZID8pNdDzo2uQpervEmDBhc6J0JYeXe696+gOsDaXARfyL1XWdnZ1DjXv4CE+ VD9b0THAf5ApmXoM0zVuhBl+zcyQFMaBf+qnSnPdkx8bYPLBCBgILspDqHy+CtojatVV uXYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="j6s9im/u"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l127si12850685pfl.2.2019.03.19.13.21.58; Tue, 19 Mar 2019 13:22:14 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b="j6s9im/u"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727267AbfCSUUA (ORCPT + 99 others); Tue, 19 Mar 2019 16:20:00 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:38588 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727017AbfCSUUA (ORCPT ); Tue, 19 Mar 2019 16:20:00 -0400 Received: by mail-lj1-f194.google.com with SMTP id x13so250878ljj.5; Tue, 19 Mar 2019 13:19:58 -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=Nlf79ZwyNn3KpJFpG8MqD5FA1a3up3jDdu9DQgI2Hz4v8FEsRpQYteFv3qVvKLqOlN Qka6XX6D7AAUwzYA4eNoCGTXU22EyUkLTRzdaS6u1J1SPt1d1UQSzebtg0ibJRuaXnEg QcCE84/6RaxRF7NY3q9g3RxkfvWMC8QsIgDjVyHh2Txpr9i9y3XQ9xJpo9HzT839828c d9sGqqzxVgKvB0pXRm731UeRr8iC7mIZeY1fcjZqQn2Gs9EP8Y//s5Di312+jt6cCHId o3yjBMuOJtvcQtE0AqXhL3l/nuF/H+eJiccuTbj7GCAWWhjkZVICVm6tMBE40b1pPSZQ 2EJA== X-Gm-Message-State: APjAAAV72EM0i/U1TMyClw3NxZm4rG9YoGD4UdBA5LVW4TcE253mo+kS +gUO0iE+0Qxqvhf2a4nqWhI= 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 Cc: Aaro Koskinen , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Janusz Krzysztofik , stable@vger.kernel.org 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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, }; -- 2.19.2