OSDN Git Service

media: ccs-pll: Print pixel rates
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 23 Sep 2020 11:13:34 +0000 (13:13 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 7 Dec 2020 16:04:53 +0000 (17:04 +0100)
Print pixel rates on CSI-2 bus as well as in pixel array as the variation
allowed in PLL capabilities makes this non-trivial to figure out
otherwise.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ccs-pll.c

index 5a01623..eb7b6f0 100644 (file)
@@ -119,6 +119,11 @@ static void print_pll(struct device *dev, struct ccs_pll *pll)
                }
        }
 
+       dev_dbg(dev, "pixel rate in pixel array:\t%u\n",
+               pll->pixel_rate_pixel_array);
+       dev_dbg(dev, "pixel rate on CSI-2 bus:\t%u\n",
+               pll->pixel_rate_csi);
+
        dev_dbg(dev, "flags%s%s%s%s%s%s%s%s%s\n",
                pll->flags & PLL_FL(LANE_SPEED_MODEL) ? " lane-speed" : "",
                pll->flags & PLL_FL(LINK_DECOUPLED) ? " link-decoupled" : "",