A diff to make this v3. Found when running this through IGT bat.
- Keeping an encoder but moving it to a different crtc resulted, in
encoder_mask not being updated.
- Add some paranoia when best_encoder was already updated to a different
encoder in steal_encoder.
This could happen in theory.
This allows iteration over encoders using drm_for_each_encoder_mask
without inspecting all connector_states, which requires connection_mutex.
Changes since v1:
- Add a set_best_encoder helper function and update encoder_mask inside it.
Signed-off-by: Maarten Lankhorst
---
drivers/gpu/drm/drm_at