OrangePi_CM5/drivers/gpu/drm/vc4
Miaoqian Lin 0a2cef65b3 drm/vc4: Use pm_runtime_resume_and_get to fix pm_runtime_get_sync() usage
[ Upstream commit 3d0b93d92a2790337aa9d18cb332d02356a24126 ]

If the device is already in a runtime PM enabled state
pm_runtime_get_sync() will return 1.

Also, we need to call pm_runtime_put_noidle() when pm_runtime_get_sync()
fails, so use pm_runtime_resume_and_get() instead. this function
will handle this.

Fixes: 4078f57571 ("drm/vc4: Add DSI driver")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20220420135008.2757-1-linmq006@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-27 13:53:56 +02:00
..
Kconfig
…
Makefile
…
vc4_bo.c drm/vc4: fix error code in vc4_create_object() 2021-12-01 09:19:04 +01:00
vc4_crtc.c drm/vc4: crtc: Skip the TXP 2021-07-19 09:44:57 +02:00
vc4_debugfs.c
…
vc4_dpi.c
…
vc4_drv.c
…
vc4_drv.h
…
vc4_dsi.c drm/vc4: Use pm_runtime_resume_and_get to fix pm_runtime_get_sync() usage 2022-04-27 13:53:56 +02:00
vc4_fence.c
…
vc4_gem.c
…
vc4_hdmi.c drm/vc4: hdmi: Allow DBLCLK modes even if horz timing is odd. 2022-02-16 12:54:24 +01:00
vc4_hdmi.h
…
vc4_hdmi_phy.c
…
vc4_hdmi_regs.h
…
vc4_hvs.c
…
vc4_irq.c
…
vc4_kms.c
…
vc4_packet.h
…
vc4_perfmon.c
…
vc4_plane.c
…
vc4_qpu_defines.h
…
vc4_regs.h
…
vc4_render_cl.c
…
vc4_trace.h
…
vc4_trace_points.c
…
vc4_txp.c drm/vc4: txp: Properly set the possible_crtcs mask 2021-07-19 09:44:57 +02:00
vc4_v3d.c
…
vc4_validate.c
…
vc4_validate_shaders.c
…
vc4_vec.c
…