aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/platform/hisi/isp/isp-csiphy.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/platform/hisi/isp/isp-csiphy.c')
-rw-r--r--drivers/media/platform/hisi/isp/isp-csiphy.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/media/platform/hisi/isp/isp-csiphy.c b/drivers/media/platform/hisi/isp/isp-csiphy.c
index f6c050fc0814..6c3fae396d04 100644
--- a/drivers/media/platform/hisi/isp/isp-csiphy.c
+++ b/drivers/media/platform/hisi/isp/isp-csiphy.c
@@ -239,6 +239,7 @@ int isp_ispss_reset_all(struct isp *isp)
void isp_ispss_clk_enable(struct isp *isp)
{
+ pr_info("%s: %d\n", __func__, __LINE__);
/* enable all clock of isp sub-modules */
isp_writel(isp->ispss_ctrl, 0x010, 0xffffffff);
isp_writel(isp->ispss_ctrl, 0x014, 0xffffffff);
@@ -263,7 +264,8 @@ static int csiphy_set_power(struct v4l2_subdev *sd, int on)
struct csiphy_device *csiphy = v4l2_get_subdevdata(sd);
struct isp *isp = csiphy->isp;
int ret = 0;
-
+
+ pr_info("%s: %d\n", __func__, __LINE__);
ret = isp_enable_clocks(isp->clks, isp->dev);
if (ret < 0)
return ret;
@@ -289,10 +291,12 @@ static int csiphy_set_stream(struct v4l2_subdev *sd, int enable)
struct isp *isp = csiphy->isp;
int ret;
+ pr_info("%s: %d\n", __func__, __LINE__);
isp_ispss_reset_all(isp);
mdelay(100);
- ret = csi2if_enable(csiphy, 2, 0);
+ pr_info("%s: Data lane count is: %d\n", __func__, csiphy->cfg.num_data);
+ ret = csi2if_enable(csiphy, csiphy->cfg.num_data, 0);
if (ret < 0)
return ret;