get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2220293,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2220293/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260406-gmsl2-3_serdes-v10-1-645560fedca5@analog.com/",
    "project": {
        "id": 42,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/42/?format=api",
        "name": "Linux GPIO development",
        "link_name": "linux-gpio",
        "list_id": "linux-gpio.vger.kernel.org",
        "list_email": "linux-gpio@vger.kernel.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20260406-gmsl2-3_serdes-v10-1-645560fedca5@analog.com>",
    "date": "2026-04-06T20:14:40",
    "name": "[v10,01/22] media: mc: Add INTERNAL pad flag",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "93d379bb8a215cc7a0ee18b600f5afbb164e2009",
    "submitter": {
        "id": 88270,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/88270/?format=api",
        "name": "Dumitru Ceclan via B4 Relay",
        "email": "devnull+dumitru.ceclan.analog.com@kernel.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260406-gmsl2-3_serdes-v10-1-645560fedca5@analog.com/mbox/",
    "series": [
        {
            "id": 498894,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/498894/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/list/?series=498894",
            "date": "2026-04-06T20:14:42",
            "name": "media: i2c: add Maxim GMSL2/3 serializer and deserializer drivers",
            "version": 10,
            "mbox": "http://patchwork.ozlabs.org/series/498894/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2220293/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2220293/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <linux-gpio+bounces-34723-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-gpio@vger.kernel.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=nMjq8TK2;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-gpio+bounces-34723-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"nMjq8TK2\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"
        ],
        "Received": [
            "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fqLHP0Q7Kz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 07 Apr 2026 06:18:09 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 2CD373035A56\n\tfor <incoming@patchwork.ozlabs.org>; Mon,  6 Apr 2026 20:15:32 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id C903F39DBDE;\n\tMon,  6 Apr 2026 20:15:21 +0000 (UTC)",
            "from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 74F8939C63E;\n\tMon,  6 Apr 2026 20:15:21 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPS id 3480CC19425;\n\tMon,  6 Apr 2026 20:15:21 +0000 (UTC)",
            "from aws-us-west-2-korg-lkml-1.web.codeaurora.org\n (localhost.localdomain [127.0.0.1])\n\tby smtp.lore.kernel.org (Postfix) with ESMTP id 1CE4BF46C78;\n\tMon,  6 Apr 2026 20:15:21 +0000 (UTC)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775506521; cv=none;\n b=I+bD9XsOaP7dwDBtxM6FQMpbV0CekCh8tQxC398ifpAiZwZVY2lj5kANkRWKckAp4Ir7S8ijRvKFqRVNqJHXPdmEQPjla5wuF6Lgb3D/Tl6C2ud4JcUpnA8Lo+kxJdL/AjRKXdbIgDRXu6HVCJWxxtkxTnwV8DqoMYF6DLJFa18=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775506521; c=relaxed/simple;\n\tbh=slk4MNgaSC+kx7c2W231pz1R1uk/0PZTCyNeXo53Hek=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=KrTC8DGHCRCQfpir6uuEQx/cCXoUTX0q9h0x/nuUMz+s6GFKbKNsuci+CazKD8eMBykN8vvadjzpErxh/Ck7mIn1x2qYnsn0UbrbNZJS8NVkorqxdS6deCsBDnitssw933r0VzzeUYHx+ypHjgp9qhZNTuzx0TdR7nEZQHydxCw=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=nMjq8TK2; arc=none smtp.client-ip=10.30.226.201",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1775506521;\n\tbh=slk4MNgaSC+kx7c2W231pz1R1uk/0PZTCyNeXo53Hek=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From;\n\tb=nMjq8TK24j3D63dSO4imLTwT3pwAmhb60Ugm2mOs7ntNshQls6p5RZG4gae+PG0Zc\n\t 3amAqPSDKhvw+DGuEdjUKhL0XX6295iNLWO8+5IQzWUnEwzJEjSKi9KRHpmdTxSqhc\n\t c5P2n+NgoB2roiYzadhAp63AibafVK6uKQ/1v4kZRPN34QL3A8dCtFS81XIiNQfeIy\n\t leCkMMmIWsE+aMjIJjOAjqRK6bNU/JW1eclG8rwJHrMaMQpUQL8FWw73/nfPHflNNX\n\t mcxoPjV4EhCN0GasxHJWWSB9PM/JYLBVk2oEEfaNNczCiHw1mZ/M+e+d2Uwtj+/UWM\n\t gV59807RTBRAg==",
        "From": "Dumitru Ceclan via B4 Relay\n <devnull+dumitru.ceclan.analog.com@kernel.org>",
        "Date": "Mon, 06 Apr 2026 23:14:40 +0300",
        "Subject": "[PATCH v10 01/22] media: mc: Add INTERNAL pad flag",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-gpio@vger.kernel.org",
        "List-Id": "<linux-gpio.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-gpio+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-gpio+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20260406-gmsl2-3_serdes-v10-1-645560fedca5@analog.com>",
        "References": "<20260406-gmsl2-3_serdes-v10-0-645560fedca5@analog.com>",
        "In-Reply-To": "<20260406-gmsl2-3_serdes-v10-0-645560fedca5@analog.com>",
        "To": "Tomi Valkeinen <tomi.valkeinen+renesas@ideasonboard.com>,\n  Mauro Carvalho Chehab <mchehab@kernel.org>,\n  Sakari Ailus <sakari.ailus@linux.intel.com>,\n  Laurent Pinchart <laurent.pinchart@ideasonboard.com>,\n  Julien Massot <julien.massot@collabora.com>, Rob Herring <robh@kernel.org>,\n\t=?utf-8?q?Niklas_S=C3=B6derlund?= <niklas.soderlund@ragnatech.se>,\n  Greg Kroah-Hartman <gregkh@linuxfoundation.org>,\n  Cosmin Tanislav <cosmin.tanislav@analog.com>",
        "Cc": "mitrutzceclan@gmail.com, linux-media@vger.kernel.org,\n  linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,\n  linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Nikla?=\n\t=?utf-8?q?s_S=C3=B6derlund?= <niklas.soderlund+renesas@ragnatech.se>,\n  Martin Hecht <Martin.Hecht@avnet.eu>,\n  Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>",
        "X-Mailer": "b4 0.14.3",
        "X-Developer-Signature": "v=1; a=ed25519-sha256; t=1775506518; l=4211;\n i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id;\n bh=AreK0kDB/CS0mvU6CVYiJXYgsOXsG4rDStXAaRX8fng=;\n b=+vIQLXVmK0Ie8XAN23rqnkTqkJO+5z+G1Q2Eg871gD5nkQ3ILglp2zgpZQy2noi7ZQyDponFo\n CG2Smw1YPWtBL3kupQZmSmYlSNBfXcoxTtXki4gCs7mHVV3r2zGaPtI",
        "X-Developer-Key": "i=dumitru.ceclan@analog.com; a=ed25519;\n pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo=",
        "X-Endpoint-Received": "by B4 Relay for dumitru.ceclan@analog.com/20240313\n with auth_id=140",
        "X-Original-From": "Dumitru Ceclan <dumitru.ceclan@analog.com>",
        "Reply-To": "dumitru.ceclan@analog.com"
    },
    "content": "From: Sakari Ailus <sakari.ailus@linux.intel.com>\n\nInternal sink pads will be used as routing endpoints in V4L2 [GS]_ROUTING\nIOCTLs, to indicate that the stream begins in the entity. Internal sink\npads are pads that have both SINK and INTERNAL flags set.\n\nAlso prevent creating links to pads that have been flagged as internal and\ninitialising SOURCE pads with INTERNAL flag set.\n\nSigned-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>\nReviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>\nReviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n .../userspace-api/media/mediactl/media-types.rst          |  9 +++++++++\n drivers/media/mc/mc-entity.c                              | 15 ++++++++++++---\n include/uapi/linux/media.h                                |  1 +\n 3 files changed, 22 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/Documentation/userspace-api/media/mediactl/media-types.rst b/Documentation/userspace-api/media/mediactl/media-types.rst\nindex 6332e8395263..200c37a1da26 100644\n--- a/Documentation/userspace-api/media/mediactl/media-types.rst\n+++ b/Documentation/userspace-api/media/mediactl/media-types.rst\n@@ -361,6 +361,7 @@ Types and flags used to represent the media graph elements\n .. _MEDIA-PAD-FL-SINK:\n .. _MEDIA-PAD-FL-SOURCE:\n .. _MEDIA-PAD-FL-MUST-CONNECT:\n+.. _MEDIA-PAD-FL-INTERNAL:\n \n .. flat-table:: Media pad flags\n     :header-rows:  0\n@@ -381,6 +382,14 @@ Types and flags used to represent the media graph elements\n \t  enabled links even when this flag isn't set; the absence of the flag\n \t  doesn't imply there is none.\n \n+    *  -  ``MEDIA_PAD_FL_INTERNAL``\n+       -  The internal flag indicates an internal pad that has no external\n+\t  connections. As they are internal to entities, internal pads shall not\n+\t  be connected with links.\n+\n+\t  The internal flag may currently be present only in a sink pad where it\n+\t  indicates that the :ref:``stream <media-glossary-stream>`` originates\n+\t  from within the entity.\n \n One and only one of ``MEDIA_PAD_FL_SINK`` and ``MEDIA_PAD_FL_SOURCE``\n must be set for every pad.\ndiff --git a/drivers/media/mc/mc-entity.c b/drivers/media/mc/mc-entity.c\nindex 9519a537bfa2..df20356fa98b 100644\n--- a/drivers/media/mc/mc-entity.c\n+++ b/drivers/media/mc/mc-entity.c\n@@ -209,11 +209,16 @@ int media_entity_pads_init(struct media_entity *entity, u16 num_pads,\n \t\tmutex_lock(&mdev->graph_mutex);\n \n \tmedia_entity_for_each_pad(entity, iter) {\n+\t\tconst u32 pad_flags = iter->flags & (MEDIA_PAD_FL_SINK |\n+\t\t\t\t\t\t     MEDIA_PAD_FL_SOURCE |\n+\t\t\t\t\t\t     MEDIA_PAD_FL_INTERNAL);\n+\n \t\titer->entity = entity;\n \t\titer->index = i++;\n \n-\t\tif (hweight32(iter->flags & (MEDIA_PAD_FL_SINK |\n-\t\t\t\t\t     MEDIA_PAD_FL_SOURCE)) != 1) {\n+\t\tif (pad_flags != MEDIA_PAD_FL_SINK &&\n+\t\t    pad_flags != (MEDIA_PAD_FL_SINK | MEDIA_PAD_FL_INTERNAL) &&\n+\t\t    pad_flags != MEDIA_PAD_FL_SOURCE) {\n \t\t\tret = -EINVAL;\n \t\t\tbreak;\n \t\t}\n@@ -1118,7 +1123,8 @@ int media_get_pad_index(struct media_entity *entity, u32 pad_type,\n \n \tfor (i = 0; i < entity->num_pads; i++) {\n \t\tif ((entity->pads[i].flags &\n-\t\t     (MEDIA_PAD_FL_SINK | MEDIA_PAD_FL_SOURCE)) != pad_type)\n+\t\t     (MEDIA_PAD_FL_SINK | MEDIA_PAD_FL_SOURCE |\n+\t\t      MEDIA_PAD_FL_INTERNAL)) != pad_type)\n \t\t\tcontinue;\n \n \t\tif (entity->pads[i].sig_type == sig_type)\n@@ -1148,6 +1154,9 @@ media_create_pad_link(struct media_entity *source, u16 source_pad,\n \t\treturn -EINVAL;\n \tif (WARN_ON(!(sink->pads[sink_pad].flags & MEDIA_PAD_FL_SINK)))\n \t\treturn -EINVAL;\n+\tif (WARN_ON(source->pads[source_pad].flags & MEDIA_PAD_FL_INTERNAL) ||\n+\t    WARN_ON(sink->pads[sink_pad].flags & MEDIA_PAD_FL_INTERNAL))\n+\t\treturn -EINVAL;\n \n \tlink = media_add_link(&source->links);\n \tif (link == NULL)\ndiff --git a/include/uapi/linux/media.h b/include/uapi/linux/media.h\nindex 1c80b1d6bbaf..80cfd12a43fc 100644\n--- a/include/uapi/linux/media.h\n+++ b/include/uapi/linux/media.h\n@@ -208,6 +208,7 @@ struct media_entity_desc {\n #define MEDIA_PAD_FL_SINK\t\t\t(1U << 0)\n #define MEDIA_PAD_FL_SOURCE\t\t\t(1U << 1)\n #define MEDIA_PAD_FL_MUST_CONNECT\t\t(1U << 2)\n+#define MEDIA_PAD_FL_INTERNAL\t\t\t(1U << 3)\n \n struct media_pad_desc {\n \t__u32 entity;\t\t/* entity ID */\n",
    "prefixes": [
        "v10",
        "01/22"
    ]
}