linux/drivers/gpu/drm/sun4i
Chen-Yu Tsai cb1dab0e01 drm/sun4i: hdmi: Disable clks in bind function error path and unbind function
The HDMI driver enables the bus and mod clocks in the bind function, but
does not disable them if it then bails our due to any errors. Neither
does it disable the clocks in the unbind function.

Fix this by adding a proper error path to the bind function, and
clk_disable_unprepare calls to the unbind function.

Also rename the err_cleanup_connector label to err_cleanup_encoder,
since it is the encoder that gets cleaned up.

Fixes: 9c5681011a ("drm/sun4i: Add HDMI support")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170929082306.16193-6-wens@csie.org
2017-10-02 21:58:47 +02:00
..
Kconfig drm/sun4i: cec: Enable back CEC-pin framework 2017-09-22 08:42:17 +02:00
Makefile drm/sun4i: hdmi: Implement I2C adapter for A10s DDC bus 2017-07-17 08:21:39 +02:00
sun4i_backend.c drm/sun4i: use of_graph_get_remote_endpoint() 2017-08-23 16:28:39 +02:00
sun4i_backend.h drm/sun4i: abstract a engine type 2017-06-01 09:47:23 +02:00
sun4i_crtc.c drm: Convert atomic drivers from CRTC .disable() to .atomic_disable() 2017-06-30 14:53:15 +02:00
sun4i_crtc.h drm/sun4i: abstract a engine type 2017-06-01 09:47:23 +02:00
sun4i_dotclock.c drm/sun4i: dotclock: Round to closest clock rate 2016-09-20 09:19:31 +02:00
sun4i_dotclock.h
sun4i_drv.c main drm pull request for 4.14 merge window 2017-09-03 17:02:26 -07:00
sun4i_drv.h drm/sun4i: abstract a engine type 2017-06-01 09:47:23 +02:00
sun4i_framebuffer.c drm/sun4i: Move drm_mode_config_cleanup call to main driver 2017-03-07 22:15:14 +01:00
sun4i_framebuffer.h
sun4i_hdmi_ddc_clk.c drm/sun4i: Add HDMI support 2017-06-01 09:50:01 +02:00
sun4i_hdmi_enc.c drm/sun4i: hdmi: Disable clks in bind function error path and unbind function 2017-10-02 21:58:47 +02:00
sun4i_hdmi_i2c.c drm/sun4i: hdmi: Implement I2C adapter for A10s DDC bus 2017-07-17 08:21:39 +02:00
sun4i_hdmi_tmds_clk.c drm/sun4i: Add HDMI support 2017-06-01 09:50:01 +02:00
sun4i_hdmi.h drm/sun4i: cec: Enable back CEC-pin framework 2017-09-22 08:42:17 +02:00
sun4i_layer.c Allwinner DRM changes for 4.14 2017-08-21 09:05:01 +10:00
sun4i_layer.h drm/sun4i: abstract a engine type 2017-06-01 09:47:23 +02:00
sun4i_rgb.c Allwinner DRM changes for 4.14 2017-08-21 09:05:01 +10:00
sun4i_rgb.h drm/sun4i: rgb: Pass tcon pointer when initializing RGB encoder 2017-03-07 22:18:24 +01:00
sun4i_tcon.c drm/sun4i: tcon: multiply the vtotal when not in interlace 2017-06-01 09:49:59 +02:00
sun4i_tcon.h drm/sun4i: tcon: remove unused function 2017-07-18 16:52:42 +02:00
sun4i_tv.c Allwinner DRM changes for 4.14 2017-08-21 09:05:01 +10:00
sun6i_drc.c Merge tag 'drm-misc-next-2016-11-16' of git://anongit.freedesktop.org/git/drm-misc into drm-next 2016-11-17 08:02:46 +10:00
sun8i_layer.c drm: Plumb modifiers through plane init 2017-08-01 17:50:06 +01:00
sun8i_layer.h drm/sun4i: add support for Allwinner DE2 mixers 2017-06-01 09:49:54 +02:00
sun8i_mixer.c drm/sun4i: add support for Allwinner DE2 mixers 2017-06-01 09:49:54 +02:00
sun8i_mixer.h drm/sun4i: add support for Allwinner DE2 mixers 2017-06-01 09:49:54 +02:00
sunxi_engine.h drm/sun4i: abstract a engine type 2017-06-01 09:47:23 +02:00