drm/i915: use intel_uncore_rmw when appropriate
authorAndrzej Hajda <andrzej.hajda@intel.com>
Wed, 19 Oct 2022 14:38:17 +0000 (16:38 +0200)
committerAndi Shyti <andi.shyti@linux.intel.com>
Mon, 24 Oct 2022 18:32:55 +0000 (20:32 +0200)
commit5490c50438c6a8af849f3894a1b7d655349a7b7b
treea5ab9c05e7009357ac27f1ba81459378eaf8541a
parenta47e8a46a7f02ab6e5b225bcaec4fd2c0bec5e6f
drm/i915: use intel_uncore_rmw when appropriate

This patch replaces all occurences of the form
intel_uncore_write(reg, intel_uncore_read(reg) OP val)
with intel_uncore_rmw.

Signed-off-by: Andrzej Hajda <andrzej.hajda@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221019143818.244339-1-andrzej.hajda@intel.com
drivers/gpu/drm/i915/intel_pm.c