Skip to content

Commit

Permalink
ayufan: dw-hdmi-rockchip: generate hdmi connect/disconnect events
Browse files Browse the repository at this point in the history
  • Loading branch information
ayufan committed Jun 18, 2019
1 parent 271f6db commit 34ae076
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/rockchip/cpu.h>
#include <linux/hdmi-notifier.h>
#include <linux/regmap.h>
#include <linux/pm_runtime.h>
#include <linux/phy/phy.h>
Expand Down Expand Up @@ -552,6 +553,7 @@ static void dw_hdmi_rockchip_encoder_disable(struct drm_encoder *encoder)
if (hdmi->phy)
phy_set_bus_width(hdmi->phy, 8);
clk_disable_unprepare(hdmi->dclk);
hdmi_event_disconnect(hdmi->dev);
}

static void dw_hdmi_rockchip_encoder_enable(struct drm_encoder *encoder)
Expand Down Expand Up @@ -623,6 +625,7 @@ static void dw_hdmi_rockchip_encoder_enable(struct drm_encoder *encoder)
}

clk_disable_unprepare(hdmi->grf_clk);
hdmi_event_connect(hdmi->dev);
}

static void
Expand Down

0 comments on commit 34ae076

Please sign in to comment.