mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 09:12:39 +00:00
2e715fb4fc
Add support for BCM2712 (Raspberry Pi 5).
3bb5880ab3
Patches were generated from the diff between linux kernel branch linux-6.1.y
and rpi-6.1.y from raspberry pi kernel source:
- git format-patch linux-6.1.y...rpi-6.1.y
Build system: x86_64
Build-tested: bcm2708, bcm2709, bcm2710, bcm2711
Run-tested: bcm2710/RPi3B, bcm2711/RPi4B
Signed-off-by: Marty Jones <mj8263788@gmail.com>
[Remove applied and reverted patches, squash patches and config commits]
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
35 lines
982 B
Diff
35 lines
982 B
Diff
From 72c25bbb761de2b2acd9f8b652d63e2a2f1caeed Mon Sep 17 00:00:00 2001
|
|
From: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
|
|
Date: Mon, 11 Sep 2023 12:17:25 +0300
|
|
Subject: [PATCH] media: i2c: imx477: Fix locking in imx477_init_controls()
|
|
|
|
The driver does not lock the imx477 mutex when calling
|
|
imx477_set_framing_limits(), leading to:
|
|
|
|
WARNING: CPU: 3 PID: 426 at drivers/media/v4l2-core/v4l2-ctrls-api.c:934 __v4l2_ctrl_modify_range+0x1a0/0x210 [
|
|
videodev]
|
|
|
|
Fix this by taking the lock.
|
|
|
|
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
|
|
---
|
|
drivers/media/i2c/imx477.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
--- a/drivers/media/i2c/imx477.c
|
|
+++ b/drivers/media/i2c/imx477.c
|
|
@@ -2069,9 +2069,13 @@ static int imx477_init_controls(struct i
|
|
|
|
imx477->sd.ctrl_handler = ctrl_hdlr;
|
|
|
|
+ mutex_lock(&imx477->mutex);
|
|
+
|
|
/* Setup exposure and frame/line length limits. */
|
|
imx477_set_framing_limits(imx477);
|
|
|
|
+ mutex_unlock(&imx477->mutex);
|
|
+
|
|
return 0;
|
|
|
|
error:
|