media: atomisp: use different dfs failed messages
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 31 May 2020 12:02:55 +0000 (14:02 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 11 Jun 2020 17:12:00 +0000 (19:12 +0200)
There are several parts of the driver that could produce
a "dfs failed!" message. Change the texts, in order to help
identifying from where they're coming.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_cmd.c
drivers/staging/media/atomisp/pci/atomisp_ioctl.c

index 51df146..9392503 100644 (file)
@@ -1407,10 +1407,10 @@ static void __atomisp_css_recover(struct atomisp_device *isp, bool isp_timeout)
                                       atomisp_css_valid_sof(isp));
 
                if (atomisp_freq_scaling(isp, ATOMISP_DFS_MODE_AUTO, true) < 0)
-                       dev_dbg(isp->dev, "dfs failed!\n");
+                       dev_dbg(isp->dev, "DFS auto failed while recovering!\n");
        } else {
                if (atomisp_freq_scaling(isp, ATOMISP_DFS_MODE_MAX, true) < 0)
-                       dev_dbg(isp->dev, "dfs failed!\n");
+                       dev_dbg(isp->dev, "DFS max failed while recovering!\n");
        }
 
        for (i = 0; i < isp->num_of_streams; i++) {
index 0a76f38..1556762 100644 (file)
@@ -1810,15 +1810,15 @@ start_sensor:
                if (atomisp_streaming_count(isp) > 1) {
                        if (atomisp_freq_scaling(isp,
                                                 ATOMISP_DFS_MODE_MAX, false) < 0)
-                               dev_dbg(isp->dev, "dfs failed!\n");
+                               dev_dbg(isp->dev, "DFS max mode failed!\n");
                } else {
                        if (atomisp_freq_scaling(isp,
                                                 ATOMISP_DFS_MODE_AUTO, false) < 0)
-                               dev_dbg(isp->dev, "dfs failed!\n");
+                               dev_dbg(isp->dev, "DFS auto mode failed!\n");
                }
        } else {
                if (atomisp_freq_scaling(isp, ATOMISP_DFS_MODE_MAX, false) < 0)
-                       dev_dbg(isp->dev, "dfs failed!\n");
+                       dev_dbg(isp->dev, "DFS max mode failed!\n");
        }
 
        if (asd->depth_mode->val && atomisp_streaming_count(isp) ==