From patchwork Tue Dec 12 08:20:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Shubin via B4 Relay X-Patchwork-Id: 13488689 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 14AEFC4332F for ; Tue, 12 Dec 2023 08:22:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References: Message-Id:MIME-Version:Subject:Date:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Y5axwapGN78egPZKnWhEAN8QvilPOgcfW00r4GrfaSE=; b=ff3klAsKnXhOx0 WNHtVdvazF0GuP90DlcqYDScYgkbJRFf7oUdjWddHMHSZ0lb726uDw8o3YT46GaDWiqwgjughRRBC MIppVlvc4O2l8YC9C4FN8/sNT7Q+6LZ5pzkZlxNPEUE+tgsawvjnhLZCLT2nfVJscn9fdxmI2lvDY YN3FBr4hFNnVvg/3I5hwJksLzc9KStaGD1dqLBA/TYerL1TjoviDjRi3LvAPvaqwPEYsZ+J1HCISk DmoDpE1bXFeFw6Vysk4Ipr36R60COnTBVsDDNThuRsIaldURzfexx4PUvQaXcnmET9h4VZYltg9f6 sY/GcI5+JWBWdo1veWaQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rCy1p-00B25n-1J; Tue, 12 Dec 2023 08:22:09 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rCy1m-00B23q-0m for linux-arm-kernel@lists.infradead.org; Tue, 12 Dec 2023 08:22:07 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id ED60861360; Tue, 12 Dec 2023 08:22:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 9E0FDC433C9; Tue, 12 Dec 2023 08:22:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702369324; bh=Ws2Fzeywcs8Feiu8aYxTjd9qqzeV993oSjVcYoa9TP0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=QroiM6jnH+6B0Q6h7+XZppIhkxowijpYKqr0rf/Gr43zcPFlXumHa0OBj5K7xyKEt KWhZvvbr9SDNcJo8mH2CZr/W/EIMjN0CPlSGBjszA3M7TBpDMpISwc4CS7g9J4PkXB C5SgtLYTuzKPkQe6f5mjJqhBlmoFUc0MJscWgBwnYHXZHWHrzNFXXyCEj1gFaH5kUs w3qKvRXNGR21FzAXwtj1tl//kFNvUX87UY6vQsL4Q1hDFvdFX34exhSsYu3VbYANXU 36O1M2B6vjiDtzaTCuWdJblRKG4LPSbFU3KpOirDfo9bQaeaEnJHbha4ceBlwKkovB tKjVKQf1wTlGQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88EEFC4167B; Tue, 12 Dec 2023 08:22:04 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Tue, 12 Dec 2023 11:20:18 +0300 Subject: [PATCH v6 01/40] ARM: ep93xx: Add terminator to gpiod_lookup_table MIME-Version: 1.0 Message-Id: <20231212-ep93xx-v6-1-c307b8ac9aa8@maquefel.me> References: <20231212-ep93xx-v6-0-c307b8ac9aa8@maquefel.me> In-Reply-To: <20231212-ep93xx-v6-0-c307b8ac9aa8@maquefel.me> To: Hartley Sweeten , Alexander Sverdlin , Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann X-Mailer: b4 0.13-dev-e3e53 X-Developer-Signature: v=1; a=ed25519-sha256; t=1702369322; l=740; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=BLqbGJKvsA7sLJyVC3iK75j5WqPmntAKufr+KsjrO8M=; =?utf-8?q?b=3DVYM6IAgjJ4AS?= =?utf-8?q?/synFz4n7psMJW+cvi6GL+317NuXXjxtumJ9AgZbQxp1v1chmXVQemUPzRZop6DM?= ukG6sH4rBKlE34uN7mSliYxHYtu+OecQvOyCJkTXfUuEgThZ/GMk X-Developer-Key: i=nikita.shubin@maquefel.me; a=ed25519; pk=vqf5YIUJ7BJv3EJFaNNxWZgGuMgDH6rwufTLflwU9ac= X-Endpoint-Received: by B4 Relay for nikita.shubin@maquefel.me/20230718 with auth_id=65 X-Original-From: Nikita Shubin X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231212_002206_338228_40CA4212 X-CRM114-Status: UNSURE ( 9.57 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: nikita.shubin@maquefel.me Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Nikita Shubin Without the terminator, if a con_id is passed to gpio_find() that does not exist in the lookup table the function will not stop looping correctly, and eventually cause an oops. Signed-off-by: Nikita Shubin --- arch/arm/mach-ep93xx/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-ep93xx/core.c b/arch/arm/mach-ep93xx/core.c index 71b113976420..8b1ec60a9a46 100644 --- a/arch/arm/mach-ep93xx/core.c +++ b/arch/arm/mach-ep93xx/core.c @@ -339,6 +339,7 @@ static struct gpiod_lookup_table ep93xx_i2c_gpiod_table = { GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN), GPIO_LOOKUP_IDX("G", 0, NULL, 1, GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN), + { } }, };