Skip to content

Commit ca8a78c

Browse files
Ayushi Makhijalumag
authored andcommitted
drm/bridge: anx7625: enable HPD interrupts
When the device enters the suspend state, it prevents HPD interrupts from occurring. To address this, implement .hpd_enable() and .hpd_disable() callbacks functions of the drm_bridge. Signed-off-by: Ayushi Makhija <quic_amakhija@quicinc.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Link: https://lore.kernel.org/r/20250505094245.2660750-4-quic_amakhija@quicinc.com Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
1 parent 7220a31 commit ca8a78c

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

drivers/gpu/drm/bridge/analogix/anx7625.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2475,6 +2475,22 @@ static const struct drm_edid *anx7625_bridge_edid_read(struct drm_bridge *bridge
24752475
return anx7625_edid_read(ctx);
24762476
}
24772477

2478+
static void anx7625_bridge_hpd_enable(struct drm_bridge *bridge)
2479+
{
2480+
struct anx7625_data *ctx = bridge_to_anx7625(bridge);
2481+
struct device *dev = ctx->dev;
2482+
2483+
pm_runtime_get_sync(dev);
2484+
}
2485+
2486+
static void anx7625_bridge_hpd_disable(struct drm_bridge *bridge)
2487+
{
2488+
struct anx7625_data *ctx = bridge_to_anx7625(bridge);
2489+
struct device *dev = ctx->dev;
2490+
2491+
pm_runtime_put_sync(dev);
2492+
}
2493+
24782494
static const struct drm_bridge_funcs anx7625_bridge_funcs = {
24792495
.attach = anx7625_bridge_attach,
24802496
.detach = anx7625_bridge_detach,
@@ -2488,6 +2504,8 @@ static const struct drm_bridge_funcs anx7625_bridge_funcs = {
24882504
.atomic_reset = drm_atomic_helper_bridge_reset,
24892505
.detect = anx7625_bridge_detect,
24902506
.edid_read = anx7625_bridge_edid_read,
2507+
.hpd_enable = anx7625_bridge_hpd_enable,
2508+
.hpd_disable = anx7625_bridge_hpd_disable,
24912509
};
24922510

24932511
static int anx7625_register_i2c_dummy_clients(struct anx7625_data *ctx,

0 commit comments

Comments
 (0)