mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 10:08:59 +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>
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
From 3e2203b265ddd8630fea0fbb69b3a2ec1496f773 Mon Sep 17 00:00:00 2001
|
|
From: Naushir Patuck <naush@raspberrypi.com>
|
|
Date: Wed, 4 Oct 2023 09:39:59 +0100
|
|
Subject: [PATCH] media: rp1: cfe: Fail streaming if FE_CONFIG node is not
|
|
enabled
|
|
|
|
When the FE is enabled, ensure that the FE_CONFIG node is enabled.
|
|
Otherwise fail cfe_start_streaming() entirely.
|
|
|
|
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
|
|
---
|
|
drivers/media/platform/raspberrypi/rp1_cfe/cfe.c | 8 ++++++++
|
|
1 file changed, 8 insertions(+)
|
|
|
|
--- a/drivers/media/platform/raspberrypi/rp1_cfe/cfe.c
|
|
+++ b/drivers/media/platform/raspberrypi/rp1_cfe/cfe.c
|
|
@@ -997,6 +997,14 @@ static int cfe_start_streaming(struct vb
|
|
goto err_streaming;
|
|
}
|
|
|
|
+ /* When using the Frontend, we must enable the FE_CONFIG node. */
|
|
+ if (is_fe_enabled(cfe) &&
|
|
+ !check_state(cfe, NODE_ENABLED, cfe->node[FE_CONFIG].id)) {
|
|
+ cfe_err("FE enabled, but FE_CONFIG node is not\n");
|
|
+ ret = -EINVAL;
|
|
+ goto err_streaming;
|
|
+ }
|
|
+
|
|
ret = media_pipeline_start(&node->pad, &cfe->pipe);
|
|
if (ret < 0) {
|
|
cfe_err("Failed to start media pipeline: %d\n", ret);
|