get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2217304,
    "url": "http://patchwork.ozlabs.org/api/patches/2217304/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260327212547.460420-3-pbonzini@redhat.com/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/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": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260327212547.460420-3-pbonzini@redhat.com>",
    "list_archive_url": null,
    "date": "2026-03-27T21:25:33",
    "name": "[02/16] lsi53c895a: do not do anything else is a reset is requested by writing ISTAT0",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "0cdb50d42da386e10b164e68b9cdd5c46a7cd73c",
    "submitter": {
        "id": 2701,
        "url": "http://patchwork.ozlabs.org/api/people/2701/?format=api",
        "name": "Paolo Bonzini",
        "email": "pbonzini@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260327212547.460420-3-pbonzini@redhat.com/mbox/",
    "series": [
        {
            "id": 497830,
            "url": "http://patchwork.ozlabs.org/api/series/497830/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=497830",
            "date": "2026-03-27T21:25:35",
            "name": "Reentrancy fixes for lsi53c895a, and cleanups to ncr710",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/497830/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2217304/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2217304/checks/",
    "tags": {},
    "related": [],
    "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=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=XdLPOvEw;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=google header.b=IxmJJrM7;\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=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from lists.gnu.org (lists.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 4fjDHs61l2z1y1x\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 28 Mar 2026 08:27:21 +1100 (AEDT)",
            "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1w6Eh2-0002nX-SD; Fri, 27 Mar 2026 17:26:12 -0400",
            "from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <pbonzini@redhat.com>)\n id 1w6Eh1-0002mz-OM\n for qemu-devel@nongnu.org; Fri, 27 Mar 2026 17:26:11 -0400",
            "from us-smtp-delivery-124.mimecast.com ([170.10.129.124])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <pbonzini@redhat.com>)\n id 1w6Eh0-0003ZH-Cz\n for qemu-devel@nongnu.org; Fri, 27 Mar 2026 17:26:11 -0400",
            "from mail-wm1-f71.google.com (mail-wm1-f71.google.com\n [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-689-xb1ssxpIN-C3VSlnInsv4g-1; Fri, 27 Mar 2026 17:26:08 -0400",
            "by mail-wm1-f71.google.com with SMTP id\n 5b1f17b1804b1-4853466655dso10106695e9.3\n for <qemu-devel@nongnu.org>; Fri, 27 Mar 2026 14:26:07 -0700 (PDT)",
            "from [192.168.10.48] ([151.49.85.67])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-4873068858bsm6251665e9.9.2026.03.27.14.25.59\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 27 Mar 2026 14:26:00 -0700 (PDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1774646769;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=zFuDFxFNBz8vOIyKGhG3CH3xVbSczlhaNd9Na1ywSeg=;\n b=XdLPOvEwosTVwZ9qPP9Wqblh7u0GwpTAyl70GFjfvPKiFoVNXWRVSwSac3ptIBilNQixzG\n po/mtO0CP4u7xg30kFAZDH37DF85alBhpsEKGzknkRHicIHK4sis4Qv38hcK80vonEKqcB\n vgmXKaLxt6uXhTFw2MYdMFbkGWhiW3M=",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=redhat.com; s=google; t=1774646765; x=1775251565; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=zFuDFxFNBz8vOIyKGhG3CH3xVbSczlhaNd9Na1ywSeg=;\n b=IxmJJrM7LolAv7QTDnSCejukZ+ES7R8UdGyklccecEWiq0cnhYtddC9IxfttIEWzjB\n rs75THSrmUczZ2DckbnOmsxTRwISXKrdUkRJQnj5i0VdUFY3GwEnbilwaWBhOgFjM6mf\n o1x3vn8pWpA/JjeIrpXgwaGM/q6H2RpOw9px7hlDRc0AUyhGUPMui1NPKbc3yaTrVlFf\n FivfCFk/BMtk5JfkMlwvgYU0pT52468b7xDsPNiQ1o174JGwGnO0nFO+KeubJWulZkj1\n YdjSVxPk99pNn3Agbiy4Z+4Itn5lnAhNC3ZxGw0Blt8IIbSMKJ7XsR5XgWo6lFkiCr6O\n WHvA=="
        ],
        "X-MC-Unique": "xb1ssxpIN-C3VSlnInsv4g-1",
        "X-Mimecast-MFC-AGG-ID": "xb1ssxpIN-C3VSlnInsv4g_1774646767",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774646765; x=1775251565;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=zFuDFxFNBz8vOIyKGhG3CH3xVbSczlhaNd9Na1ywSeg=;\n b=OiC6CUdcgQbsjTYUrDMEp1ME+p3fJn7J7xIgdBcy5eAh62w19kEWQzx+qD+X2cePed\n jkZMxotuaTcmWUJxYopZyUDoLxmFOF8LdwSTta2m1/csLs0V3Cn75FJ1lBRYPBZ7uPJo\n d5BiVh9uvYGSgihdZjzJ902I46qm8bx5vURJuhDGQZPGxFGTcJzW5n22f/Awbgv8kl31\n eKcOIJf9wvc1HEOogZGnkXvgTNFJflNHRSfCrfToRPuR11FlkqMdU/6jOF68OtA+zOsV\n pXnBqTOqsbsDWlU6DGS9+8Ej+5C4f33HwFrCAtfAMoGtB1eziN/v8Z2ga2ht3f/pYFv/\n KUJw==",
        "X-Gm-Message-State": "AOJu0YygIKBoUnMQmx3cWKqhP7WICdEwqIdsYjJIl+UXDj9O2zW7XF3J\n 7uoKpMo4yw8bJfrSDV//AwqdlM4piO4KnuQkOGl/W9z+4TeOr3Q5ViLZ7ulxpjq+k/EBMdd5BuE\n +NzIfAAa8GYLSvzdje5MvOO8kPuDUBVcy6c+JfrwDkekaHH+lb444pr554LPPjCk57dKAKsIH3/\n 90/XSJ9Km1GACKUuFNPinPYy9r9F1svz3e/RpLA1XZ",
        "X-Gm-Gg": "ATEYQzxVD7TBHNTqFEXwq6emBhhpAymzdAXlCLh5WqtiK3B6/QOf8mAchXr1LFQ8LLg\n 5iwKXtWKrmJx5A0muquYJw35VJTlTlnH6aL44KfxlWKoSj5tnnBqGPzKGui1DkomeyimSQ1ohrN\n 3UvI4G8es/n1bMv9G7gf8oFhaUkEfd0AJI5Vkr12Kf4oqgbo0AIbEsqqQQBtZUsPrStdVgEApCI\n KxhjpUNpfHa3ppiwy4PJ9Ml/JgBNq00cAtH/EbjPt0kTJ0iKpBiuRG4DPl2EfHlGna4SEfCRGOD\n i4gqHGB4TzpK2VLFWmBZ7u7IQkuO67R4ZMOSANBBy2oZal6aQJl16Z7FuoO4grg8kNqFweouC5s\n dfW3hUCRBuv9fql9mtZXzDyae0f+LyeEyC0dEJhYBFkDlZjwY8waclUIOBGQWvKM1BN9fApzdDj\n Eznfa5Fk5qfvsKyLoXuxU5vd9H",
        "X-Received": [
            "by 2002:a05:600c:81c5:b0:46e:4e6d:79f4 with SMTP id\n 5b1f17b1804b1-48727e90ec7mr60750035e9.15.1774646764876;\n Fri, 27 Mar 2026 14:26:04 -0700 (PDT)",
            "by 2002:a05:600c:81c5:b0:46e:4e6d:79f4 with SMTP id\n 5b1f17b1804b1-48727e90ec7mr60749765e9.15.1774646764337;\n Fri, 27 Mar 2026 14:26:04 -0700 (PDT)"
        ],
        "From": "Paolo Bonzini <pbonzini@redhat.com>",
        "To": "qemu-devel@nongnu.org",
        "Cc": "Helge Deller <deller@gmx.de>,\n\tqemu-stable@nongnu.org",
        "Subject": "[PATCH 02/16] lsi53c895a: do not do anything else is a reset is\n requested by writing ISTAT0",
        "Date": "Fri, 27 Mar 2026 22:25:33 +0100",
        "Message-ID": "<20260327212547.460420-3-pbonzini@redhat.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260327212547.460420-1-pbonzini@redhat.com>",
        "References": "<20260327212547.460420-1-pbonzini@redhat.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Received-SPF": "pass client-ip=170.10.129.124;\n envelope-from=pbonzini@redhat.com;\n helo=us-smtp-delivery-124.mimecast.com",
        "X-Spam_score_int": "-20",
        "X-Spam_score": "-2.1",
        "X-Spam_bar": "--",
        "X-Spam_report": "(-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001,\n DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=0.001,\n RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,\n SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham 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>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"
    },
    "content": "If the device is reset, anything that is done before will not really\nbe visible.  So do the reset and exit immediately if that is one\nif the requests in the value written to ISTAT0.\n\nCc: qemu-stable@nongnu.org\nSigned-off-by: Paolo Bonzini <pbonzini@redhat.com>\n---\n hw/scsi/lsi53c895a.c | 7 ++++---\n 1 file changed, 4 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/hw/scsi/lsi53c895a.c b/hw/scsi/lsi53c895a.c\nindex 90643b26ab8..81b4f93f4d3 100644\n--- a/hw/scsi/lsi53c895a.c\n+++ b/hw/scsi/lsi53c895a.c\n@@ -1949,6 +1949,10 @@ static void lsi_reg_writeb(LSIState *s, int offset, uint8_t val)\n     CASE_SET_REG32(dsa, 0x10)\n     case 0x14: /* ISTAT0 */\n         s->istat0 = (s->istat0 & 0x0f) | (val & 0xf0);\n+        if (val & LSI_ISTAT0_SRST) {\n+            device_cold_reset(DEVICE(s));\n+            return;\n+        }\n         if (val & LSI_ISTAT0_ABRT) {\n             lsi_script_dma_interrupt(s, LSI_DSTAT_ABRT);\n         }\n@@ -1962,9 +1966,6 @@ static void lsi_reg_writeb(LSIState *s, int offset, uint8_t val)\n             s->dsp = s->dnad;\n             lsi_execute_script(s);\n         }\n-        if (val & LSI_ISTAT0_SRST) {\n-            device_cold_reset(DEVICE(s));\n-        }\n         break;\n     case 0x16: /* MBOX0 */\n         s->mbox0 = val;\n",
    "prefixes": [
        "02/16"
    ]
}