[RFC PATCH 04/37] drm: crtc_helper: Update hwmode before mode_set call

2015-03-20 Thread Daniel Vetter
On Thu, Mar 19, 2015 at 04:33:03AM +, Daniel Stone wrote: > Just as we provide crtc->mode pre-populated with the requested mode, > move adjusted_mode into hwmode before we call the crtc's mode_set, > making sure to restore it on failure. > > Allows drivers which thoughtlessly discard adjusted_

[RFC PATCH 04/37] drm: crtc_helper: Update hwmode before mode_set call

2015-03-19 Thread Daniel Stone
Just as we provide crtc->mode pre-populated with the requested mode, move adjusted_mode into hwmode before we call the crtc's mode_set, making sure to restore it on failure. Allows drivers which thoughtlessly discard adjusted_mode in their mode_set hooks (e.g. Exynos) to use hwmode directly, and a