These patches were generated from: https://github.com/raspberrypi/linux/commits/rpi-6.12.y With the following command: git format-patch -N v6.12.27..HEAD (HEAD -> 8d3206ee456a5ecdf9ddbfd8e5e231e4f0cd716e) Exceptions: - (def)configs patches - github workflows patches - applied & reverted patches - readme patches - wireless patches Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
From eec3956509e57ae7b0bfb9520e43365cdc0fa0c9 Mon Sep 17 00:00:00 2001
|
|
From: Naushir Patuck <naush@raspberrypi.com>
|
|
Date: Mon, 8 Jul 2024 11:47:49 +0100
|
|
Subject: [PATCH] media: pisp_be: Re-introduce video node offset
|
|
|
|
Offset the backend dev-nodes starting at /dev/video20
|
|
onwards to maintain backward compatibility with the
|
|
pre-upstreamed kernel driver.
|
|
|
|
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
|
|
---
|
|
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
--- a/drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
|
|
+++ b/drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
|
|
@@ -21,6 +21,9 @@
|
|
|
|
#include "pisp_be_formats.h"
|
|
|
|
+/* Offset to use when registering the /dev/videoX node */
|
|
+#define PISPBE_VIDEO_NODE_OFFSET 20
|
|
+
|
|
/* Maximum number of config buffers possible */
|
|
#define PISP_BE_NUM_CONFIG_BUFFERS VB2_MAX_FRAME
|
|
|
|
@@ -1484,7 +1487,8 @@ static int pispbe_init_node(struct pispb
|
|
goto err_unregister_queue;
|
|
}
|
|
|
|
- ret = video_register_device(vdev, VFL_TYPE_VIDEO, -1);
|
|
+ ret = video_register_device(vdev, VFL_TYPE_VIDEO,
|
|
+ PISPBE_VIDEO_NODE_OFFSET);
|
|
if (ret) {
|
|
dev_err(pispbe->dev,
|
|
"Failed to register video %s device node\n",
|