lkml.org 
[lkml]   [2022]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v1 22/35] drm/vc4: vec: Use TV Reset implementation
    Date
    The analog TV properties created by the drm_mode_create_tv_properties() are
    not properly initialised at reset. Let's switch our implementation to call
    drm_atomic_helper_connector_tv_reset().

    Signed-off-by: Maxime Ripard <maxime@cerno.tech>

    diff --git a/drivers/gpu/drm/vc4/vc4_vec.c b/drivers/gpu/drm/vc4/vc4_vec.c
    index fba15a14787e..6f4536bf537f 100644
    --- a/drivers/gpu/drm/vc4/vc4_vec.c
    +++ b/drivers/gpu/drm/vc4/vc4_vec.c
    @@ -254,6 +254,12 @@ vc4_vec_connector_detect(struct drm_connector *connector, bool force)
    return connector_status_unknown;
    }

    +void vc4_vec_connector_reset(struct drm_connector *connector)
    +{
    + drm_atomic_helper_connector_reset(connector);
    + drm_atomic_helper_connector_tv_reset(connector);
    +}
    +
    static int vc4_vec_connector_get_modes(struct drm_connector *connector)
    {
    struct drm_connector_state *state = connector->state;
    @@ -274,7 +280,7 @@ static int vc4_vec_connector_get_modes(struct drm_connector *connector)
    static const struct drm_connector_funcs vc4_vec_connector_funcs = {
    .detect = vc4_vec_connector_detect,
    .fill_modes = drm_helper_probe_single_connector_modes,
    - .reset = drm_atomic_helper_connector_reset,
    + .reset = vc4_vec_connector_reset,
    .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state,
    .atomic_destroy_state = drm_atomic_helper_connector_destroy_state,
    };
    --
    b4 0.10.0-dev-49460

    \
     
     \ /
      Last update: 2022-07-29 18:37    [W:4.159 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site