Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions drivers/gpu/drm/bridge/ite-it66121.c
Original file line number Diff line number Diff line change
Expand Up @@ -1529,6 +1529,14 @@ static int it66121_audio_codec_init(struct it66121_ctx *ctx, struct device *dev)
return PTR_ERR_OR_ZERO(ctx->audio.pdev);
}

static void it66121_hpd_event(void* arg, enum drm_connector_status status)
{
struct it66121_ctx* ctx = (struct it66121_ctx*)arg;

if (ctx->connector.dev)
drm_kms_helper_hotplug_event(ctx->connector.dev);
}

static const char * const it66121_supplies[] = {
"vcn33", "vcn18", "vrf12"
};
Expand Down Expand Up @@ -1624,6 +1632,7 @@ static int it66121_probe(struct i2c_client *client)
if (client->irq > 0) {
ctx->bridge.ops |= DRM_BRIDGE_OP_HPD;

drm_bridge_hpd_enable(&ctx->bridge, it66121_hpd_event, ctx);
ret = devm_request_threaded_irq(dev, client->irq, NULL,
it66121_irq_threaded_handler,
IRQF_ONESHOT, dev_name(dev),
Expand Down