From mboxrd@z Thu Jan 1 00:00:00 1970 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 AA96F3033DA for ; Mon, 11 May 2026 19:01:12 +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=1778526072; cv=none; b=OYYkzHEdix+AZDeR6dTlfEZG8VDveeWe4gWgP3D53aax9FvMwZX/mwDlHgGY52EagGftVU38m1TLClOgH9kiOC3jXB5He4z12XvZll85XMj+ytnBYJf8jLoi3VKoNGbnjMqZ+zEjMhkcWWWPujrDBHkqNMpVsruk6aX2oA1TwuM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778526072; c=relaxed/simple; bh=zCfbq/FNPtgJXMkOhHVEDcnrAvMjATc+rq5JpuuJYdY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=sr37d5jsf6tPlcUT/3mr3C99fczHv//sKS9/8iW8Xedm/brjF4Uv07juyTIevwmg2o9J2+nTkc2DYw0vHciujh7ymFJBI4O8hlo0WiiMxwslfqZukgUvajgKyPQB75MEcjxq4U/OMu3RgryN5b1P+Woecj4a5IcMlV6iRR5eaC4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=t0kzrspg; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="t0kzrspg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71FD5C2BCB0 for ; Mon, 11 May 2026 19:01:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778526072; bh=zCfbq/FNPtgJXMkOhHVEDcnrAvMjATc+rq5JpuuJYdY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=t0kzrspgOmZrYp7N4DHhPTE/oEu3/C9gPMyJEeLSeUdL1vzsCHwPM9/xLzw1tkbJb NzXn6nhpm6oCZMHIc2oDvEYHKI4xZtt1wpximTb+0glmqdF/HMdnr2IMaA8Tts7ezF IXB7+Y5abqwEPOZtkQkl/FdxwI/DzBW8bdb4E8vv/SQ4i4/jQ2Wk/O7qr0xV6t0nLk Su2MZyw0SFIcyRg+Nu//d2YbJQnwrhO3WOBi3T4e4KKIa6FM6p8v/ISsOP2fs8Zp+G WqcdWi5D/2a4mvTstj/LhX1Q0ccAbbRy9E8CONuyVs/6Pi6oT4KV/dZAGAwzhgUhb9 foyrRQph22i1A== Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-5a8d1f43432so1768169e87.3 for ; Mon, 11 May 2026 12:01:12 -0700 (PDT) X-Forwarded-Encrypted: i=1; AFNElJ/lGWWft5wag63IysMC7d0T2GidwCEPT6wN6wtAwcZ1yis5SL+y09KOogZhc4RUQh5tOJIFkdCse59GG5c=@vger.kernel.org X-Gm-Message-State: AOJu0YwyCT4FHD09hJY9QTsnxyjxvRrKm5KXyTtiEDtzSI0xz+xHGUZx 0MiR+u/uD7yIkfBBO59c1HtajGYUADw8hTQPiEAGFvu0TtjaTw2OTem2+BW/jZaNDuUGv4Cad3z TgLda0J8x2VAZvmAA1feq8yhsdsTxHyc= X-Received: by 2002:a05:6512:2247:b0:5a8:8df8:1dca with SMTP id 2adb3069b0e04-5a88df8291emr7763647e87.29.1778526071202; Mon, 11 May 2026 12:01:11 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20260508-regmap-gpio-sparse-fixed-dir-v2-0-deee84df3027@kernel.org> <20260508-regmap-gpio-sparse-fixed-dir-v2-1-deee84df3027@kernel.org> In-Reply-To: From: Linus Walleij Date: Mon, 11 May 2026 21:00:59 +0200 X-Gmail-Original-Message-ID: X-Gm-Features: AVHnY4KiXzGizRve0kZB6O4jn7NJihgOI6X7oiLfhbMewn0iqt07iSnOIvAnkTk Message-ID: Subject: Re: [PATCH v2 1/2] gpio: regmap: Support sparsed fixed direction To: Michael Walle Cc: Bartosz Golaszewski , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Alex Elder Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, May 11, 2026 at 9:18=E2=80=AFAM Michael Walle w= rote: > On Fri May 8, 2026 at 2:51 PM CEST, Linus Walleij wrote: > > On some regmapped GPIOs apparently only a sparser selection > > of the lines (not all) are actually fixed direction. > > > > Support this situation by adding an optional bitmap indicating > > which GPIOs are actually fixed direction and which are not. > > Thanks, this patch looks good. But could we invert the logic and use > fixed_direction_mask as that feels more natural to me? Sure! > And for legacy reasons, so we don't have to change the drivers: I don't think any drivers would need changing, the idea was that if the new *sparse bitmap is NULL (as in the old drivers) all lines are assumed to be fixed direction. But I think your idea is maybe more intuitive so let's try that. Yours, Linus Walleij