]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: have virtual PCH detection return a PCH id
authorJani Nikula <jani.nikula@intel.com>
Mon, 5 Feb 2018 17:31:38 +0000 (19:31 +0200)
committerJani Nikula <jani.nikula@intel.com>
Tue, 13 Feb 2018 15:03:12 +0000 (17:03 +0200)
commitae5a4e5e22d7b5c7d3eb35cea1f8382523b7be8c
treeadddf2b449661449472af2d489c3c68a829b1742
parente187d4754f0f13a6ced0e314292a4e13725bdab0
drm/i915: have virtual PCH detection return a PCH id

Simplify intel_virt_detect_pch() by making it return a PCH id rather
than returning the PCH type and setting PCH id for some PCHs. Map the
PCH id to PCH type using the shared routine. This gives us sanity check
on the supported combinations also in the virtualized setting.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/197cf635261a1c628371ffaaee90e8647493af4d.1517851783.git.jani.nikula@intel.com
drivers/gpu/drm/i915/i915_drv.c