]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/icl: Do read-modify-write as needed during MG PLL programming
authorImre Deak <imre.deak@intel.com>
Tue, 19 Jun 2018 16:41:15 +0000 (19:41 +0300)
committerImre Deak <imre.deak@intel.com>
Thu, 21 Jun 2018 16:02:03 +0000 (19:02 +0300)
commit1b7ee2e940b0142300fe47003671915610d3808e
treeecaba334aaf8bfd82afc483d731e8c907fc14f12
parentb682a546bf04a5bb8397b947f124840702574016
drm/i915/icl: Do read-modify-write as needed during MG PLL programming

Some MG PLL registers have fields that need to be preserved at their HW
default or BIOS programmed values. So make sure we preserve them.

v2:
- Add comment to icl_mg_pll_write() explaining the need for register
  masks. (Vandita)
- Fix patchwork checkpatch warning.

v3:
- Rebase on drm-tip.

Cc: Vandita Kulkarni <vandita.kulkarni@intel.com>
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: James Ausmus <james.ausmus@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: James Ausmus <james.ausmus@intel.com> (v1)
Reviewed-by: Vandita Kulkarni <vandita.kulkarni@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180619164115.7835-1-imre.deak@intel.com
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_dpll_mgr.c