Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp360803rbe; Thu, 29 Feb 2024 01:29:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVWyOElkwooKp+jJhnegGulT+Xqv0qfmHEYXdeWDezDTSX1c4mmzmRjl8uuhtDk/61KGHwrF9p/4A9vWUlkLpixL3XBUK/RoguANTULLg== X-Google-Smtp-Source: AGHT+IERC167kaiZZGQKemw8hHrJpwhf2qRHBVabboKfg+9mszb7GbtpRUxiYszwL8oHJ9z3HWnq X-Received: by 2002:a05:6a20:ce4a:b0:1a0:f5e6:110d with SMTP id id10-20020a056a20ce4a00b001a0f5e6110dmr2345133pzb.7.1709198976675; Thu, 29 Feb 2024 01:29:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709198976; cv=pass; d=google.com; s=arc-20160816; b=KOqt31tyt4MJfEwGqYmsC/0Q1GVreY1Kx/e0/AsjvdmkZJZZsHsL0M0/+vNouTzRuu LOBhK6Lb/hGaKwLCvkx1XqHTG5SBLJ36ms2MsPteBd9KIYYmObjG9Mcrf+fCGWhqxT54 H6meUwJE/pltxX310m7J47LiDJnEL0ECA+vlyt592Xi3UTdU4i+cguq7KDPS7FdWYEPs DH6VgiZ56waUxxZJ48IqnBbVQmBLewAu2ppbgHLGNtkY280Ocm5LqTG4LfgV7JjE8U/n gHTxiWM3W/c61iaEIRC11uWkRGGCmn+tc86NBQJ5ljeCnB9iefDQEEUUhPEM1IliGSXW Wmdg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=emeJTyQGTBVkPHgEAJypkygeKWxGsM4PaU8Q964nc0I=; fh=QKawyP1qYTkO2PpxMA6u0oWi+amGRhCSCgmF61HXxuM=; b=fWpYRAkY+wuPQrmsyDHYqOj0k4VbW6kIG/eb2ySkX8Dfv3JZ7cHyNi7Qh93oQ0vzO3 8QMvbeygdf5Yhz7RIfhQg6nMmL9lsYPbQHoDy9LO2z/6PX8IpOu2WBOMfXbAWFhGgcfe 1rZ7BRW5Uqm7MQ1bfLI8SdTWHwAbGMXT3RCUnnOPefQxP0y8KuonNOXddgMtIqhylh8p 4w8HNWomGX0puiK18Aw1CeZyZ0KvBOFoLMNFQnFbEQb3HDh+afq5cOreUYACdr3noxbb TJCoWGnJTlx9JI4/BrhdGwgNpBd5FgqZCsQj5JphwWcCp37eQxBkPr3QJEoQ3i2wIzbK HnTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CvKH5Lc1; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-86401-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86401-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id ft4-20020a17090b0f8400b0029a08cabff3si3144913pjb.157.2024.02.29.01.29.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 01:29:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86401-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CvKH5Lc1; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-86401-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86401-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1F0D0B260AC for ; Thu, 29 Feb 2024 09:22:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 17B6159B72; Thu, 29 Feb 2024 09:22:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="CvKH5Lc1" Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2A0C5916C for ; Thu, 29 Feb 2024 09:22:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709198546; cv=none; b=WokLr6m4UaRPuT2PYcHNIhJ280UAcVx7pu6lsgNb5fIkXDkXHx/ML//hFX166MQM1nsXLJrwJahGl1u8NC6NS7WWy7e/W3HXcSO7mHDgIA0/0vKpW04JRhHyU+DRFoMxR4g1ZdpFqVUA/+hoUdGZQgGRtKo7V9I/nWlOq30SVBE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709198546; c=relaxed/simple; bh=bI1ZRftBK9BLam+u83rqGUmNXFCQs9MdpXovOd51pag=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=YNXCluTxdMw0zORpqPUPHQRFAuorCcvQsnIP+0s4c22gWEfLM01gg68haSAE9PCgSb4PAKCcLTUtKxsRSvbXa5DmbEJ4DXMTYSufNHDf982aJr8NB3S5Q6Um7d5n6DCACY1Tn9lapoL9bKjZ5V52A+bdybSiOnFmC56sF07ea20= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=CvKH5Lc1; arc=none smtp.client-ip=209.85.219.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f172.google.com with SMTP id 3f1490d57ef6-dc238cb1b17so765498276.0 for ; Thu, 29 Feb 2024 01:22:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709198544; x=1709803344; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=emeJTyQGTBVkPHgEAJypkygeKWxGsM4PaU8Q964nc0I=; b=CvKH5Lc1vX0qYDfYqSvWkyYW5DEIJlOMAsA3J2WzJvkgFAutD7ojmpJTFAOe8Vn17E d5UzSOQxvpgUR224GSXFIckmtSMvJOkftr6XE0VJpnQhx78x7biSIvkBcMPLiP4tVv/J hUNZb76Dx7CG1IHzzSeTJ1kpZU9fVWDIENb3qNh1sGho5F5khEl5OsOxttQRo6wVdRkQ uuySgwKEY7SIFlNk3RanA0okRitO2LRFVz2On79VRAZCiQZfq0TzkD9mCBE8f06Vlr+z rqEqgu+HOKC53jNdYhHeVbnXTlGC8zh9AMJMR7lIn+TmhlITRXtpkK1xW9vuq4y95HqX Wl5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709198544; x=1709803344; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=emeJTyQGTBVkPHgEAJypkygeKWxGsM4PaU8Q964nc0I=; b=gLoEfqhr6FtpwwV7lAhGCrGDKTM8C5EzIf+OaUJzmY6+KQRbo+w41GYlgYd/yxNBsS TCeJ2TixEPoWsqUmCNTVUqVSLVf0RyCgEg4gAjwMV2GG29XfWdgvwisvqu8T/4EB5jCQ M33Ep6eWagqn259H0PuSt5COHdMjRB7c3KeaCsz4a9pbjBbNX7wDpREDaYxtKKByXP8A VtQ8hdcRT+nK7KvFi6eaLB6U96R9h/uhEfI8xBEiGAiNiV06tWSvb3pxYeoERcrPGxD3 staIDNnkQ8UQAMclu1C232IPKPyB1WjSsiHTHzZhLE17eYc+DeIgDEdMBzGKlldJd7pt ViJg== X-Forwarded-Encrypted: i=1; AJvYcCXs7wgi+ljLC2/Dz2eauEsclOYD2WKhuBlnU4ofsZLGtIEgtnMBX56eroVgV9Bhf4+w6ATAUMpcK7rvyeXsmvUhnkj2MQ0dJP40JXmz X-Gm-Message-State: AOJu0Yxgr6HUppQcAdFGlpDM3LqvXwXRaCicKTalRU4pKXt1b5fIYrHa KBME4aENmI4qzEdkzumf9jBn5SOVLOQgZt1swaV+oG43DyDBznrBjauyDTVdlNMa4XCnICwrcJm EN7Z7eBZA4LrQ47tBnDtWhFLeQGSkT7nFamanIQ== X-Received: by 2002:a25:d055:0:b0:dcc:a61b:1a72 with SMTP id h82-20020a25d055000000b00dcca61b1a72mr1784068ybg.47.1709198543817; Thu, 29 Feb 2024 01:22:23 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240228-mbly-gpio-v2-0-3ba757474006@bootlin.com> <20240228-mbly-gpio-v2-5-3ba757474006@bootlin.com> In-Reply-To: <20240228-mbly-gpio-v2-5-3ba757474006@bootlin.com> From: Linus Walleij Date: Thu, 29 Feb 2024 10:22:12 +0100 Message-ID: Subject: Re: [PATCH v2 05/30] gpio: nomadik: fix offset bug in nmk_pmx_set() To: =?UTF-8?B?VGjDqW8gTGVicnVu?= Cc: Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Thomas Bogendoerfer , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, Gregory CLEMENT , Vladimir Kondratiev , Thomas Petazzoni , Tawfik Bayouk Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Feb 28, 2024 at 12:28=E2=80=AFPM Th=C3=A9o Lebrun wrote: > Previously, the statement looked like: > > slpm[x] &=3D ~BIT(g->grp.pins[i]); > > Where: > - slpm is a unsigned int pointer; > - g->grp.pins[i] is a pin number. It can grow to more than 32. > > The expected shift amount is a pin bank offset. > > This bug does not occur on every group or pin: the altsetting must be > NMK_GPIO_ALT_C and the pin must be 32 or above. It might have occured. > For example, in pinctrl-nomadik-db8500.c, pin group i2c3_c_2 has the > right altsetting and pins 229 and 230. > > Fixes: dbfe8ca259e1 ("pinctrl/nomadik: implement pin multiplexing") > Reviewed-by: Linus Walleij > Signed-off-by: Th=C3=A9o Lebrun Patch applied! Since the bug is not affecting the deployed UX500 systems I have merged it with the rest as non-urgent fix, but it can be backported as a standalon= e patch if the stable maintainers want it after the release of v6.9-rc1. Yours, Linus Walleij