mirror of https://gitee.com/openkylin/linux.git
Two cleanups
. Replace the hand rolled encoder bitmask thing with drm_encoder_mask() . Use mode->clock instead of reverse calculating it from the vrefresh -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJecZOQAAoJEFc4NIkMQxK47J4P/jEIlAScPph3+YVQHOyX+yBz f8O7djTqbjAFLkH7T6/4YN8cDzEKBrYB0QnopE63syQjQ2VICPKDVeB8+06Ogbso Vuo36BwMHTTHQE0zMogL+UVDYEOFsJWaU/PwQQ1PkIym6niEtt6xnypoHpvCalJ3 E2+WFX4z8+Ll2NeKE1iW57Q+XR1mOBYEKb+UIHrlb3Xf+A2lR3wS4TVc2mhJ0Yd5 HAUyDKMfMfmg/KremKXU/BzpZ42j+hNmEr9odrv7NPItDnJiCQ87LvhraJ37twWa HkCWpVvBnWrTlNS4emQv2bHfJSLQUAIYStJIqNmnDvTx/peZZ7hJ9Xta30nuk4w0 prvOF4w7rktRNP9OjIigLXgg8qFVwtfXTyr7cI+SOYf5uklPQRGg3kOfCMBRMiHI 97Nde1GjQVVML10cvrLNwGUCO9BzOtLQalpMnFD6Hlr13hK73Tyo3iNSJ7aQYzX6 R/UCWqdVEeZYbxo8m6FE0JpfmfN5lZBQqVzYYFFTucCXrboRrfA9SJeoEb+nxpVL ezyLhov+TcRIQRkjUT8Er/IKa5MqpKpS+LXsFBeBv1PCS8EnvnKR0EhqJuC3DiQO U47o7KZPL3JuS79jHYh02T562CR66dq1uIvZti7BiG0AQOZhdDaBA8RYYGKR45Q4 YgI7mPpe4j+tJ15V3A7d =wMbf -----END PGP SIGNATURE----- Merge tag 'exynos-drm-next-for-v5.7' of git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos into drm-next Two cleanups . Replace the hand rolled encoder bitmask thing with drm_encoder_mask() . Use mode->clock instead of reverse calculating it from the vrefresh Signed-off-by: Dave Airlie <airlied@redhat.com> From: Inki Dae <inki.dae@samsung.com> Link: https://patchwork.freedesktop.org/patch/msgid/1584320957-9442-1-git-send-email-inki.dae@samsung.com
This commit is contained in:
commit
7c2cb99fe7
|
@ -139,7 +139,7 @@ static void decon_ctx_remove(struct decon_context *ctx)
|
|||
static u32 decon_calc_clkdiv(struct decon_context *ctx,
|
||||
const struct drm_display_mode *mode)
|
||||
{
|
||||
unsigned long ideal_clk = mode->htotal * mode->vtotal * mode->vrefresh;
|
||||
unsigned long ideal_clk = mode->clock;
|
||||
u32 clkdiv;
|
||||
|
||||
/* Find the clock divider value that gets us closest to ideal_clk */
|
||||
|
|
|
@ -270,7 +270,7 @@ static int exynos_drm_bind(struct device *dev)
|
|||
struct drm_encoder *encoder;
|
||||
struct drm_device *drm;
|
||||
unsigned int clone_mask;
|
||||
int cnt, ret;
|
||||
int ret;
|
||||
|
||||
drm = drm_dev_alloc(&exynos_drm_driver, dev);
|
||||
if (IS_ERR(drm))
|
||||
|
@ -293,10 +293,9 @@ static int exynos_drm_bind(struct device *dev)
|
|||
exynos_drm_mode_config_init(drm);
|
||||
|
||||
/* setup possible_clones. */
|
||||
cnt = 0;
|
||||
clone_mask = 0;
|
||||
list_for_each_entry(encoder, &drm->mode_config.encoder_list, head)
|
||||
clone_mask |= (1 << (cnt++));
|
||||
clone_mask |= drm_encoder_mask(encoder);
|
||||
|
||||
list_for_each_entry(encoder, &drm->mode_config.encoder_list, head)
|
||||
encoder->possible_clones = clone_mask;
|
||||
|
|
Loading…
Reference in New Issue