1 From f463515fa1c3d34eeff708d3c015d357049b4df1 Mon Sep 17 00:00:00 2001
2 From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
3 Date: Mon, 16 Jan 2023 15:44:52 +0100
4 Subject: [PATCH] media: i2c: imx290: Configure data lanes at start
7 Upstream commit 7d399658f7c6
9 There's no need to configure the data lanes in the runtime PM resume
10 handler. Do so in imx290_start_streaming() instead.
12 Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
13 Reviewed-by: Alexander Stein <alexander.stein@ew.tq-group.com>
14 Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
15 Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
17 drivers/media/i2c/imx290.c | 6 +++---
18 1 file changed, 3 insertions(+), 3 deletions(-)
20 --- a/drivers/media/i2c/imx290.c
21 +++ b/drivers/media/i2c/imx290.c
22 @@ -762,6 +762,9 @@ static int imx290_start_streaming(struct
26 + /* Set data lane count */
27 + imx290_set_data_lanes(imx290);
29 /* Apply the register values related to current frame format */
30 format = v4l2_subdev_get_pad_format(&imx290->sd, state, 0);
31 ret = imx290_setup_format(imx290, format);
32 @@ -1069,9 +1072,6 @@ static int imx290_power_on(struct imx290
33 gpiod_set_value_cansleep(imx290->rst_gpio, 0);
34 usleep_range(30000, 31000);
36 - /* Set data lane count */
37 - imx290_set_data_lanes(imx290);