Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp200393rdb; Thu, 18 Jan 2024 00:23:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IHkzQnjgbxXZaxW2JX7B4J6jc5m+/mtrJULB/ZpJy8ufWqoyeN77YFnxU1Uf4pA+zPGhfRY X-Received: by 2002:aa7:d9c5:0:b0:557:de72:8dd6 with SMTP id v5-20020aa7d9c5000000b00557de728dd6mr324419eds.36.1705566233115; Thu, 18 Jan 2024 00:23:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705566233; cv=pass; d=google.com; s=arc-20160816; b=cXNfzULErBPFU+AsFZ39cnvumynF2g7GW7gJqC2WnCBAiwhwrBC1lIqvLIhgQBlje5 JHFh1y2vBV+1NRrGlF8vPkXG7zeeRBppgUvUZslwu/3zGp0lzOFugXvd+/h5Gi1twf5E 2RWI4g2WvQUOGBPYupMjzsGSC2yG7d1lWjUAH28rzBTJZCVasAhLV1a5ZxK/S2y6xPcr 1ExeRsguuHi4BfsmuYU95Iwjtz6KBD8pmf69+Xece3LadH2FrQYyb28y7TkE7WTYungk McfjKD1mLwhiVMngX9TMKq22lPAkJ9lzNa2YcLJNKJqn4ixn1ATIs6C3awucO9ECHXva jTOg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=eOfoU6OC7mriHBsk4nhUDX3LitTJCbPba4w3L1w8vq4=; fh=Ih6/AsUH5W3dLsraZSI61Zu3aC9IriSh+FukQcav9nc=; b=kMcxoZ38k76t92Zwl6OGbwtYw4LqrLy8fqaQJ8eRepq/1EXO5l/ThjcyJbLw1i8rMo AH76RdWjwGFNHm98fj/jzVQTIkAdsKgK+hNNAOEouuo2xccq0uhdTH0PQ8pMgTovCtvK LwVYI3weT0KhyE6YyfrlBSQxdAjycUkfCoqJFV/7DIK85+Tb1Awa0+sqhXZpf5CxjoF2 ziU2x+VEFAUU9fWqEPovMWHU+bXPibaBxn4odeAmMpfQ72l6JI/jc6OobJrU6wJJLkQL d02iy6gs9ldF/IaajS+hirhvEKuqcK0a7c1n+IAACPSThQ4AKOHpHwFeHtswOA/oOyDf rVXg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KupzRSKw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-29849-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29849-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id fi27-20020a056402551b00b005597fd161b3si2752578edb.460.2024.01.18.00.23.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 00:23:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29849-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KupzRSKw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-29849-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29849-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C91861F247FA for ; Thu, 18 Jan 2024 08:23:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 45A6720338; Thu, 18 Jan 2024 08:23:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KupzRSKw" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4DAF5C126 for ; Thu, 18 Jan 2024 08:22:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705566179; cv=none; b=UJOIwaX2G1UpduoS11o2fw/EtXFtA6yKwCjnDmO8GYOz1IW5dpJ2p3FVY7bInqBE2G2RcLJcktIzScXFSLzung4Q4+HRRWEAmfC2ZULJxIPkj/iwaZ768Lb8xQ9D/TOOKRHQSQr973hPkHpC6H7MSAbnZCAkT3EMgXJW+Lz8F5s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705566179; c=relaxed/simple; bh=rdeMJ54UDpLRwou5AAi1qhJ+l2f3fkTzSdFE/M1TJBw=; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-Id:References: In-Reply-To:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: X-Endpoint-Received:X-Original-From:Reply-To; b=sgMRx0QP5gpfkq36qiVxaH0bwlgfehYvX7+TDZV0z+H8n6qFnpjc7z8WBI6GyCijWLwR6e+k814UxyqpyY45jGJXLDU/KUiL6rV5rDE4gZil0VfprSDamGQMHv2WMlMPKGkpv5vbRkIE7xl9yOEBbuw6P7cqM3tkaDqOWvT9CBQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KupzRSKw; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id AFA6DC43394; Thu, 18 Jan 2024 08:22:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705566178; bh=rdeMJ54UDpLRwou5AAi1qhJ+l2f3fkTzSdFE/M1TJBw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=KupzRSKwfCCtWTBu6otka3WpGqV6YM9bqsCsvpqlseCpByGglp1mtCSrH0lgtuUCb xvaeG5WwWxIf1fAnsxXQ8bLwLvzMwVbTJmflrIECe8Ojz0VqbUl8Aw62n5JBJZArye llQ3vQnECkFQrEoZqQgDGf6c6L4RxixyPA2Ewwbqh29kSecv/qgoeUMh2Tl+H/otkN OpqnBsKtfTTwx4O+YHUqgYvhNwXkaSgXWjDFUZNvVGKyuIlhoYifZuRvF5BMLN/gL3 QevyO2T6/Z+RRbt4FyN2pSL0HeuRavIOZTlT1xL03BNg5MPbCGhJK3HaXVegZ5Qlpt qsnQ4FoCLl11A== 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 92569C47DA2; Thu, 18 Jan 2024 08:22:58 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Thu, 18 Jan 2024 11:20:44 +0300 Subject: [PATCH v7 01/39] ARM: ep93xx: Add terminator to gpiod_lookup_table Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240118-ep93xx-v7-1-d953846ae771@maquefel.me> References: <20240118-ep93xx-v7-0-d953846ae771@maquefel.me> In-Reply-To: <20240118-ep93xx-v7-0-d953846ae771@maquefel.me> To: Hartley Sweeten , Alexander Sverdlin , Russell King , "Wu, Aaron" , Olof Johansson , Lee Jones , Ralf Baechle , Linus Walleij Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Andy Shevchenko X-Mailer: b4 0.13-dev-e3e53 X-Developer-Signature: v=1; a=ed25519-sha256; t=1705566176; l=863; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=V19ji6HRT/LvwSZh25S7DqwrqE2geyei6CamYGzg/Hc=; =?utf-8?q?b=3DYR1wB031b++R?= =?utf-8?q?wryG4mHPVamzIXC2oyPM3Zu9KFhD3ooTRX5FUQNHjBLVAwtpkLRZM/E0zEh7uKZE?= +8poBxUwCRq+UbGwKikH2jXXdCCQCO/FeFkZ/Bt3+BH9FmY0cNWn 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 Reply-To: 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. Fixes: b2e63555592f ("i2c: gpio: Convert to use descriptors") Reported-by: Andy Shevchenko 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), + { } }, }; -- 2.41.0