|
@@ -2677,7 +2677,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;
|