Re: [Intel-gfx] [PATCH 5/7] drm/i915: abstract port hotplug long pulse detection more

2015-05-27 Thread Daniel Vetter
On Wed, May 27, 2015 at 03:03:43PM +0300, Jani Nikula wrote: > Add platform specific functions to decipher the register contents > instead of just returning the shift value. Use macros instead of magic > numbers to look at the register bits. > > As a side effect, if an unsupported port is passed,

Re: [Intel-gfx] [PATCH 5/7] drm/i915: abstract port hotplug long pulse detection more

2015-05-27 Thread Daniel Vetter
On Wed, May 27, 2015 at 02:41:29PM +0200, Daniel Vetter wrote: > On Wed, May 27, 2015 at 03:03:43PM +0300, Jani Nikula wrote: > > Add platform specific functions to decipher the register contents > > instead of just returning the shift value. Use macros instead of magic > > numbers to look at the r

[Intel-gfx] [PATCH 5/7] drm/i915: abstract port hotplug long pulse detection more

2015-05-27 Thread Jani Nikula
Add platform specific functions to decipher the register contents instead of just returning the shift value. Use macros instead of magic numbers to look at the register bits. As a side effect, if an unsupported port is passed, consistently return false (indicating short hotplug) instead of returni