]> git.baikalelectronics.ru Git - kernel.git/commit
drm/dp_mst: Add DSC enablement helpers to DRM
authorMikita Lipski <mikita.lipski@amd.com>
Mon, 28 Oct 2019 21:33:32 +0000 (17:33 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Jan 2020 23:07:47 +0000 (18:07 -0500)
commitb979ffb451bc04143d7bc4d64084bbd3de52775b
tree8d9d34fc2e8e7f30502be6473634cd77b913fcdd
parent0010d3734408c867eb79d4650cc8ec108a3cd550
drm/dp_mst: Add DSC enablement helpers to DRM

Adding a helper function to be called by
drivers outside of DRM to enable DSC on
the MST ports.

Function is called to recalculate VCPI allocation
if DSC is enabled and raise the DSC flag to enable.
In case of disabling DSC the flag is set to false
and recalculation of VCPI slots is expected to be done
in encoder's atomic_check.

v2: squash separate functions into one and call it per
port
v3: Fix comment typos

Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/drm_dp_mst_topology.c
include/drm/drm_dp_mst_helper.h