get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2219234,
    "url": "http://patchwork.ozlabs.org/api/patches/2219234/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-ide/patch/20260402160705.1033273-1-ipylypiv@google.com/",
    "project": {
        "id": 13,
        "url": "http://patchwork.ozlabs.org/api/projects/13/?format=api",
        "name": "Linux IDE development",
        "link_name": "linux-ide",
        "list_id": "linux-ide.vger.kernel.org",
        "list_email": "linux-ide@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260402160705.1033273-1-ipylypiv@google.com>",
    "list_archive_url": null,
    "date": "2026-04-02T16:07:05",
    "name": "[v2] ata: libata-eh: Do not retry reset if the device is gone",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "0331e86e725a56471e578bcb64c57c0195147173",
    "submitter": {
        "id": 86149,
        "url": "http://patchwork.ozlabs.org/api/people/86149/?format=api",
        "name": "Igor Pylypiv",
        "email": "ipylypiv@google.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-ide/patch/20260402160705.1033273-1-ipylypiv@google.com/mbox/",
    "series": [
        {
            "id": 498507,
            "url": "http://patchwork.ozlabs.org/api/series/498507/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-ide/list/?series=498507",
            "date": "2026-04-02T16:07:05",
            "name": "[v2] ata: libata-eh: Do not retry reset if the device is gone",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/498507/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2219234/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2219234/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-ide+bounces-5429-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-ide@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=google.com header.i=@google.com header.a=rsa-sha256\n header.s=20251104 header.b=aXO1DQmP;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=linux-ide+bounces-5429-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=google.com header.i=@google.com\n header.b=\"aXO1DQmP\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.210.201",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=google.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=flex--ipylypiv.bounces.google.com"
        ],
        "Received": [
            "from sto.lore.kernel.org (sto.lore.kernel.org\n [IPv6:2600:3c09:e001:a7::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fmmx41bFGz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 03 Apr 2026 03:08:24 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id 210D33021F78\n\tfor <incoming@patchwork.ozlabs.org>; Thu,  2 Apr 2026 16:07:15 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 8440335A3A4;\n\tThu,  2 Apr 2026 16:07:12 +0000 (UTC)",
            "from mail-pf1-f201.google.com (mail-pf1-f201.google.com\n [209.85.210.201])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 56F3736308D\n\tfor <linux-ide@vger.kernel.org>; Thu,  2 Apr 2026 16:07:11 +0000 (UTC)",
            "by mail-pf1-f201.google.com with SMTP id\n d2e1a72fcca58-82ce1c395ccso1534368b3a.2\n        for <linux-ide@vger.kernel.org>; Thu, 02 Apr 2026 09:07:11 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775146032; cv=none;\n b=ZBZlyIhCJT93ij1VPxCQ9zF60IzPg8gcfOfQvlQHnZ6rmUo7cAuFgL1RooQ4ZvYu5zeXmDB/aGUMlh6LqMMe14Gf7yTnLaB5LFcuEIUJ5/fju2S157KB3f4eYZAaM+SQPMvcHEzqP1SypflZjVkcxRSqoDoMgL8aSA+r84xyZ2w=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775146032; c=relaxed/simple;\n\tbh=lJJPLiWQ88hF2omeXe9q0oHz1xITYMdJjEh/PkMHz9g=;\n\th=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type;\n b=uqJ1qOi7d4ny7imgBjCkX1qFrgwAdom+drgrov59+VArWe+C0M+fgpaR9UPkMx0LrV+fmrSPQKniymq2zPOpPz3k9w0jyo/dlymQ7MP0vDCS1RQ0EFmrtjplMKZwVDtwVpAxsK+X3zhwECVPWRuRW9jXfgqeom3BaA7z228veB0=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=google.com;\n spf=pass smtp.mailfrom=flex--ipylypiv.bounces.google.com;\n dkim=pass (2048-bit key) header.d=google.com header.i=@google.com\n header.b=aXO1DQmP; arc=none smtp.client-ip=209.85.210.201",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=google.com; s=20251104; t=1775146030; x=1775750830;\n darn=vger.kernel.org;\n        h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject\n         :date:message-id:reply-to;\n        bh=tY3YLUnv7koH8w7vvcawAH8VEOQcI6MwE/0pyNwOOEs=;\n        b=aXO1DQmPwvZtoKItVobD136gWUmQtqL4adFvwQl4KLICUv3teKt/O+Mu8xAz54s2w2\n         wptloYqcZ1NoEKm9RGROdM03D5TFZRXkVDBZxoQ/JzQ19bAt5QfPZw02y71T5ydzsVW9\n         L65LXdlt9OLEjoYAnseb0TGE5I5FR/zpZAFcOLon/04GyliFeyt4SNioIFdeAKF07tU1\n         i1ZwM4S/LO2J3AApQD8DsUBiryTVKqZGhDKkDtt2lZn2cS38tLmoUgVJ6/B1mCB6N45x\n         9UGE0Oo5T3TEivMyRjlCSmMf3kHEo88Aq86YexQBx0CQMuK/qKNic3V8nPJULCNv4gZA\n         YmDA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1775146030; x=1775750830;\n        h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state\n         :from:to:cc:subject:date:message-id:reply-to;\n        bh=tY3YLUnv7koH8w7vvcawAH8VEOQcI6MwE/0pyNwOOEs=;\n        b=ShDh7vwhd70IymteAYqqcH88BNFMNz808EMGC/YvE67/LFS0oekGvqg1Zum8W+KL67\n         bYji6/6G3LTnPGqEelFLZvSVVW6RmsTwX5ujYU+FQWJMlT8F+JHDcwdy68N0+jeayoh6\n         2YT3w3sQbo1ElZLqVe3Q0cNwXFOmz2ysHAYOnp0syq4zVMN6cS3/X78eVZFfKMV26VcB\n         A0priQYlCYAO3gR5pe532icxvP79I2bTqP69CxEplrEgysA7yjjoEm/J5PQktMf1cFxo\n         FdhAaTkcQ0wfHGCyFeY7oDv7iQkKcP7dbY8RIT4d4G170MM2hmkhl08XrHaOPSYmVoWD\n         FRvg==",
        "X-Gm-Message-State": "AOJu0YzvlPlghbM0fSsZmZNDliGE0KvcwidNUiv14CuFC0kJrfWnOZM+\n\tY2hQLf4QrPFSnnDH2lW6ye6EwQbUT1o+ZmPwKG/IZgrRsD1Tkwy6LLdcEZ0j5i+rZRPeQxTjoCQ\n\tQE9no7Acpoj0YJA==",
        "X-Received": "from pfbhw14.prod.google.com\n ([2002:a05:6a00:890e:b0:82a:ff5:27be])\n (user=ipylypiv job=prod-delivery.src-stubby-dispatcher) by\n 2002:a05:6a00:1888:b0:81f:3fa0:8c38 with SMTP id\n d2e1a72fcca58-82ce8957dd1mr9088627b3a.20.1775146029269;\n Thu, 02 Apr 2026 09:07:09 -0700 (PDT)",
        "Date": "Thu,  2 Apr 2026 09:07:05 -0700",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-ide@vger.kernel.org",
        "List-Id": "<linux-ide.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-ide+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-ide+unsubscribe@vger.kernel.org>",
        "Mime-Version": "1.0",
        "X-Mailer": "git-send-email 2.53.0.1185.g05d4b7b318-goog",
        "Message-ID": "<20260402160705.1033273-1-ipylypiv@google.com>",
        "Subject": "[PATCH v2] ata: libata-eh: Do not retry reset if the device is gone",
        "From": "Igor Pylypiv <ipylypiv@google.com>",
        "To": "Damien Le Moal <dlemoal@kernel.org>, Niklas Cassel <cassel@kernel.org>",
        "Cc": "linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org,\n\tIgor Pylypiv <ipylypiv@google.com>",
        "Content-Type": "text/plain; charset=\"UTF-8\""
    },
    "content": "If a device is hot-unplugged or otherwise disappears during error handling,\nata_eh_reset() may fail with -ENODEV. Currently, the error handler will\ncontinue to retry the reset operation up to max_tries times.\n\nPrevent unnecessary reset retries by exiting the loop early when\nata_do_reset() returns -ENODEV.\n\nReviewed-by: Damien Le Moal <dlemoal@kernel.org>\nSigned-off-by: Igor Pylypiv <ipylypiv@google.com>\n---\n\nChanges from v1:\n- Corrected the commit message to reference ata_do_reset() instead of\n  ata_eh_reset() for the early loop break.\n\ndrivers/ata/libata-eh.c | 2 +-\n1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c\nindex 23be85418b3b..e97a842005e9 100644\n--- a/drivers/ata/libata-eh.c\n+++ b/drivers/ata/libata-eh.c\n@@ -3171,7 +3171,7 @@ int ata_eh_reset(struct ata_link *link, int classify,\n \t    sata_scr_read(link, SCR_STATUS, &sstatus))\n \t\trc = -ERESTART;\n \n-\tif (try >= max_tries) {\n+\tif (try >= max_tries || rc == -ENODEV) {\n \t\t/*\n \t\t * Thaw host port even if reset failed, so that the port\n \t\t * can be retried on the next phy event.  This risks\n",
    "prefixes": [
        "v2"
    ]
}