drm/i915/display: correct dual pps handling for MTL_PCH+
authorDnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com>
Thu, 1 Aug 2024 11:11:41 +0000 (16:41 +0530)
committerJani Nikula <jani.nikula@intel.com>
Mon, 5 Aug 2024 09:27:44 +0000 (12:27 +0300)
commitda1878b61c8d480c361ba6a39ce8a31c80b65826
tree12282fc51924838a865f1cb35ca00b2a19319f4a
parentc0e0bde2c7e6bca2a1f195d82ef7598d521399e5
drm/i915/display: correct dual pps handling for MTL_PCH+

On the PCH side the second PPS was introduced in ICP+.Add condition
On MTL_PCH and greater platform also having the second PPS.

Note that DG1/2 south block only has the single PPS, so need
to exclude the fake DG1/2 PCHs

Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11488
Fixes: 93cbc1accbce ("drm/i915/mtl: Add fake PCH for Meteor Lake")
Cc: <stable@vger.kernel.org> # v6.9+
Signed-off-by: Dnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240801111141.574854-1-dnyaneshwar.bhadane@intel.com
drivers/gpu/drm/i915/display/intel_backlight.c
drivers/gpu/drm/i915/display/intel_pps.c