summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAradhya Bhatia <a-bhatia1@ti.com>2024-03-01 19:43:06 +0530
committerPraneeth Bajjuri <praneeth@ti.com>2024-03-04 10:57:55 -0600
commite7783666046f44196c5a09aa8fe7e005d8d39047 (patch)
tree30f26b549a87684baf357d997d698d22fddb85aa
parent269b307f6110519ed237ded46bb76d56ab80f130 (diff)
HACK: drm/bridge: tc358762: Implement early_enable and late_disable
Implement early_enable and late_disable to tc358762. Ideally, this patch shouldn't be required, but implementing the early_enable and late_disable for the cdns-dsi, enables it's sequence right before dss is enabled (via crtc hooks). This causes the colors to appear shifted on the very first mode set. Modesetting again makes the issue disappear. This behavior hasn't been root-caused yet. Till that time, have tc358762 function over the early_enable and late_disable APIs. Signed-off-by: Aradhya Bhatia <a-bhatia1@ti.com>
-rw-r--r--drivers/gpu/drm/bridge/tc358762.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/bridge/tc358762.c b/drivers/gpu/drm/bridge/tc358762.c
index 8f4e9570f272..984d7b44651d 100644
--- a/drivers/gpu/drm/bridge/tc358762.c
+++ b/drivers/gpu/drm/bridge/tc358762.c
@@ -124,7 +124,7 @@ static int tc358762_init(struct tc358762 *ctx)
return tc358762_clear_error(ctx);
}
-static void tc358762_post_disable(struct drm_bridge *bridge)
+static void tc358762_late_disable(struct drm_bridge *bridge)
{
struct tc358762 *ctx = bridge_to_tc358762(bridge);
int ret;
@@ -143,7 +143,7 @@ static void tc358762_post_disable(struct drm_bridge *bridge)
dev_err(ctx->dev, "error disabling regulators (%d)\n", ret);
}
-static void tc358762_pre_enable(struct drm_bridge *bridge)
+static void tc358762_early_enable(struct drm_bridge *bridge)
{
struct tc358762 *ctx = bridge_to_tc358762(bridge);
int ret;
@@ -169,8 +169,8 @@ static int tc358762_attach(struct drm_bridge *bridge,
}
static const struct drm_bridge_funcs tc358762_bridge_funcs = {
- .post_disable = tc358762_post_disable,
- .pre_enable = tc358762_pre_enable,
+ .late_disable = tc358762_late_disable,
+ .early_enable = tc358762_early_enable,
.attach = tc358762_attach,
};