Skip to content

Commit

Permalink
drm/i915: Do not print 'pxp init failed with 0' when it succeed
Browse files Browse the repository at this point in the history
It is misleading, if the intention was to also print something
in case it succeed it should have a different string.

Cc: Alan Previn <[email protected]>
Signed-off-by: José Roberto de Souza <[email protected]>
Fixes: 698e19d ("drm/i915: Skip pxp init if gt is wedged")
Reviewed-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit d437099)
Signed-off-by: Rodrigo Vivi <[email protected]>
  • Loading branch information
zehortigoza authored and rodrigovivi committed Mar 28, 2024
1 parent e41d769 commit d392e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/i915_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ int i915_driver_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
goto out_cleanup_modeset2;

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

ret = intel_display_driver_probe(i915);
Expand Down

0 comments on commit d392e1b

Please sign in to comment.