Skip to content

Commit

Permalink
drm/bridge_connector: stop filtering events in drm_bridge_connector_h…
Browse files Browse the repository at this point in the history
…pd_cb()

In some cases the bridge drivers would like to receive hotplug events
even in the case new status is equal to the old status. In the DP case
this is used to deliver "attention" messages to the DP host. Stop
filtering the events in the drm_bridge_connector_hpd_cb() and let
drivers decide whether they would like to receive the event or not.

Reviewed-by: Janne Grunau <j@jannau.net>
Link: https://lore.kernel.org/r/20231009174048.2695981-3-dmitry.baryshkov@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20231009174048.2695981-3-dmitry.baryshkov@linaro.org
  • Loading branch information
Dmitry Baryshkov committed Oct 11, 2023
1 parent fc93835 commit 6ec2cf8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/gpu/drm/drm_bridge_connector.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,11 @@ static void drm_bridge_connector_hpd_cb(void *cb_data,
struct drm_bridge_connector *drm_bridge_connector = cb_data;
struct drm_connector *connector = &drm_bridge_connector->base;
struct drm_device *dev = connector->dev;
enum drm_connector_status old_status;

mutex_lock(&dev->mode_config.mutex);
old_status = connector->status;
connector->status = status;
mutex_unlock(&dev->mode_config.mutex);

if (old_status == status)
return;

drm_bridge_connector_hpd_notify(connector, status);

drm_kms_helper_connector_hotplug_event(connector);
Expand Down

0 comments on commit 6ec2cf8

Please sign in to comment.