Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2453343rdb; Wed, 21 Feb 2024 08:06:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW/QRQsy1Oi0lBg7HKEio4+H3tsjeE6zAuliH+fSTz9OE6zMwFslsRr1YanoxOVuVDFA0Pv3JQTZ+pip90TvUNOneQK/EZwsVlmteU5zg== X-Google-Smtp-Source: AGHT+IH3zkrztzrBJtzMk/vRPU8YExj1ZiN+YvUF9NCT01ajd1fxSV9AHqNaXM2zngyCL8oBxjQY X-Received: by 2002:a05:6402:31fb:b0:564:acde:d135 with SMTP id dy27-20020a05640231fb00b00564acded135mr4520602edb.29.1708531614213; Wed, 21 Feb 2024 08:06:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708531614; cv=pass; d=google.com; s=arc-20160816; b=WUoyDTXKO+LUyRykkXsPCOzC5s8P/My/1MNHqkQcZkcs+n8BMnUUbym5NMOCvVhtUc NWHEsjuXHJK2esJYUQxTuzEUjzHv7L5GEzIw20XmcDUTmRL/hp5p/qOX3B/c6MbfZAi9 1BXRa174gAFboLWxPuhIM2fgEJFgnxfvVSK292MvY40PQgeJQNX/SlLazsg9X9LpckKO h74vContTrLSN7IMyR8s5CF0+EQ6fQsyC607ZXeuOSl2eNb1DneMR3jlqwGGFIpD3NkN tYGeHaI7IvBGebdDqsULpfHhVt2frrpsSc2E9XFay2ADq4d3tQJHasuEYx29+WKensrl KtNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:cc:subject:from:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=KMfvDi1Z7NgcdHnP3iiFwTVbi7e7yWaAr0kgZz77890=; fh=e+tSaZobpTn+mfrkgE1cPTa5xwbrqI9WeCP7kp+V0po=; b=QVTtpgQFD4t/7V8OYclxvPT99muFahdP/izSgaQd6o1EIAt4iO8pH1hHMmo5AMQ24s 43tsBq4u1rksf4+9fZWvvFQ0kXS0KDoLLaBwwQgbcV/BDd4yy/feQFX1tA4LOC+Ve1d4 BENE1ukE9XP7jQqd/D7LqR7Q3MUMXP7GYs3S9B4Oly4ZNyZLgApBGjauVBBYqGBi2/sN Vze9sUPeStriLBIWVpnm37qygu/cVM3GRGVrE8NgbdR5gGEWxQX8MCJ4hqWZPjoFO/j0 n9bsBs55GrPznyrjcuvHI+45+0v4C4iF/iAWH2e5oCPRYxIgq/kjPoe4Mi+5avwRrrdR yAWQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=jB2y2QNw; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-75075-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75075-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id dd8-20020a056402312800b00564d24c312asi1510664edb.558.2024.02.21.08.06.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 08:06:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75075-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=jB2y2QNw; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-75075-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75075-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 B702D1F25B83 for ; Wed, 21 Feb 2024 16:06:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E284669D05; Wed, 21 Feb 2024 16:05:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="jB2y2QNw" Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) (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 61E5E81742; Wed, 21 Feb 2024 16:05:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708531521; cv=none; b=E3IZV/llhIAWrPUm7EfcOBK1yxzQJfarfSR1wm9usgOkiL0WsauLbN7pjST/6i65dXe4BF5zl4/900YZWhsIEc2b1+LWhrW+TZcsRXrQsCqdzHi6ZqcPMB+elPZ3xySbw9Vt5c2DsH47zmSQAErYXmjlPH2FkLZOIycBMwpE3Uo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708531521; c=relaxed/simple; bh=4osHeqTpGZbNF+WwFOeN/1hOUN/aK+g+cz/1SRJB+9E=; h=Mime-Version:Content-Type:Date:Message-Id:From:Subject:Cc:To: References:In-Reply-To; b=NdmFB497uoovKSCJN8K+jeSGbkBmpRtHwOjhz/+fcE5d34v32RZCL0O1wLfOjGIFrSDqNjEVLWZ4bJDs8xM2gOKeX1nVl7Kv4u9LG98PJqBV2Fr1yjMUBQ49gHTKDYmFRDBC/DmL6Yvmt7/K+FhpsO5mOYakmugOT9SEYp2izlg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=jB2y2QNw; arc=none smtp.client-ip=217.70.183.198 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id DAA2EC0013; Wed, 21 Feb 2024 16:05:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708531516; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KMfvDi1Z7NgcdHnP3iiFwTVbi7e7yWaAr0kgZz77890=; b=jB2y2QNwjiyNS83wMYPNJMm+XgYPGyoUtT68qdAcfISdumDjJnAr5ntNT7dGwok2HL4NFj 12GzGwCkAwWNFq+EbRQvj5zbXIGTQq7s2RzdCCfyaAOuibep9mEJpmFn5v5vlNzpf3Z8rX eWIh/K0nbUoWeTtZEm78NCgOVVzVPizrG2HQfW6I6HkiEpRLVrhScpd4/Ekg24F9nMTrGF vbsV+08topQMABL2LlP90n4ytitLV4/ihLVQx2w7plXfvhUON02JXjxPmNpf+tZb+TYUPk ZBs/cLF51a/rLam1ul/DfP0K+LmrRBXD7lUdgN8+UchNJJmbyAadX9gR4LDYbA== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 21 Feb 2024 17:05:15 +0100 Message-Id: From: =?utf-8?q?Th=C3=A9o_Lebrun?= Subject: Re: [PATCH 13/23] gpio: nomadik: fix offset bug in nmk_pmx_set() Cc: "Bartosz Golaszewski" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Philipp Zabel" , "Thomas Bogendoerfer" , , , , , , "Gregory CLEMENT" , "Vladimir Kondratiev" , "Thomas Petazzoni" , "Tawfik Bayouk" To: "Linus Walleij" X-Mailer: aerc 0.15.2 References: <20240214-mbly-gpio-v1-0-f88c0ccf372b@bootlin.com> <20240214-mbly-gpio-v1-13-f88c0ccf372b@bootlin.com> In-Reply-To: X-GND-Sasl: theo.lebrun@bootlin.com Hello, On Mon Feb 19, 2024 at 10:56 PM CET, Linus Walleij wrote: > On Wed, Feb 14, 2024 at 5:24=E2=80=AFPM Th=C3=A9o Lebrun wrote: > > > Previously, the statement looked like: > > > > slpm[x] &=3D ~BIT(g->pins[i]); > > > > Where: > > - slpm is a unsigned int pointer; > > - g->pins[i] is a pin number which 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 is possible that it > > occurred. For example, in pinctrl-nomadik-db8500.c, pin group i2c3_c_2 > > has the right altsetting and has pins 229 and 230. > > > > Signed-off-by: Th=C3=A9o Lebrun > > Ah good catch! > Reviewed-by: Linus Walleij > > I this something I could just apply as a fix or are there > dependencies on other patches? There are dependencies. As Bartosz and you asked, I'll try my best to avoid them and move this patch up in the series, with an appropriate Fixes: trailer (to the initial driver commit I believe). Thanks, -- Th=C3=A9o Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com