Skip to content

gpio: tps65219: Fix TPS6521x GPIO handling

Karl Mehltretter linux-gpio linux-omap lkml 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3gpio: tps65219: Fix GPIO input value readsdrivers/gpio/gpio-tps65219.c+1 -11 reply
2/3gpio: tps65219: Use the variant-specific direction callbackdrivers/gpio/gpio-tps65219.c+3 -30 replies
3/3gpio: tps65219: Fix TPS65214 GPIO direction programmingdrivers/gpio/gpio-tps65219.c+3 -12 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchJonathan Cormier
1/3R-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] gpio: tps65219: Fix TPS6521x GPIO handling

I found patch 1 while looking through the tree for code that mixes up bit numbers and bit masks. Patches 2 and 3 turned up while checking the nearby TPS65214 code.

Patch 1 fixes TPS65219 input reads. Patches 2 and 3 fix TPS65214 direction handling.

I tested the series under x86_64 QEMU 10.2.1 with a temporary KUnit suite and a RAM-backed regmap. Both tests failed on the base commit. The TPS65219 input-high test returned low, and the TPS65214 direction-output test left GPIO_CONFIG clear. Both tests pass with this series. A W=1 build of drivers/gpio/gpio-tps65219.o also passes.

The KUnit suite is not included. It tests the driver logic, not real PMIC hardware. I have not tested this on real hardware. Testing on affected hardware is welcome.

Karl Mehltretter (3):
gpio: tps65219: Fix GPIO input value reads
gpio: tps65219: Use the variant-specific direction callback
gpio: tps65219: Fix TPS65214 GPIO direction programming

 drivers/gpio/gpio-tps65219.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

base-commit: 40288c9206c17eb66a603262e06a58d300d0f279

Signature · 1 line
2.53.0