[PATCH 1/2] drm/bridge: tc358762: fix reset gpio handling
Andreas Kemnade
andreas at kemnade.info
Tue Nov 24 03:54:17 PST 2026
Reset gpio is asserted when the chip should be active, deasserted when
the chip is enabled. That is the wrong way. Apparently users are working
around this by using GPIO_ACTIVE_HIGH to compensate for that bug but that
is not correcly describing the hardware. Ignore GPIO polarity for now
to ease transition hoping that nobody has an inverter in the signal path.
Signed-off-by: Andreas Kemnade <andreas at kemnade.info>
---
drivers/gpu/drm/bridge/tc358762.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/bridge/tc358762.c b/drivers/gpu/drm/bridge/tc358762.c
index 76564d5e4f69f..404420c7b517e 100644
--- a/drivers/gpu/drm/bridge/tc358762.c
+++ b/drivers/gpu/drm/bridge/tc358762.c
@@ -164,7 +164,7 @@ static void tc358762_post_disable(struct drm_bridge *bridge,
ctx->pre_enabled = false;
if (ctx->reset_gpio)
- gpiod_set_value_cansleep(ctx->reset_gpio, 0);
+ gpiod_set_raw_value_cansleep(ctx->reset_gpio, 0);
ret = regulator_disable(ctx->regulator);
if (ret < 0)
@@ -182,7 +182,7 @@ static void tc358762_pre_enable(struct drm_bridge *bridge,
dev_err(ctx->dev, "error enabling regulators (%d)\n", ret);
if (ctx->reset_gpio) {
- gpiod_set_value_cansleep(ctx->reset_gpio, 1);
+ gpiod_set_raw_value_cansleep(ctx->reset_gpio, 1);
usleep_range(5000, 10000);
}
--
2.47.3
More information about the linux-arm-kernel
mailing list