Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1385339rdb; Mon, 19 Feb 2024 13:57:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWGv2dgi6XG03YFSIYwg7XHgGE6lgdCI52Ot01YhBfw2V2WVEcV+16Aw9giF5dx8H9obq/SAURW4RDl4RDZCNm61HCoMAnkHhtvUtPSyw== X-Google-Smtp-Source: AGHT+IGKVH47QwUGCsc8J0SWVjwmLXN2A2e+VTQyQhYp8HqdOtl4XvbZXlr2IC+FVNVzABCHxVHI X-Received: by 2002:ac2:4ec2:0:b0:512:aa8f:ddc3 with SMTP id p2-20020ac24ec2000000b00512aa8fddc3mr3732772lfr.18.1708379822161; Mon, 19 Feb 2024 13:57:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708379822; cv=pass; d=google.com; s=arc-20160816; b=nQxlfQ2SU+CHkxApzG8GMDJy+6ANWiUprBhADcJe9QlDbAs0u1/5tKdFy22yJANDFV aVjesDWTZGzhuwNSotTREmb7WdxRRFOAc3Ih76HLfQhmKhwgA6cYrHos1hz3yi/bfEtK rwcHse2bvmVx6IMDOzsyurb6/NEukKSSDSOOGVK2eUvqXh2F6FEGUf+oepf4dZKDpitC T3fPd3O88j1QDVqd1PLV2OKaXwcZJjrxhtRgS8r2+IV7TrK7kjI9zWvWvdt2FjcNz+w/ KFFKmx0vSzG9NEPFQAlURqL21+888WoMBUS5av0CokG54HUXkWG8zV4DSz2c6LZ2lmhk baHA== 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=0/z7Oth3uWYAoZv2gVpy6Dr4nj1eg780SKedkbWLNvY=; fh=wiEpkpf3/VdPwyAbIR5GNZFmZLS8ujmRGJoFyoZWQrs=; b=ch2V1RKGIwhg61iqlhF4XSyn2zWO+hPaW8B5zKphQXlyw87UkP/Y+SgGGnoKuXrRlH Lf2IqKsTrXuuUtObmBlnN+FaEGIGARYpieqIWSjWgisktNSkwU6lXzpAX9mxMnEuT42g Au/hWOPmP6LZT6z6brc5eRyFvYSfwFlOfbpk8vT/36rERkixsnUItaUIoZRjaDy7gEHf fKo+e1FEAFkxjWJ+wby2KDfT0yK6gWiFFVg8Z6eGdlQTfiLh5CIZc+Fc1qUvTIF2lc7r SXgRhofYoOKN2hIlUlcRvwwyilwfTd9y0HAXFM4MwZXl1v8gOU8+r5oHoG7ODwrPJpHE F7dQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yaKQvI2I; 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-72036-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72036-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sh11-20020a1709076e8b00b00a3e66b5d661si1759060ejc.109.2024.02.19.13.57.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 13:57:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72036-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=@linaro.org header.s=google header.b=yaKQvI2I; 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-72036-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72036-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 am.mirrors.kernel.org (Postfix) with ESMTPS id DD1301F21D87 for ; Mon, 19 Feb 2024 21:57:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 579FA5476B; Mon, 19 Feb 2024 21:56:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="yaKQvI2I" Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com [209.85.128.174]) (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 D2BA954FA0 for ; Mon, 19 Feb 2024 21:56:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708379806; cv=none; b=toXLjITAlTVFGdAJxtuCFvkPZpZgF6gFWLtLnCCgWLLTgQQxgn+vZ9+2z7bFYqv97jL1oIfdM8CuFAtTqx9EU6r9N6oBNO6WO9RggHgoAZgkg++MJb/a8xOKAZ58kMF5ZFK/tlcSgPlTnyRkzevdGL7b1w7caQpxMhymWSDw00g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708379806; c=relaxed/simple; bh=jnwZE4S2VTxOOE1MLufKwv7MLtdIeQ/H3SGA6T3ceVw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=KF2t+vgN4AiEzXAnuAT/kwQHi7nnAucpmygv+W8H6E1HGeq7L8/IkJLEfj5Xsx7GHVjeHi1c+Hwq8ZF6TQ33nYJr5WGEbCWQ1U26hV2mtiago4DABV/EMpZ4QZozjuLuz56x6ExxzoI+PPiOrzy5XwajJdLkDp4TRUM5sSLBj7A= 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=yaKQvI2I; arc=none smtp.client-ip=209.85.128.174 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-yw1-f174.google.com with SMTP id 00721157ae682-6085ed1e916so2144297b3.2 for ; Mon, 19 Feb 2024 13:56:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708379804; x=1708984604; 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=0/z7Oth3uWYAoZv2gVpy6Dr4nj1eg780SKedkbWLNvY=; b=yaKQvI2IzjqJefvDuWLsiN7ih+t6Ar2DuN96gdel9Da/lXfAe0CyXVGlmNudhJragY SAxpmWT2IVinRNrzaJaze/UJLrcjIRBH8gjrEnF9nZ7xUMQ5Pz3qeezT/EXGY2GVF1kG /RhvKWGnszItfi9V84Pn4iLNaaupRH9Jh0hhSQxQ3BKz2ozGC04VFtpP4wDrXDup3BUC GnQE1aEOmZFViAvgWMKX92tXQuzI7AzuTftCAMqsZGoVRH5X/Fpwz6l1ssAPm2UKJCqw js0vmBGHx2zMjkUn6Y6KwefSnUaOBQNEjChV3pz0PVUurPGG3A7qcpAVjAuxKlwJvzmI 3PdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708379804; x=1708984604; 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=0/z7Oth3uWYAoZv2gVpy6Dr4nj1eg780SKedkbWLNvY=; b=R/p6NYB23nEewGcjwq2GH4UFCxn82euRIc3sqKBYi5AUqPOl6OKLs99oK6i+UacTZG 0/ImOBY5Rk6gXOC4M6WWPck1nPCcsNjioywQBHlzfKvb+6+nGdcsigVqIkSuZ+y4Bawm yPqJGCApQzv5spfg9JoGW2h0TM4rskB8GngiU7EGGyAEz/flQNC/pSg4WCOSMcFfaVyK vDLJ55I5kHxViGgU9jS8X6HYg4ljIQ/s03RaHjY0JKUnZEDqWWJx/C+KrHAcs6ftTdqA OT/X6N29ojLspNek3q8feyzlQ4Ps3djd51npjtel9wkMGRQ8TcBUmVUv/eeD+8FRLUm5 QOeQ== X-Forwarded-Encrypted: i=1; AJvYcCVww+mKV0ZJkzuLLQME1ZHGn4xUmQ1ge79N4jCceb4SGzCMGojDAKW51YfhmfKOLVn2oaWKqTPsy8JRQfbkbeJY6kv3ixKNtjQe4CLE X-Gm-Message-State: AOJu0Yz9gsUnczAtCIFHDgfH4XGRle+VqyVHD2YudR36hgKVQEnQ+yxY 6opqo/SHz8jh93hsC+O4E/tg+uAaXOvnPEUzolitU5enW46E8KP9S/S6P5zXlakooK/xwp+Ec5U /t+HNmn0LcdIO5eBPZ4ZnjxrwahB1QqikIkvgOA== X-Received: by 2002:a81:ae41:0:b0:607:e8c7:f9c9 with SMTP id g1-20020a81ae41000000b00607e8c7f9c9mr12782963ywk.1.1708379803904; Mon, 19 Feb 2024 13:56:43 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240214-mbly-gpio-v1-0-f88c0ccf372b@bootlin.com> <20240214-mbly-gpio-v1-13-f88c0ccf372b@bootlin.com> In-Reply-To: <20240214-mbly-gpio-v1-13-f88c0ccf372b@bootlin.com> From: Linus Walleij Date: Mon, 19 Feb 2024 22:56:32 +0100 Message-ID: Subject: Re: [PATCH 13/23] 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 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? Yours, Linus Walleij