]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/tegra: dc: Silence RGB output deferred-probe error
authorDmitry Osipenko <digetx@gmail.com>
Sun, 8 Mar 2020 22:38:09 +0000 (01:38 +0300)
committerThierry Reding <treding@nvidia.com>
Fri, 13 Mar 2020 17:03:06 +0000 (18:03 +0100)
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 <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c

index 56d933e81797668140f5cccfe95887caab59ebcd..1a7b08f35776826042ee1337d9df350d2d7d275f 100644 (file)
@@ -2571,7 +2571,13 @@ static int tegra_dc_probe(struct platform_device *pdev)
 
        err = tegra_dc_rgb_probe(dc);
        if (err < 0 && err != -ENODEV) {
-               dev_err(&pdev->dev, "failed to probe RGB output: %d\n", err);
+               const char *level = KERN_ERR;
+
+               if (err == -EPROBE_DEFER)
+                       level = KERN_DEBUG;
+
+               dev_printk(level, dc->dev, "failed to probe RGB output: %d\n",
+                          err);
                return err;
        }