mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +00:00
Short summary of fixes pull:
* bridge/analogix: Revert earlier suspend fix * bridge/lt8912b: Fix corrupt display output -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEchf7rIzpz2NEoWjlaA3BHVMLeiMFAmM1rvQACgkQaA3BHVML eiNyWgf/YfZNvMy18CHm1F74gNN0CbihChqNtTesMYnCt/E4hwe3YfJDf/NyJHfj ziigcHYCyEJ+R9TVLE9ynty/3tKycINZVDYo0H484GnMlpKGBQvlgCfTTWoymwTg gZkdGxeo9JXLC6PXPTii+Y+UEucqe33trjJ+qEUQg2Kjsy/yrhaD7UFKnhk6UJR6 4qbO+ierRXFglwW/nQB5UOXyyWaL2Offh3iM2UaKsusJz5sveQSq/FkP9Rh0K0ti nHz4vydldjxjnfvAHrPJKzT0BaqhI9IOFZeOYgX1ml8Bwq7zmaI+Z9IkOtyf9wsP UOLP6wQQqvt8hba6/hOzWsCJeol/6g== =OLW2 -----END PGP SIGNATURE----- Merge tag 'drm-misc-fixes-2022-09-29' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes Short summary of fixes pull: * bridge/analogix: Revert earlier suspend fix * bridge/lt8912b: Fix corrupt display output Signed-off-by: Dave Airlie <airlied@redhat.com> From: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patchwork.freedesktop.org/patch/msgid/YzWvHhaqHhYirn4L@linux-uq9g
This commit is contained in:
commit
153a97b4e3
@ -1864,12 +1864,6 @@ EXPORT_SYMBOL_GPL(analogix_dp_remove);
|
||||
int analogix_dp_suspend(struct analogix_dp_device *dp)
|
||||
{
|
||||
clk_disable_unprepare(dp->clock);
|
||||
|
||||
if (dp->plat_data->panel) {
|
||||
if (drm_panel_unprepare(dp->plat_data->panel))
|
||||
DRM_ERROR("failed to turnoff the panel\n");
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(analogix_dp_suspend);
|
||||
@ -1884,13 +1878,6 @@ int analogix_dp_resume(struct analogix_dp_device *dp)
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (dp->plat_data->panel) {
|
||||
if (drm_panel_prepare(dp->plat_data->panel)) {
|
||||
DRM_ERROR("failed to setup the panel\n");
|
||||
return -EBUSY;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(analogix_dp_resume);
|
||||
|
@ -188,7 +188,7 @@ static int lt8912_write_lvds_config(struct lt8912 *lt)
|
||||
{0x03, 0xff},
|
||||
};
|
||||
|
||||
return regmap_multi_reg_write(lt->regmap[I2C_CEC_DSI], seq, ARRAY_SIZE(seq));
|
||||
return regmap_multi_reg_write(lt->regmap[I2C_MAIN], seq, ARRAY_SIZE(seq));
|
||||
};
|
||||
|
||||
static inline struct lt8912 *bridge_to_lt8912(struct drm_bridge *b)
|
||||
@ -268,7 +268,7 @@ static int lt8912_video_setup(struct lt8912 *lt)
|
||||
u32 hactive, h_total, hpw, hfp, hbp;
|
||||
u32 vactive, v_total, vpw, vfp, vbp;
|
||||
u8 settle = 0x08;
|
||||
int ret;
|
||||
int ret, hsync_activehigh, vsync_activehigh;
|
||||
|
||||
if (!lt)
|
||||
return -EINVAL;
|
||||
@ -278,12 +278,14 @@ static int lt8912_video_setup(struct lt8912 *lt)
|
||||
hpw = lt->mode.hsync_len;
|
||||
hbp = lt->mode.hback_porch;
|
||||
h_total = hactive + hfp + hpw + hbp;
|
||||
hsync_activehigh = lt->mode.flags & DISPLAY_FLAGS_HSYNC_HIGH;
|
||||
|
||||
vactive = lt->mode.vactive;
|
||||
vfp = lt->mode.vfront_porch;
|
||||
vpw = lt->mode.vsync_len;
|
||||
vbp = lt->mode.vback_porch;
|
||||
v_total = vactive + vfp + vpw + vbp;
|
||||
vsync_activehigh = lt->mode.flags & DISPLAY_FLAGS_VSYNC_HIGH;
|
||||
|
||||
if (vactive <= 600)
|
||||
settle = 0x04;
|
||||
@ -317,6 +319,13 @@ static int lt8912_video_setup(struct lt8912 *lt)
|
||||
ret |= regmap_write(lt->regmap[I2C_CEC_DSI], 0x3e, hfp & 0xff);
|
||||
ret |= regmap_write(lt->regmap[I2C_CEC_DSI], 0x3f, hfp >> 8);
|
||||
|
||||
ret |= regmap_update_bits(lt->regmap[I2C_MAIN], 0xab, BIT(0),
|
||||
vsync_activehigh ? BIT(0) : 0);
|
||||
ret |= regmap_update_bits(lt->regmap[I2C_MAIN], 0xab, BIT(1),
|
||||
hsync_activehigh ? BIT(1) : 0);
|
||||
ret |= regmap_update_bits(lt->regmap[I2C_MAIN], 0xb2, BIT(0),
|
||||
lt->connector.display_info.is_hdmi ? BIT(0) : 0);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user