mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
drm/rockchip: analogix_dp: Add loader_protect for split mode
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com> Change-Id: I427dbfc4b1f30c20a3384b310c9b524cc3538091
This commit is contained in:
@@ -234,6 +234,13 @@ static void rockchip_dp_loader_protect(struct drm_encoder *encoder, bool on)
|
||||
struct rockchip_dp_device *dp = to_dp(encoder);
|
||||
struct analogix_dp_plat_data *plat_data = &dp->plat_data;
|
||||
|
||||
if (plat_data->right) {
|
||||
struct rockchip_dp_device *secondary =
|
||||
rockchip_dp_find_by_id(dp->dev->driver, !dp->id);
|
||||
|
||||
rockchip_dp_loader_protect(&secondary->encoder, on);
|
||||
}
|
||||
|
||||
if (!on)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user