[PATCH v2 1/2] drm/atomic: move waiting for hw_done to a helper