drm/etnaviv: fix workaround for GC500
commitc33246d793b5bb9d8be7c67918136c310185c23d
authorLucas Stach <l.stach@pengutronix.de>
Wed, 6 Jan 2016 13:36:40 +0000 (6 14:36 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Thu, 7 Jan 2016 10:57:57 +0000 (7 11:57 +0100)
tree77c8ff675729d6ec069c51983610f58f6d53c35e
parented94add00e290e675c36cef6767d7d1f51a02f28
drm/etnaviv: fix workaround for GC500

The hardware description macros define the mask and shifts the wrong
way around for the intended use, leading to the condition never being
true and the chip revision ending up with the wrong value.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Acked-by: Christian Gmeiner <christian.gmeiner@gmail.com>
drivers/gpu/drm/etnaviv/etnaviv_gpu.c