Commit 8348c43d authored by Sakari Ailus's avatar Sakari Ailus Committed by Luis Henriques

[media] smiapp: Take mutex during PLL update in sensor initialisation

commit f85698cd upstream.

The mutex does not serialise anything in this case but avoids a lockdep
warning from the control framework.
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
parent 7013a11b
...@@ -2625,7 +2625,9 @@ static int smiapp_registered(struct v4l2_subdev *subdev) ...@@ -2625,7 +2625,9 @@ static int smiapp_registered(struct v4l2_subdev *subdev)
pll->flags |= SMIAPP_PLL_FLAG_NO_OP_CLOCKS; pll->flags |= SMIAPP_PLL_FLAG_NO_OP_CLOCKS;
pll->scale_n = sensor->limits[SMIAPP_LIMIT_SCALER_N_MIN]; pll->scale_n = sensor->limits[SMIAPP_LIMIT_SCALER_N_MIN];
mutex_lock(&sensor->mutex);
rval = smiapp_update_mode(sensor); rval = smiapp_update_mode(sensor);
mutex_unlock(&sensor->mutex);
if (rval) { if (rval) {
dev_err(&client->dev, "update mode failed\n"); dev_err(&client->dev, "update mode failed\n");
goto out_nvm_release; goto out_nvm_release;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment