get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2227054,
    "url": "http://patchwork.ozlabs.org/api/patches/2227054/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/opensbi/patch/20260423052339.356900-3-anup.patel@oss.qualcomm.com/",
    "project": {
        "id": 67,
        "url": "http://patchwork.ozlabs.org/api/projects/67/?format=api",
        "name": "OpenSBI development",
        "link_name": "opensbi",
        "list_id": "opensbi.lists.infradead.org",
        "list_email": "opensbi@lists.infradead.org",
        "web_url": "https://github.com/riscv/opensbi",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": "https://github.com/riscv/opensbi/commit/{}"
    },
    "msgid": "<20260423052339.356900-3-anup.patel@oss.qualcomm.com>",
    "list_archive_url": null,
    "date": "2026-04-23T05:23:35",
    "name": "[2/6] lib: sbi_irqchip: Keep the handler list in sorted order for irqchip",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "b5a1cefc9b50fb10e36023df605576a0ff1cbb68",
    "submitter": {
        "id": 92322,
        "url": "http://patchwork.ozlabs.org/api/people/92322/?format=api",
        "name": "Anup Patel",
        "email": "anup.patel@oss.qualcomm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/opensbi/patch/20260423052339.356900-3-anup.patel@oss.qualcomm.com/mbox/",
    "series": [
        {
            "id": 501146,
            "url": "http://patchwork.ozlabs.org/api/series/501146/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/opensbi/list/?series=501146",
            "date": "2026-04-23T05:23:35",
            "name": "Extend irqchip framework for MSIs and line sensing",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501146/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2227054/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2227054/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=lists.infradead.org header.i=@lists.infradead.org\n header.a=rsa-sha256 header.s=bombadil.20210309 header.b=UWLs/JyA;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=lDzFo5nA;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=none (no SPF record) smtp.mailfrom=lists.infradead.org\n (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;\n envelope-from=opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from bombadil.infradead.org (bombadil.infradead.org\n [IPv6:2607:7c80:54:3::133])\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 4g1Pf24zcpz1yGs\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 15:24:09 +1000 (AEST)",
            "from localhost ([::1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wFmXZ-0000000B3iH-2Iby;\n\tThu, 23 Apr 2026 05:23:53 +0000",
            "from mx0b-0031df01.pphosted.com ([205.220.180.131])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wFmXW-0000000B3hw-3PhT\n\tfor opensbi@lists.infradead.org;\n\tThu, 23 Apr 2026 05:23:52 +0000",
            "from pps.filterd (m0279871.ppops.net [127.0.0.1])\n\tby mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 63N3VG551587834;\n\tThu, 23 Apr 2026 05:23:45 GMT",
            "from apblrppmta01.qualcomm.com\n (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19])\n\tby mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dq1hq28kn-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tThu, 23 Apr 2026 05:23:45 +0000 (GMT)",
            "from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1])\n\tby APBLRPPMTA01.qualcomm.com (8.18.1.7/8.18.1.7) with ESMTP id\n 63N5NgIh007148;\n\tThu, 23 Apr 2026 05:23:42 GMT",
            "from pps.reinject (localhost [127.0.0.1])\n\tby APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 4dm31jyv1q-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tThu, 23 Apr 2026 05:23:42 +0000 (GMT)",
            "from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com\n [127.0.0.1])\n\tby pps.reinject (8.18.1.12/8.18.1.12) with ESMTP id 63N5NfvE007120;\n\tThu, 23 Apr 2026 05:23:41 GMT",
            "from hu-devc-blr-u24-a.qualcomm.com (hu-anuppate-blr.qualcomm.com\n [10.131.36.165])\n\tby APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 63N5NfsA007115\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tThu, 23 Apr 2026 05:23:41 +0000 (GMT)",
            "by hu-devc-blr-u24-a.qualcomm.com (Postfix, from userid 486687)\n\tid F2A08222E4; Thu, 23 Apr 2026 10:53:40 +0530 (+0530)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20210309; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:\n\tMessage-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=uraWXqCbkNvxs5QsvYroxx3WOASTWQCEfehHBSOnVWQ=; b=UWLs/JyALasFoB\n\t5Hx/hY47zrUAk/s8b/53f7Lt75P7FvwoN9I0ouC4zX7M9cgfYQ4vpG10/b9x7o6GKSNX5O9Op/Nk0\n\tgssW7cKp+nXrVMrxIkkBYsXWZ/eQkmOH7hYydYsbLZc84usTseVMfsmPQoMz/+Skp6FXrIbaxf75J\n\ttZ7krAzu7fldA+4zvy7+O6F4lluN4U97m0rtVBBVRtBqLT+2UGcBdCf5ahYnIqTKxmgIEC00yJnaq\n\twngfWVa+mUQFdPT1UE5lYil6ILehkBrpXlJ5ngAIfE+/Zw2EYgiYbNesS+yP36NKsBmaaoRl9V80a\n\ttZDnuqDYMkeEJSRSuXXQ==;",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=\n\tcc:content-transfer-encoding:date:from:in-reply-to:message-id\n\t:mime-version:references:subject:to; s=qcppdkim1; bh=fkJzGoh1Kp1\n\tM2NHTOstIhYyYwIwMnJR7A3Wp0EDtVbo=; b=lDzFo5nA3X0qhLa4DmYjhHXUGG7\n\tJu8EJLEmzQm7YLInZhC3RhHI6QjrICbadQY6PyCEDyNYNrYcLf5d5fRsfMqeScJl\n\t00195r1bZOnswy62crvCXiwCj5NcNkebP9NUa8ArtZQ5GxNSbGBZtToqlJdL0b26\n\t9G9p7SUKNg8NX9Tia5gvbyNwOsYxDOuXGCdL4Sq5TPZ93jxoiH3DyXfHMT6uCZBo\n\t5IOJQW9L6mLkEEyipPOnGKABiwF0tjdnpNfr+XR4bCy5IfDuKH7mycVLNd2LUmGz\n\tleeKneRlfJPNL1Sx6Nt+VwBwRcmTSxiHiRI+09/laLYvVtX6Gon/S9IqM3g=="
        ],
        "From": "Anup Patel <anup.patel@oss.qualcomm.com>",
        "To": "Atish Patra <atish.patra@linux.dev>",
        "Cc": "Andrew Jones <andrew.jones@oss.qualcomm.com>,\n        Raymond Mao <raymond.mao@riscstar.com>,\n        Dave Patel <dave.patel@riscstar.com>,\n        Evgeny Voevodin <evvoevod@tenstorrent.com>,\n        Samuel Holland <samuel.holland@sifive.com>,\n        Anup Patel <anup@brainfault.org>, opensbi@lists.infradead.org,\n        Anup Patel <anup.patel@oss.qualcomm.com>",
        "Subject": "[PATCH 2/6] lib: sbi_irqchip: Keep the handler list in sorted order\n for irqchip",
        "Date": "Thu, 23 Apr 2026 10:53:35 +0530",
        "Message-ID": "<20260423052339.356900-3-anup.patel@oss.qualcomm.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260423052339.356900-1-anup.patel@oss.qualcomm.com>",
        "References": "<20260423052339.356900-1-anup.patel@oss.qualcomm.com>",
        "MIME-Version": "1.0",
        "X-QCInternal": [
            "smtphost",
            "smtphost"
        ],
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNDIzMDA0NyBTYWx0ZWRfX3sZA5iRCCyab\n deoNgco2tdDVUM3AStIelISyDRZn30IiCIvXqW/Za+oqf4bmVgBy/eQrVwZnSo7aaJzHUkXUx8c\n Mxfmc25JTIWOoLm5yYessaZKV8kRD8KbUAC3Dat0pJT3fL7WPmt2pAzY0xKbvrKmpf9GWnDbxRK\n dC7qQCyetb4ANPwnD5xflRH9aJb/5uWFh03erx60I2zwtoIt/mh0LPqu0Ni4eLkstaOwWcosSXG\n W5DTI3fnQEbrGAywXIwfxEDEoVQg5ffTjuXcrwQgrZY9sIep7l1XbwC/EmFfLloTEeTl9/OTLew\n 5oe/Xj1RW8kyt/qPjPgS+rWASLJ6RgWIeeZzTTH6JWuDg+yUKp7CGxPIP7LdL9xlwz3Qnjoizc/\n mICIV++9RIk2ltCw1v8dWAb1wDEerj4PXZiAmpkHGt6N8FUDR5U7CrNjZ/Q/drFegB8G6fbAlyj\n D/XcSPJX1rMMy4ZrS5g==",
        "X-Proofpoint-ORIG-GUID": "lOBK3yq1pAJYSfCDnav6ZjITy9gSVI1l",
        "X-Proofpoint-GUID": "lOBK3yq1pAJYSfCDnav6ZjITy9gSVI1l",
        "X-Authority-Analysis": "v=2.4 cv=TJt1jVla c=1 sm=1 tr=0 ts=69e9ace1 cx=c_pps\n a=Ou0eQOY4+eZoSc0qltEV5Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17\n a=A5OVakUREuEA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22\n a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=DHE891H7Gske2VlohvUA:9",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-04-23_01,2026-04-21_02,2025-10-01_01",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n adultscore=0 spamscore=0 priorityscore=1501 phishscore=0 clxscore=1011\n malwarescore=0 bulkscore=0 lowpriorityscore=0 impostorscore=0 suspectscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2604200000 definitions=main-2604230047",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20260422_222350_971037_7E7A6449 ",
        "X-CRM114-Status": "GOOD (  12.62  )",
        "X-Spam-Score": "-2.7 (--)",
        "X-Spam-Report": "Spam detection software,\n running on the system \"bombadil.infradead.org\",\n has NOT identified this incoming email as spam.  The original\n message has been attached to this so you can view it or label\n similar future email.  If you have any questions, see\n the administrator of that system for details.\n Content preview:  Let's keep the handler list in sorted order for irqchip so\n    that it is easier to allocate unused hardware interrupts based on the\n sorted\n    list. Signed-off-by: Anup Patel <anup.patel@oss.qualcomm.com> ---\n lib/sbi/sbi_irqchip.c\n    | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-)\n Content analysis details:   (-2.7 points, 5.0 required)\n  pts rule name              description\n ---- ----------------------\n --------------------------------------------------\n -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at https://www.dnswl.org/, low\n                             trust\n                             [205.220.180.131 listed in list.dnswl.org]\n  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record\n -0.0 SPF_PASS               SPF: sender matches SPF record\n -0.1 DKIM_VALID             Message has at least one valid DKIM or DK\n signature\n -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from\n                             envelope-from domain\n  0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n not necessarily valid\n -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n                             [score: 0.0000]",
        "X-BeenThere": "opensbi@lists.infradead.org",
        "X-Mailman-Version": "2.1.34",
        "Precedence": "list",
        "List-Id": "<opensbi.lists.infradead.org>",
        "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/opensbi>,\n <mailto:opensbi-request@lists.infradead.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.infradead.org/pipermail/opensbi/>",
        "List-Post": "<mailto:opensbi@lists.infradead.org>",
        "List-Help": "<mailto:opensbi-request@lists.infradead.org?subject=help>",
        "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/opensbi>,\n <mailto:opensbi-request@lists.infradead.org?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "\"opensbi\" <opensbi-bounces@lists.infradead.org>",
        "Errors-To": "opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"
    },
    "content": "Let's keep the handler list in sorted order for irqchip so that\nit is easier to allocate unused hardware interrupts based on the\nsorted list.\n\nSigned-off-by: Anup Patel <anup.patel@oss.qualcomm.com>\n---\n lib/sbi/sbi_irqchip.c | 15 +++++++++++++--\n 1 file changed, 13 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/lib/sbi/sbi_irqchip.c b/lib/sbi/sbi_irqchip.c\nindex 503958e1..f9e2eb5a 100644\n--- a/lib/sbi/sbi_irqchip.c\n+++ b/lib/sbi/sbi_irqchip.c\n@@ -139,7 +139,7 @@ int sbi_irqchip_register_handler(struct sbi_irqchip_device *chip,\n \t\t\t\t u32 first_hwirq, u32 num_hwirq,\n \t\t\t\t int (*callback)(u32 hwirq, void *opaque), void *priv)\n {\n-\tstruct sbi_irqchip_handler *h;\n+\tstruct sbi_irqchip_handler *h, *th, *nh;\n \tu32 i, j;\n \tint rc;\n \n@@ -162,7 +162,18 @@ int sbi_irqchip_register_handler(struct sbi_irqchip_device *chip,\n \th->num_hwirq = num_hwirq;\n \th->callback = callback;\n \th->priv = priv;\n-\tsbi_list_add_tail(&h->node, &chip->handler_list);\n+\n+\tnh = NULL;\n+\tsbi_list_for_each_entry(th, &chip->handler_list, node) {\n+\t\tif (h->first_hwirq < th->first_hwirq) {\n+\t\t\tnh = th;\n+\t\t\tbreak;\n+\t\t}\n+\t}\n+\tif (nh)\n+\t\tsbi_list_add(&h->node, &nh->node);\n+\telse\n+\t\tsbi_list_add_tail(&h->node, &chip->handler_list);\n \n \tif (chip->hwirq_setup) {\n \t\tfor (i = 0; i < h->num_hwirq; i++) {\n",
    "prefixes": [
        "2/6"
    ]
}