Skip to content

Commit 8f839fb

Browse files
digetxthierryreding
authored andcommitted
drm/tegra: dc: Silence RGB output deferred-probe error
Driver fails to probe with -EPROBE_DEFER if display output isn't ready yet. This produces a bit noisy error message in KMSG during kernel's boot up on Tegra20 and Tegra30 because RGB output tends to be probed earlier than a corresponding voltage regulator driver. Signed-off-by: Dmitry Osipenko <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 0411ea8 commit 8f839fb

File tree

1 file changed

+7
-1
lines changed
  • drivers/gpu/drm/tegra

1 file changed

+7
-1
lines changed

drivers/gpu/drm/tegra/dc.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2571,7 +2571,13 @@ static int tegra_dc_probe(struct platform_device *pdev)
25712571

25722572
err = tegra_dc_rgb_probe(dc);
25732573
if (err < 0 && err != -ENODEV) {
2574-
dev_err(&pdev->dev, "failed to probe RGB output: %d\n", err);
2574+
const char *level = KERN_ERR;
2575+
2576+
if (err == -EPROBE_DEFER)
2577+
level = KERN_DEBUG;
2578+
2579+
dev_printk(level, dc->dev, "failed to probe RGB output: %d\n",
2580+
err);
25752581
return err;
25762582
}
25772583

0 commit comments

Comments
 (0)