Skip to content

Commit 0b87d51

Browse files
fschnyderdianders
authored andcommitted
drm/bridge: ti-sn65dsi86: Enable HPD polling if IRQ is not used
Fallback to polling to detect hotplug events on systems without interrupts. On systems where the interrupt line of the bridge is not connected, the bridge cannot notify hotplug events. Only add the DRM_BRIDGE_OP_HPD flag if an interrupt has been registered otherwise remain in polling mode. Fixes: 55e8ff8 ("drm/bridge: ti-sn65dsi86: Add HPD for DisplayPort connector type") Cc: stable@vger.kernel.org # 6.16: 9133bc3: drm/bridge: ti-sn65dsi86: Add Signed-off-by: Franz Schnyder <franz.schnyder@toradex.com> Reviewed-by: Douglas Anderson <dianders@chromium.org> [dianders: Adjusted Fixes/stable line based on discussion] Signed-off-by: Douglas Anderson <dianders@chromium.org> Link: https://patch.msgid.link/20260206123758.374555-1-fra.schnyder@gmail.com
1 parent fef0e64 commit 0b87d51

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

drivers/gpu/drm/bridge/ti-sn65dsi86.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,6 +1415,7 @@ static int ti_sn_bridge_probe(struct auxiliary_device *adev,
14151415
{
14161416
struct ti_sn65dsi86 *pdata = dev_get_drvdata(adev->dev.parent);
14171417
struct device_node *np = pdata->dev->of_node;
1418+
const struct i2c_client *client = to_i2c_client(pdata->dev);
14181419
int ret;
14191420

14201421
pdata->next_bridge = devm_drm_of_get_bridge(&adev->dev, np, 1, 0);
@@ -1433,8 +1434,9 @@ static int ti_sn_bridge_probe(struct auxiliary_device *adev,
14331434
? DRM_MODE_CONNECTOR_DisplayPort : DRM_MODE_CONNECTOR_eDP;
14341435

14351436
if (pdata->bridge.type == DRM_MODE_CONNECTOR_DisplayPort) {
1436-
pdata->bridge.ops = DRM_BRIDGE_OP_EDID | DRM_BRIDGE_OP_DETECT |
1437-
DRM_BRIDGE_OP_HPD;
1437+
pdata->bridge.ops = DRM_BRIDGE_OP_EDID | DRM_BRIDGE_OP_DETECT;
1438+
if (client->irq)
1439+
pdata->bridge.ops |= DRM_BRIDGE_OP_HPD;
14381440
/*
14391441
* If comms were already enabled they would have been enabled
14401442
* with the wrong value of HPD_DISABLE. Update it now. Comms

0 commit comments

Comments
 (0)