drm/bridge: adv7511: Enable connector polling when no interrupt is specified

Fall back to polling the connector for connect and disconnect events when
no interrupt is specified. Otherwise these events will not be noticed and
monitor hotplug does not work.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Tested-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20170905121018.11477-3-lars@metafoo.de
This commit is contained in:
Lars-Peter Clausen 2017-09-05 14:10:17 +02:00 committed by Archit Taneja
parent fcb4c5eee7
commit 2f47f1c106
1 changed files with 5 additions and 1 deletions

View File

@ -829,7 +829,11 @@ static int adv7511_bridge_attach(struct drm_bridge *bridge)
return -ENODEV; return -ENODEV;
} }
adv->connector.polled = DRM_CONNECTOR_POLL_HPD; if (adv->i2c_main->irq)
adv->connector.polled = DRM_CONNECTOR_POLL_HPD;
else
adv->connector.polled = DRM_CONNECTOR_POLL_CONNECT |
DRM_CONNECTOR_POLL_DISCONNECT;
ret = drm_connector_init(bridge->dev, &adv->connector, ret = drm_connector_init(bridge->dev, &adv->connector,
&adv7511_connector_funcs, &adv7511_connector_funcs,