get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2223203,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2223203/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/177618728515.4917.14466194789826252277-8@git.sr.ht/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/14/?format=api",
        "name": "QEMU Development",
        "link_name": "qemu-devel",
        "list_id": "qemu-devel.nongnu.org",
        "list_email": "qemu-devel@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<177618728515.4917.14466194789826252277-8@git.sr.ht>",
    "date": "2026-04-07T14:11:43",
    "name": "[qemu,v3,08/10] ot_uart: update file headers with new authorship and documentation URL",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "6a3344ae9f4678639ec6b503c8145508f364505e",
    "submitter": {
        "id": 92675,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/92675/?format=api",
        "name": "~lexbaileylowrisc",
        "email": "lexbaileylowrisc@git.sr.ht"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/177618728515.4917.14466194789826252277-8@git.sr.ht/mbox/",
    "series": [
        {
            "id": 499878,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/499878/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=499878",
            "date": "2026-04-14T17:21:25",
            "name": "Update opentitan uart (part of supporting opentitan version 1)",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/499878/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2223203/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2223203/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=fail reason=\"key not found in DNS\" header.d=git.sr.ht\n header.i=@git.sr.ht header.a=rsa-sha256 header.s=20240113 header.b=bONWszH4;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fwB1y69Cdz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 15 Apr 2026 03:23:18 +1000 (AEST)",
            "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wChSJ-0005v9-MO; Tue, 14 Apr 2026 13:21:43 -0400",
            "from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <outgoing@sr.ht>)\n id 1wChSE-0005sU-8r; Tue, 14 Apr 2026 13:21:40 -0400",
            "from mail-a.sr.ht ([46.23.81.152])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <outgoing@sr.ht>)\n id 1wChSB-0007Km-IP; Tue, 14 Apr 2026 13:21:37 -0400",
            "from git.sr.ht (unknown [46.23.81.155])\n by mail-a.sr.ht (Postfix) with ESMTPSA id 8565520A3C;\n Tue, 14 Apr 2026 17:21:26 +0000 (UTC)"
        ],
        "DKIM-Signature": "a=rsa-sha256; bh=PlhA+f2IZd8IcCVPTtjXpKLc7zQX/PWU3bGKcmfeaoo=;\n c=simple/simple; d=git.sr.ht;\n h=From:Date:Subject:Reply-to:In-Reply-To:To:Cc; q=dns/txt; s=20240113;\n t=1776187286; v=1;\n b=bONWszH4bPsmkZVggR2/HXX05iKpe0UN7E0iR4Dq/8dfunv6piZavjwbkYsxRYYLEMDI9W1I\n v35X92xmujPsSghdaOC50PpOiOY6uSCGuZqbAFnW6/d8l629NzzV1ikLcboOv9XExjNUKoK3or3\n dmMnL4kqva+WUgv4iv/f7jriFQW02pBCRmYplne+O3ikgDaMmxtVqaZWpWB/fcIxqguM19LsksD\n c3xwYjoIPL0m/eVK/j4j8H/Ky4GQktf7zDtHDflGiKjvYI0bxuTJ8qspL5m3nu/GaCq01/12B7M\n RZa9kvQMWHG6QXHoH8naavRZaWmWkCNQYJNWAP7bwjMvA==",
        "From": "~lexbaileylowrisc <lexbaileylowrisc@git.sr.ht>",
        "Date": "Tue, 07 Apr 2026 15:11:43 +0100",
        "Subject": "[PATCH qemu v3 08/10] ot_uart: update file headers with new\n authorship and documentation URL",
        "Message-ID": "<177618728515.4917.14466194789826252277-8@git.sr.ht>",
        "X-Mailer": "git.sr.ht",
        "In-Reply-To": "<177618728515.4917.14466194789826252277-0@git.sr.ht>",
        "To": "qemu-riscv@nongnu.org, Alistair Francis <Alistair.Francis@wdc.com>",
        "Cc": "Paolo Bonzini <pbonzini@redhat.com>,\n =?utf-8?q?Marc-Andr=C3=A9?= Lureau <marcandre.lureau@redhat.com>,\n Palmer Dabbelt <palmer@dabbelt.com>, Weiwei Li <liwei1518@gmail.com>,\n Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com>,\n Liu Zhiwei <zhiwei_liu@linux.alibaba.com>,\n Chao Liu <chao.liu.zevorn@gmail.com>, qemu-devel@nongnu.org,\n qemu-riscv@nongnu.org, Amit Kumar-Hermosillo <amitkh@google.com>,\n nabihestefan <nabihestefan@google.com>",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "quoted-printable",
        "MIME-Version": "1.0",
        "Received-SPF": "pass client-ip=46.23.81.152; envelope-from=outgoing@sr.ht;\n helo=mail-a.sr.ht",
        "X-Spam_score_int": "17",
        "X-Spam_score": "1.7",
        "X-Spam_bar": "+",
        "X-Spam_report": "(1.7 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_96_XX=3.405,\n DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,\n RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=no autolearn_force=no",
        "X-Spam_action": "no action",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "qemu development <qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>",
        "List-Post": "<mailto:qemu-devel@nongnu.org>",
        "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Reply-To": "~lexbaileylowrisc <lex.bailey@lowrisc.org>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"
    },
    "content": "From: Lex Bailey <lex.bailey@lowrisc.org>\n\nThe documentation has moved, URL updated.\nThis file is now a combination of code from various people/organisations.\nTook the opportunity while editing this to switch to just using\nthe SPDX ID.\n\nSigned-off-by: Lex Bailey <lex.bailey@lowrisc.org>\n---\n hw/char/ot_uart.c         | 24 ++++++++----------------\n include/hw/char/ot_uart.h | 25 ++++++++++---------------\n 2 files changed, 18 insertions(+), 31 deletions(-)",
    "diff": "diff --git a/hw/char/ot_uart.c b/hw/char/ot_uart.c\nindex cdf02da62b..d00f7bee66 100644\n--- a/hw/char/ot_uart.c\n+++ b/hw/char/ot_uart.c\n@@ -2,27 +2,19 @@\n  * QEMU OpenTitan UART device\n  *\n  * Copyright (c) 2020 Western Digital\n+ * Copyright (c) 2022-2025 Rivos, Inc.\n+ * Copyright (c) 2025-2026 lowRISC contributors.\n  *\n  * For details check the documentation here:\n- *    https://docs.opentitan.org/hw/ip/uart/doc/\n+ *    https://opentitan.org/book/hw/ip/uart/doc/\n  *\n- * Permission is hereby granted, free of charge, to any person obtaining a copy\n- * of this software and associated documentation files (the \"Software\"), to deal\n- * in the Software without restriction, including without limitation the rights\n- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n- * copies of the Software, and to permit persons to whom the Software is\n- * furnished to do so, subject to the following conditions:\n+ * Author(s):\n+ *  Alistair Francis <alistair.francis@wdc.com>\n+ *  Loïc Lefort <loic@rivosinc.com>\n+ *  Lex Bailey <lex.bailey@lowrisc.com>\n  *\n- * The above copyright notice and this permission notice shall be included in\n- * all copies or substantial portions of the Software.\n+ * SPDX-License-Identifier: MIT\n  *\n- * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\n- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n- * THE SOFTWARE.\n  */\n \n #include \"qemu/osdep.h\"\ndiff --git a/include/hw/char/ot_uart.h b/include/hw/char/ot_uart.h\nindex 997bf2f367..4dc51142f7 100644\n--- a/include/hw/char/ot_uart.h\n+++ b/include/hw/char/ot_uart.h\n@@ -2,24 +2,19 @@\n  * QEMU OpenTitan UART device\n  *\n  * Copyright (c) 2020 Western Digital\n+ * Copyright (c) 2022-2025 Rivos, Inc.\n+ * Copyright (c) 2025-2026 lowRISC contributors.\n  *\n- * Permission is hereby granted, free of charge, to any person obtaining a copy\n- * of this software and associated documentation files (the \"Software\"), to deal\n- * in the Software without restriction, including without limitation the rights\n- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n- * copies of the Software, and to permit persons to whom the Software is\n- * furnished to do so, subject to the following conditions:\n+ * For details check the documentation here:\n+ *    https://opentitan.org/book/hw/ip/uart/doc/\n  *\n- * The above copyright notice and this permission notice shall be included in\n- * all copies or substantial portions of the Software.\n+ * Author(s):\n+ *  Alistair Francis <alistair.francis@wdc.com>\n+ *  Loïc Lefort <loic@rivosinc.com>\n+ *  Lex Bailey <lex.bailey@lowrisc.com>\n+ *\n+ * SPDX-License-Identifier: MIT\n  *\n- * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\n- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n- * THE SOFTWARE.\n  */\n \n #ifndef HW_OT_UART_H\n",
    "prefixes": [
        "qemu",
        "v3",
        "08/10"
    ]
}