drm/sti: run hqvdp init sequence only once
authorFabien Dessenne <fabien.dessenne@st.com>
Wed, 24 Aug 2016 10:12:37 +0000 (12:12 +0200)
committerVincent Abriou <vincent.abriou@st.com>
Tue, 20 Sep 2016 09:32:05 +0000 (11:32 +0200)
commit9dd5942b3195fc94c538d6cf1d26cde8813da80c
tree732caabd00d95de79d4bc9846a6cb9b6bdf8ec4c
parent29ffa77668235bd4b39cd0bac209621a25355af2
drm/sti: run hqvdp init sequence only once

Do not rely on plane->status to define whether this is the first update
but rather check for hqvdp->xp70_initialized bit status.
This avoids multiple and unwanted calls to sti_vtg_register_client()
which breaks the kernel scheduler.

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Acked-by: Vincent Abriou <vincent.abriou@st.com>
drivers/gpu/drm/sti/sti_hqvdp.c