Show a patch.

GET /api/patches/23919/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 23919,
    "url": "https://patchwork.libcamera.org/api/patches/23919/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/23919/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/projects/1/?format=api",
        "name": "libcamera",
        "link_name": "libcamera",
        "list_id": "libcamera_core",
        "list_email": "libcamera-devel@lists.libcamera.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20250724065256.75175-3-dan.scally@ideasonboard.com>",
    "date": "2025-07-24T06:52:48",
    "name": "[02/10] include: linux: Add RAWnn to drm_fourcc.h",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "c71512c88c4834bccd03458fcdd5d3fdea4328be",
    "submitter": {
        "id": 156,
        "url": "https://patchwork.libcamera.org/api/people/156/?format=api",
        "name": "Dan Scally",
        "email": "dan.scally@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/23919/mbox/",
    "series": [
        {
            "id": 5319,
            "url": "https://patchwork.libcamera.org/api/series/5319/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=5319",
            "date": "2025-07-24T06:52:46",
            "name": "Support memory input mode in mali-c55",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/5319/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/23919/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/23919/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>",
        "X-Original-To": "parsemail@patchwork.libcamera.org",
        "Delivered-To": "parsemail@patchwork.libcamera.org",
        "Received": [
            "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 0E73FBDCC1\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 24 Jul 2025 06:53:25 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 395DF69097;\n\tThu, 24 Jul 2025 08:53:20 +0200 (CEST)",
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id D48126907F\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 24 Jul 2025 08:53:14 +0200 (CEST)",
            "from mail.ideasonboard.com\n\t(cpc141996-chfd3-2-0-cust928.12-3.cable.virginm.net [86.13.91.161])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id E8CEA190D;\n\tThu, 24 Jul 2025 08:52:35 +0200 (CEST)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"BtFAsGJn\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1753339956;\n\tbh=ZPQ+ZpDt9xQ1HfY5kYKlZDuS6l9xDcEmSc92qAz76LQ=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=BtFAsGJnM8Wp1mGbqCbKyYeI04PiX2hN3y2Wx7angvvXkJCJZk69wQ1F1IetZWMJT\n\t7fWrOG0eEo6afDOvZi3ndAGUl411OLRMpD1vIbNLXX/vhO+Suj5tFVlCrLAaTJFOZS\n\tdLEKOai5OgduDP/f1WNlk6sD8IPn4uibJupNnHEU=",
        "From": "Daniel Scally <dan.scally@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Cc": "Daniel Scally <dan.scally@ideasonboard.com>",
        "Subject": "[PATCH 02/10] include: linux: Add RAWnn to drm_fourcc.h",
        "Date": "Thu, 24 Jul 2025 07:52:48 +0100",
        "Message-Id": "<20250724065256.75175-3-dan.scally@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20250724065256.75175-1-dan.scally@ideasonboard.com>",
        "References": "<20250724065256.75175-1-dan.scally@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "libcamera-devel@lists.libcamera.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "<libcamera-devel.lists.libcamera.org>",
        "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>",
        "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>",
        "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>",
        "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "Add entries to drm_fourcc.h for bayer order agnostic RAW formats at\n10, 12, 14 and 20 bits. Add a modifier for the CRU format packing.\nThese will need to be applied upstream, at which stage the script\ncan maintain their presence here.\n\nSigned-off-by: Daniel Scally <dan.scally@ideasonboard.com>\n---\n include/linux/drm_fourcc.h | 9 +++++++++\n 1 file changed, 9 insertions(+)",
    "diff": "diff --git a/include/linux/drm_fourcc.h b/include/linux/drm_fourcc.h\nindex db679877..7257f623 100644\n--- a/include/linux/drm_fourcc.h\n+++ b/include/linux/drm_fourcc.h\n@@ -447,18 +447,21 @@ extern \"C\" {\n #define DRM_FORMAT_SGRBG10\tfourcc_code('B', 'A', '1', '0')\n #define DRM_FORMAT_SGBRG10\tfourcc_code('G', 'B', '1', '0')\n #define DRM_FORMAT_SBGGR10\tfourcc_code('B', 'G', '1', '0')\n+#define DRM_FORMAT_RAW10\tfourcc_code('R', 'W', '1', '0')\n \n /* 12-bit Bayer formats */\n #define DRM_FORMAT_SRGGB12\tfourcc_code('R', 'G', '1', '2')\n #define DRM_FORMAT_SGRBG12\tfourcc_code('B', 'A', '1', '2')\n #define DRM_FORMAT_SGBRG12\tfourcc_code('G', 'B', '1', '2')\n #define DRM_FORMAT_SBGGR12\tfourcc_code('B', 'G', '1', '2')\n+#define DRM_FORMAT_RAW12\tfourcc_code('R', 'W', '1', '2')\n \n /* 14-bit Bayer formats */\n #define DRM_FORMAT_SRGGB14\tfourcc_code('R', 'G', '1', '4')\n #define DRM_FORMAT_SGRBG14\tfourcc_code('B', 'A', '1', '4')\n #define DRM_FORMAT_SGBRG14\tfourcc_code('G', 'B', '1', '4')\n #define DRM_FORMAT_SBGGR14\tfourcc_code('B', 'G', '1', '4')\n+#define DRM_FORMAT_RAW14\tfourcc_code('R', 'W', '1', '4')\n \n /* 16-bit Bayer formats */\n #define DRM_FORMAT_SRGGB16\tfourcc_code('R', 'G', 'B', '6')\n@@ -466,6 +469,9 @@ extern \"C\" {\n #define DRM_FORMAT_SGBRG16\tfourcc_code('G', 'B', '1', '6')\n #define DRM_FORMAT_SBGGR16\tfourcc_code('B', 'Y', 'R', '2')\n \n+/* 20-bit Bayer formats */\n+#define DRM_FORMAT_RAW20\tfourcc_code('R', 'W', '2', '0')\n+\n /*\n  * Format Modifiers:\n  *\n@@ -491,6 +497,7 @@ extern \"C\" {\n #define DRM_FORMAT_MOD_VENDOR_AMLOGIC 0x0a\n #define DRM_FORMAT_MOD_VENDOR_MIPI 0x0b\n #define DRM_FORMAT_MOD_VENDOR_RPI 0x0c\n+#define DRM_FORMAT_MOD_VENDOR_RENESAS 0x0d\n \n /* add more to the end as needed */\n \n@@ -1692,6 +1699,8 @@ drm_fourcc_canonicalize_nvidia_format_mod(__u64 modifier)\n #define PISP_FORMAT_MOD_COMPRESS_MODE1 fourcc_mod_code(RPI, 1)\n #define PISP_FORMAT_MOD_COMPRESS_MODE2 fourcc_mod_code(RPI, 2)\n \n+#define RENESAS_CRU_FORMAT_MOD_PACKED fourcc_mod_code(RENESAS, 1)\n+\n #if defined(__cplusplus)\n }\n #endif\n",
    "prefixes": [
        "02/10"
    ]
}