drm/i915: Re-enable self-refresh

A broken implementation of is_pot() prevented the detection of when a
singular pipe was enabled. Eric Anholt pointed out the existence of
is_power_of_2() so use that instead of our broken code!

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=35402
Signed-off-by: Yuanhan Liu <yuanhan.liu@intel.com>
Tested-by: xunx.fang@intel.com
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

authored by Yuanhan Liu and committed by Chris Wilson 7ccb4a53 09bfa517

+1 -4
+1 -4
drivers/gpu/drm/i915/intel_display.c
··· 3885 3885 display, cursor); 3886 3886 } 3887 3887 3888 - static inline bool single_plane_enabled(unsigned int mask) 3889 - { 3890 - return mask && (mask & -mask) == 0; 3891 - } 3888 + #define single_plane_enabled(mask) is_power_of_2(mask) 3892 3889 3893 3890 static void g4x_update_wm(struct drm_device *dev) 3894 3891 {