get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2227055,
    "url": "http://patchwork.ozlabs.org/api/patches/2227055/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/opensbi/patch/20260423052339.356900-2-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-2-anup.patel@oss.qualcomm.com>",
    "list_archive_url": null,
    "date": "2026-04-23T05:23:34",
    "name": "[1/6] lib: sbi_irqchip: Check full range for existing handlers in sbi_irqchip_register_handler()",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "86f758cbf15a048558f1028429d634a6f54aaa84",
    "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-2-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/2227055/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2227055/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=VBXSQj1r;\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=CzUg820M;\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 4g1Pf251Nzz1yHy\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 1wFmXc-0000000B3j6-3RfP;\n\tThu, 23 Apr 2026 05:23:56 +0000",
            "from mx0a-0031df01.pphosted.com ([205.220.168.131])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wFmXa-0000000B3iO-3PbG\n\tfor opensbi@lists.infradead.org;\n\tThu, 23 Apr 2026 05:23:56 +0000",
            "from pps.filterd (m0279862.ppops.net [127.0.0.1])\n\tby mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 63N3HeFD3173113;\n\tThu, 23 Apr 2026 05:23:46 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 4dq1m3283j-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 63N5NgWA007147;\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 4dm31jyv1s-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 63N5NftZ007122;\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 63N5Nfq6007116\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 EEEC02146E; 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=0l2PCt5TR9yMdNS0K/ZBTIWp+zELdvbsb4LAAagaeCg=; b=VBXSQj1rd2ZyO5\n\tjBB+wUSfbnHjG5eSkgEVfyL9uGZXjav182lkvfElH0waCYBJrS4JUlyzI7uQ3HMGzhbkHOthUWuay\n\tWtBn2aNPH6wMOn1890fShU+1OyXTV8fjqvKP4TUT/q5NHijDnyftt8oiuvdSSHfHpaigOOxO0PNu9\n\tI3GWYpgSOtYb4K5Mh/C4IqLdggl1YY/8M2Utf6bFTEmsqZn4Qs1rAPOUVTRnQq+rMPjFddGyIftD6\n\tI8Xx4pfAjFxCw9QZ7dTPfSb5hUw8QE168i0OuoyVpeTDb/ZwW76BJWPGaGtT9wpgws4apHjK+XMrF\n\t9a4c1rQrnewZcWU2CZNA==;",
            "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=dSmeb8hslRP\n\tak9h1rK8mZZGr3+ZmMysGtvwf0sAm7lo=; b=CzUg820MtxGp+K7JTJpZ4ilqfnR\n\tPduasGIzria5TARk6X3YuI93s6l6Sj9lwJ99jgPllyjFds9MCVz6p6f/VxpVLtER\n\tz9VZFCuWJHjxg9k0bLtyWYCgpkZodwlNBoyWs7QNxThjcGe6WoeddP00xWQlkZ4h\n\trw6JZFNa+sjOl3tz65FtUMrvuf605GDAwpKSLrgEaQQEdgo4RAOS4q36bXM4/DsO\n\t3xpSoJUAcUjS3xTJw1ENZzxO5MpcpMDIkNI1/fz2vUu/unuCdPezjrwYez1oOOos\n\tg1gbAxRM+qiZvyGFcrg/2iHKs5k3unlTUjrMesdEdF8o5oM+8P9M6S8sP9w=="
        ],
        "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 1/6] lib: sbi_irqchip: Check full range for existing handlers\n in sbi_irqchip_register_handler()",
        "Date": "Thu, 23 Apr 2026 10:53:34 +0530",
        "Message-ID": "<20260423052339.356900-2-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-ORIG-GUID": "l1deNhnrH_Wa2euu6ObDMqDinvmMWrtS",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNDIzMDA0NyBTYWx0ZWRfX+2PCJvkOqH+a\n Sywq06q//4/gp5WGsrQvbxk2MJJbHItADjMDNB2DaaVBCyRmeeS8Loq93w00rsmXn6QCj+waL/x\n Q2swIOMKdDbpdzLgAcEKFYTNbnN6LDFwbr9X5i3Ffm5BuHMBXXvtlz/1F/2l7Lt+FzJjk29Kwwj\n V2nzJCqkWEnjuLeUX/UGIE/Eb3usptIAvL0Z1kGaKC2mKUgqoGr5PXJS0T7m11nw+mDb15Yt9r3\n yYDYmq74tap0HC5B7mBKNOydiTx7el5f9DcBWJRAUfCbycel4yWTnf6GoyKSMPhTZRkoBazfkki\n Cq8m7nlf5Zkik9TQ1/ZILRR0LjAFtYlQiutebl7/aSnelca0O7twNbYdLMq4o6KIbAM5MxQ8DEP\n Bzp6sk850etRXP2JhGmanZcNnJiWPeopmd/na0BMOaaCxNnuqaxwWPWb96hCS2G/3GWifC3YlPf\n BK5UbDEABQJDdjxVESg==",
        "X-Authority-Analysis": "v=2.4 cv=PsOjqQM3 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=_K5XuSEh1TEqbUxoQ0s3:22 a=EUspDBNiAAAA:8 a=uvnXrKUwWFJ4GUwoRRsA:9",
        "X-Proofpoint-GUID": "l1deNhnrH_Wa2euu6ObDMqDinvmMWrtS",
        "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 phishscore=0 suspectscore=0 lowpriorityscore=0\n priorityscore=1501 impostorscore=0 clxscore=1011 bulkscore=0 malwarescore=0\n spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound\n adjust=0 reason=mlx scancount=1 engine=8.22.0-2604200000\n definitions=main-2604230047",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20260422_222354_875361_C81EBC90 ",
        "X-CRM114-Status": "GOOD (  10.69  )",
        "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:  Currently, the sbi_irqchip_register_handler() only checks\n   the first and the last hardware interrupt for existing handlers which is\n buggy\n    because there may be existing handlers between the first and th [...]\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.168.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": "Currently, the sbi_irqchip_register_handler() only checks the first and the\nlast hardware interrupt for existing handlers which is buggy because there\nmay be existing handlers between the first and the last hardware interrupt.\n\nFixes: 0ab0c470d588 (\"lib: sbi_irqchip: Allow registering interrupt handlers\")\nSigned-off-by: Anup Patel <anup.patel@oss.qualcomm.com>\n---\n lib/sbi/sbi_irqchip.c | 11 +++++------\n 1 file changed, 5 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/lib/sbi/sbi_irqchip.c b/lib/sbi/sbi_irqchip.c\nindex f0744830..503958e1 100644\n--- a/lib/sbi/sbi_irqchip.c\n+++ b/lib/sbi/sbi_irqchip.c\n@@ -149,12 +149,11 @@ int sbi_irqchip_register_handler(struct sbi_irqchip_device *chip,\n \t    chip->num_hwirq <= (first_hwirq + num_hwirq - 1))\n \t\treturn SBI_EBAD_RANGE;\n \n-\th = sbi_irqchip_find_handler(chip, first_hwirq);\n-\tif (h)\n-\t\treturn SBI_EALREADY;\n-\th = sbi_irqchip_find_handler(chip, first_hwirq + num_hwirq - 1);\n-\tif (h)\n-\t\treturn SBI_EALREADY;\n+\tfor (i = first_hwirq; i < (first_hwirq + num_hwirq); i++) {\n+\t\th = sbi_irqchip_find_handler(chip, i);\n+\t\tif (h)\n+\t\t\treturn SBI_EALREADY;\n+\t}\n \n \th = sbi_zalloc(sizeof(*h));\n \tif (!h)\n",
    "prefixes": [
        "1/6"
    ]
}