]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: access VLV regs through read/write switch
authorJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 15 Jun 2012 18:55:17 +0000 (11:55 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 20 Jun 2012 20:47:15 +0000 (22:47 +0200)
commit6afbcd213a413872def637e6299549bf1fc5976f
tree20eb6aac452dacf6b10dce49fd71ec2f9f018216
parenta1032e361dccbdde56d333be27c3bc944d5ec055
drm/i915: access VLV regs through read/write switch

Since the offsets have all moved around.

v2: switch IS_DISPLAYREG and IS_VALLEYVIEW checks around since the latter is
    cheaper (Daniel)
    bail out early in IS_DISPLAYREG if the reg is in the new range (Daniel)

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
[danvet: Fixup if cascading fail that broke HAS_FORCEWAKE machines.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c