Skip to content

Commit 706d6d6

Browse files
zehortigozagregkh
authored andcommitted
drm/i915: Do not print 'pxp init failed with 0' when it succeed
[ Upstream commit d392e1b ] It is misleading, if the intention was to also print something in case it succeed it should have a different string. Cc: Alan Previn <alan.previn.teres.alexis@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Fixes: 698e19d ("drm/i915: Skip pxp init if gt is wedged") Reviewed-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240320210547.71937-1-jose.souza@intel.com (cherry picked from commit d437099) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent ed6ef6e commit 706d6d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/i915_driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ int i915_driver_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
799799
goto out_cleanup_modeset2;
800800

801801
ret = intel_pxp_init(i915);
802-
if (ret != -ENODEV)
802+
if (ret && ret != -ENODEV)
803803
drm_dbg(&i915->drm, "pxp init failed with %d\n", ret);
804804

805805
ret = intel_display_driver_probe(i915);

0 commit comments

Comments
 (0)