Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2446905rdb; Wed, 21 Feb 2024 07:59:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV4O2bn4VzgLBgiZbDmOne04aH9fyMIa0pjwve9PXnwTwtazalRMBXyyS3vT4+mUIOE2nY+xqgkH8WIWKb7LyRpyyZp71aX9EESZ8YATA== X-Google-Smtp-Source: AGHT+IGY4SCempFJ/fRSeSpv1J+FcAEyRcyPv2+WfZSlFhws2+OjVyUcgOkaF809ajGR6Z85Qff3 X-Received: by 2002:a05:620a:40c2:b0:787:746e:5ba8 with SMTP id g2-20020a05620a40c200b00787746e5ba8mr7807157qko.13.1708531171966; Wed, 21 Feb 2024 07:59:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708531171; cv=pass; d=google.com; s=arc-20160816; b=yQbkJ9jd/tYPJs8sfgwdxRohkcipS4U1k4bAL4pRbmDsfeoAF1GT/Cmwr4HSFwdThO 9qQN79Tp9P2TQFuONU7gUS5lccFjJpy5v518tF3Ng6ubAJsoX/7vRMJjzYGeDj0kPBSj dcgIcWT2iN6+9NaKVpN8Y+52LTO1hYSX9Fx8u+9AkzL//+btPA+x+sc2MpltB7aQULzv HhIGzPMIiZu+att+KiGGtmqEDxlp/1bjlhBthW7PyDyplrrvIkctcpvallhCKxAGxC7g OEeUXMTyiPd9NvvabSoMhMlx17uYJBp/y/RUsX0Ve+IuDQLk0KzYgJ3nl/VMaJtrm2eB 6wHg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:cc:subject:from:to:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=+ZfXtDRePUcMFundzZXNFuj+fqBl14FactsX+t+og0A=; fh=kqzxAgXGChh5Bh0N+aUYKyVuDwSilgRzVTERx9YS2C4=; b=ux3j64m6DzL5HkQxDUnZmPe748Ai2EJI0maDaiHzWjapELI2D51n7djECMudqW5gPs /8xwVbA1FQyhixyhMd+JgiNW51aOun/tcjNdTYgpg/ieFZ9SvBaJf19DG2GtoY9BGxhh oCQUaFYEM8Eq0xS0HWXAn6wrgdSCZ13bJtJQHjOpg42FeZEr2HtUNEifbvmD+feXTgEC 2ky+mSFBt0/wGq4FoDqUKSe3FG78xNni7/71F8juxypjuRPE9DJWY84ws4v3QSv+gtX+ BDpDISzz/Hs4UI1DYMoDBT/LHY2cM3rtGwVB1FdH3zvTl0Y05MWPUto+JYIsq9+9MbyD UHXw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=gGYFQU56; 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-75053-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75053-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w24-20020ae9e518000000b007876b2cc8a6si6463827qkf.629.2024.02.21.07.59.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 07:59:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75053-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=gGYFQU56; 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-75053-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75053-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B619D1C23E5D for ; Wed, 21 Feb 2024 15:59:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 701DA81ACE; Wed, 21 Feb 2024 15:57:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="gGYFQU56" 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 B1C1D80C19; Wed, 21 Feb 2024 15:57:09 +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=1708531032; cv=none; b=Gi7uuJ8B0+oPKmwyr0Zk1BEZ0CPXSuia2e68i9J59y1oKvxTw92MwujDVtpzGTNTCFUYqqsZ2GjxmEeovTKDeTkuG1b/Y3n1QxtU9h1y4ApQ2tFTaAwCkB/FDCau0twfVvoTZ6KY/9sZIBambxBbLi8DzmhRHHcJ/nFX5VLtj24= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708531032; c=relaxed/simple; bh=oFTqTVOhHyDJ5iYE8i8hwXVq+ixGFDMjQjac4S4aVmQ=; h=Mime-Version:Content-Type:Date:Message-Id:To:From:Subject:Cc: References:In-Reply-To; b=t0swwV0q1qSEiXdZf7fH73uUZqlNZK91hi5y551hYEyuPLLMjQQGUkZUilABcXLCGJTDt0GoGSwpRM6HdOJBI//czC/A0XgDgJSFRQOeE4OP1CSQamg4qgVDifoYsYS+dH3glkf4b4lQXC84e0aYfFAFI3StEWUTOD0jNz/3cJk= 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=gGYFQU56; 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 E2B85C000D; Wed, 21 Feb 2024 15:57:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708531027; 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=+ZfXtDRePUcMFundzZXNFuj+fqBl14FactsX+t+og0A=; b=gGYFQU56WVJfwGdXAyVvjtXT0qNdEkBQSjeig/nT1NCNXHpjmwTTlMZm/91p2oVbqfvlCy Ksl62koMCFbE9sOvKBQCLHCLBT7RSAM1S83SYeHq8nGNqGRs7RpfbgmJ+S5wE7yBFulkRS ZhTBCPDR+JvIl/fB2WEG0xQzNv1ckP4phguN5HcYYFG3WE3ZI+tZZBcy6CvhXZj0aENgwp JnNn09CQlZgOxgPavln5KGAFVvADqKYcmDDQUG+Ijstk4bZVJiwOViE4s++YVGAlNI5lQN tHZmhzqdAZqrn00ULmx/netaZlbaFvaLLFLJfdoysx7j9Kmd/LryfAKFy+ME+g== 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 16:57:04 +0100 Message-Id: To: "Bartosz Golaszewski" From: =?utf-8?q?Th=C3=A9o_Lebrun?= Subject: Re: [PATCH 13/23] gpio: nomadik: fix offset bug in nmk_pmx_set() Cc: "Linus Walleij" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Philipp Zabel" , "Thomas Bogendoerfer" , , , , , , "Gregory CLEMENT" , "Vladimir Kondratiev" , "Thomas Petazzoni" , "Tawfik Bayouk" 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 4:54 PM CET, Bartosz Golaszewski 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 > > Maybe add a Fixes: tag and put it at the beginning of the series so > that it can go upstream earlier as a fix? I'll see how it works out because the fix depends on helpers added in this series. I'll be reworking that. Regards, -- Th=C3=A9o Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com