Re: [PATCH v2 11/12] drm/sun4i: backend: Make sure we don't have a commit pending

2018-01-04 Thread Chen-Yu Tsai
On Mon, Dec 18, 2017 at 10:57 PM, Maxime Ripard wrote: > If we try to read the backend registers while it fetches the new values, we > end up with the value of some random register instead of the one we asked > for. > > In order to prevent that, let's make sure

[PATCH v2 11/12] drm/sun4i: backend: Make sure we don't have a commit pending

2017-12-18 Thread Maxime Ripard
If we try to read the backend registers while it fetches the new values, we end up with the value of some random register instead of the one we asked for. In order to prevent that, let's make sure that the very first thing we do during our atomic modesetting is to let the commit bit come to a