From 8299d1f057439f94c6a4412e2e5c5082b82a30c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Sat, 21 Aug 2021 10:54:34 +0200 Subject: bcm27xx: add kernel 5.10 support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rebased RPi foundation patches on linux 5.10.59, removed applied and reverted patches, wireless patches and defconfig patches. bcm2708: boot tested on RPi B+ v1.2 bcm2709: boot tested on RPi 4B v1.1 4G bcm2711: boot tested on RPi 4B v1.1 4G Signed-off-by: Álvaro Fernández Rojas --- ...mx290-set-the-format-before-VIDIOC_SUBDEV.patch | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 target/linux/bcm27xx/patches-5.10/950-0267-media-i2c-imx290-set-the-format-before-VIDIOC_SUBDEV.patch (limited to 'target/linux/bcm27xx/patches-5.10/950-0267-media-i2c-imx290-set-the-format-before-VIDIOC_SUBDEV.patch') diff --git a/target/linux/bcm27xx/patches-5.10/950-0267-media-i2c-imx290-set-the-format-before-VIDIOC_SUBDEV.patch b/target/linux/bcm27xx/patches-5.10/950-0267-media-i2c-imx290-set-the-format-before-VIDIOC_SUBDEV.patch new file mode 100644 index 0000000000..741d9be947 --- /dev/null +++ b/target/linux/bcm27xx/patches-5.10/950-0267-media-i2c-imx290-set-the-format-before-VIDIOC_SUBDEV.patch @@ -0,0 +1,40 @@ +From 79d340a54b121610b1d2c5061e8fd1991c6bb1ab Mon Sep 17 00:00:00 2001 +From: Andrey Konovalov +Date: Fri, 12 Jun 2020 15:53:46 +0200 +Subject: [PATCH] media: i2c: imx290: set the format before + VIDIOC_SUBDEV_G_FMT is called + +Commit d46cfdc86c30d5ec768924f0b1e2683c8d20b671 upstream. + +With the current driver 'media-ctl -p' issued right after the imx290 driver +is loaded prints: +pad0: Source + [fmt:unknown/0x0] + +The format value of zero is due to the current_format field of the imx290 +struct not being initialized yet. + +As imx290_entity_init_cfg() calls imx290_set_fmt(), the current_mode field +is also initialized, so the line which set current_mode to a default value +in driver's probe() function is no longer needed. + +Signed-off-by: Andrey Konovalov +Reviewed-by: Manivannan Sadhasivam +Signed-off-by: Sakari Ailus +Signed-off-by: Mauro Carvalho Chehab +--- + drivers/media/i2c/imx290.c | 3 +++ + 1 file changed, 3 insertions(+) + +--- a/drivers/media/i2c/imx290.c ++++ b/drivers/media/i2c/imx290.c +@@ -1091,6 +1091,9 @@ static int imx290_probe(struct i2c_clien + goto free_ctrl; + } + ++ /* Initialize the frame format (this also sets imx290->current_mode) */ ++ imx290_entity_init_cfg(&imx290->sd, NULL); ++ + ret = v4l2_async_register_subdev(&imx290->sd); + if (ret < 0) { + dev_err(dev, "Could not register v4l2 device\n"); -- cgit v1.2.3