Show a patch.

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

{
    "id": 3740,
    "url": "https://patchwork.libcamera.org/api/patches/3740/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/3740/",
    "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": "<20200510115810.21938-2-laurent.pinchart@ideasonboard.com>",
    "date": "2020-05-10T11:58:05",
    "name": "[libcamera-devel,v5,1/6] include: linux: Extend VIDIOC_ENUM_FMT to support MC-centric devices",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "40c8952a1fc47416bbdf37ebc8324f357e8513ae",
    "submitter": {
        "id": 2,
        "url": "https://patchwork.libcamera.org/api/people/2/?format=api",
        "name": "Laurent Pinchart",
        "email": "laurent.pinchart@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/3740/mbox/",
    "series": [
        {
            "id": 890,
            "url": "https://patchwork.libcamera.org/api/series/890/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=890",
            "date": "2020-05-10T11:58:04",
            "name": "Simple pipeline handler",
            "version": 5,
            "mbox": "https://patchwork.libcamera.org/series/890/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/3740/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/3740/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<laurent.pinchart@ideasonboard.com>",
        "Received": [
            "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 B38D860BDC\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSun, 10 May 2020 13:58:20 +0200 (CEST)",
            "from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi\n\t[81.175.216.236])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id E96C673E;\n\tSun, 10 May 2020 13:58:19 +0200 (CEST)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"MiOsq26V\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1589111900;\n\tbh=AqHTyIgG4uJULpInqC95U3DCKIG3ZeY0cyXDPh3EdnE=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=MiOsq26VELgiOZS/ddX0hWLnuyC3emIZKQSjPtQGmhq7VQEG9hJlrOQ7n6V6dVO/Y\n\tC3euzoz32ysbthmfjAV4eLs/r5SoTHcFZQ6j/n3b/5xPDq5cfrf1ZrT3ROpx5YtMWL\n\tLvAXRuvRbGS2it5AiCIUQkj8K/E8XPQSRtVtrhiA=",
        "From": "Laurent Pinchart <laurent.pinchart@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Cc": "Martijn Braam <martijn@brixit.nl>",
        "Date": "Sun, 10 May 2020 14:58:05 +0300",
        "Message-Id": "<20200510115810.21938-2-laurent.pinchart@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.26.2",
        "In-Reply-To": "<20200510115810.21938-1-laurent.pinchart@ideasonboard.com>",
        "References": "<20200510115810.21938-1-laurent.pinchart@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH v5 1/6] include: linux: Extend\n\tVIDIOC_ENUM_FMT to support MC-centric devices",
        "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>",
        "X-List-Received-Date": "Sun, 10 May 2020 11:58:20 -0000"
    },
    "content": "This integrates the Linux kernel upstream commits e5b6b07a1b45 (\"media:\nv4l2: Extend VIDIOC_ENUM_FMT to support MC-centric devices\") and\nf645e6256bd1 (\"media: v4l2-dev/ioctl: Add V4L2_CAP_IO_MC\") that are\nscheduled for v5.8.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n include/linux/videodev2.h | 5 ++++-\n 1 file changed, 4 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h\nindex ab40b3272ed2..66f34fc05e3e 100644\n--- a/include/linux/videodev2.h\n+++ b/include/linux/videodev2.h\n@@ -476,6 +476,8 @@ struct v4l2_capability {\n \n #define V4L2_CAP_TOUCH                  0x10000000  /* Is a touch device */\n \n+#define V4L2_CAP_IO_MC\t\t\t0x20000000  /* Is input/output controlled by the media controller */\n+\n #define V4L2_CAP_DEVICE_CAPS            0x80000000  /* sets device capabilities field */\n \n /*\n@@ -769,7 +771,8 @@ struct v4l2_fmtdesc {\n \t__u32               flags;\n \t__u8\t\t    description[32];   /* Description string */\n \t__u32\t\t    pixelformat;       /* Format fourcc      */\n-\t__u32\t\t    reserved[4];\n+\t__u32\t\t    mbus_code;\t\t/* Media bus code    */\n+\t__u32\t\t    reserved[3];\n };\n \n #define V4L2_FMT_FLAG_COMPRESSED\t\t0x0001\n",
    "prefixes": [
        "libcamera-devel",
        "v5",
        "1/6"
    ]
}