Re: [PATCH v7 5/9] gpio: regmap: Add gpio_regmap_operation to extend reg_mask_xlate callback

"Michael Walle" <[email protected]>
Newsgroups org.kernel.vger.linux-gpio,org.kernel.vger.linux-iio,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
Hi,

On Thu Jul 23, 2026 at 1:14 PM CEST, Yu-Chun Lin [林祐君] wrote:
> Regarding the hardware, this controller indeed has dedicated and separate
> bits for IN, OUT, and DIR. If configured as an output, reading the IN bit
> does not reflect the actual state, so we must check the DIR bit first to
> know which bit to read.

Just out of curiosity, the out bit is also the control bit which
will set the gpio line state, correct? IOW, you are reading just the
bit you've set before and there is no way to read the real line
state.

-michael
signature.asc (application/pgp-signature, 297 B)
-----BEGIN PGP SIGNATURE-----

iKgEABMJADAWIQTIVZIcOo5wfU/AngkSJzzuPgIf+AUCamH49BIcbXdhbGxlQGtl
cm5lbC5vcmcACgkQEic87j4CH/j68QF/Z3Su72c123++84tw1JkukDf2Fk4LioZb
MvcqDzSP6SHa/GeVRbYvNKIe0r/MK8GTAX9XTUkNSkG31GONUt0mjfrfnlTQ11Hm
iAYh/q3t4ouzp9ZzjExoHcULjaNyUEsgpyw=
=W5VJ
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.