drm/i915: Print a debug message when exceeding dotclock limit on pre-gen4
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 30 Oct 2015 21:39:38 +0000 (23:39 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 9 Nov 2015 18:02:42 +0000 (20:02 +0200)
commit39acb4aa1aa6a30647cbe402e3f817b2b87feb1e
tree744c58a254406535b3e1e9b6d7e25bb1e9c170b0
parent44eb0cb9620c6a53ec8e7073262e2af8079b727f
drm/i915: Print a debug message when exceeding dotclock limit on pre-gen4

Currently there's no trace in dmesg when the gen2/3 dotclock checks
reject the modeset. Add some to avoid further head scratching.

While at it refactor the code a bit to look nicer.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1446241178-432-1-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Ander Conselvan de Oliveira <conselvan2@gmail.com>
drivers/gpu/drm/i915/intel_display.c