get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 527575,
    "url": "http://patchwork.ozlabs.org/api/patches/527575/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1444276739-20372-3-git-send-email-gwshan@linux.vnet.ibm.com/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api",
        "name": "Linux PPC development",
        "link_name": "linuxppc-dev",
        "list_id": "linuxppc-dev.lists.ozlabs.org",
        "list_email": "linuxppc-dev@lists.ozlabs.org",
        "web_url": "https://github.com/linuxppc/wiki/wiki",
        "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git",
        "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/",
        "list_archive_url": "https://lore.kernel.org/linuxppc-dev/",
        "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/",
        "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"
    },
    "msgid": "<1444276739-20372-3-git-send-email-gwshan@linux.vnet.ibm.com>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/1444276739-20372-3-git-send-email-gwshan@linux.vnet.ibm.com/",
    "date": "2015-10-08T03:58:53",
    "name": "[v2,2/8] powerpc/eeh: More relexed hotplug criterion",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "d526095820a3d6fac115b66af2f1fe2b10618cab",
    "submitter": {
        "id": 63923,
        "url": "http://patchwork.ozlabs.org/api/people/63923/?format=api",
        "name": "Gavin Shan",
        "email": "gwshan@linux.vnet.ibm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1444276739-20372-3-git-send-email-gwshan@linux.vnet.ibm.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/527575/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/527575/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>",
        "X-Original-To": [
            "patchwork-incoming@ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org",
            "linuxppc-dev@ozlabs.org"
        ],
        "Received": [
            "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 57B25140D8A\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu,  8 Oct 2015 15:01:07 +1100 (AEDT)",
            "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3A25F1A017C\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu,  8 Oct 2015 15:01:07 +1100 (AEDT)",
            "from ozlabs.org (ozlabs.org [103.22.144.67])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 97D271A0023\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tThu,  8 Oct 2015 15:00:01 +1100 (AEDT)",
            "by ozlabs.org (Postfix)\n\tid 6BB1E140D93; Thu,  8 Oct 2015 15:00:01 +1100 (AEDT)",
            "from e23smtp08.au.ibm.com (e23smtp08.au.ibm.com [202.81.31.141])\n\t(using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3526F140D8C\n\tfor <linuxppc-dev@ozlabs.org>; Thu,  8 Oct 2015 15:00:01 +1100 (AEDT)",
            "from /spool/local\n\tby e23smtp08.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use\n\tOnly! Violators will be prosecuted\n\tfor <linuxppc-dev@ozlabs.org> from <gwshan@linux.vnet.ibm.com>;\n\tThu, 8 Oct 2015 14:00:00 +1000",
            "from d23dlp03.au.ibm.com (202.81.31.214)\n\tby e23smtp08.au.ibm.com (202.81.31.205) with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted; \n\tThu, 8 Oct 2015 13:59:58 +1000",
            "from d23relay07.au.ibm.com (d23relay07.au.ibm.com [9.190.26.37])\n\tby d23dlp03.au.ibm.com (Postfix) with ESMTP id 22A6E3578052\n\tfor <linuxppc-dev@ozlabs.org>; Thu,  8 Oct 2015 14:59:58 +1100 (EST)",
            "from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139])\n\tby d23relay07.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n\tt983xpaj590124\n\tfor <linuxppc-dev@ozlabs.org>; Thu, 8 Oct 2015 14:59:59 +1100",
            "from d23av04.au.ibm.com (localhost [127.0.0.1])\n\tby d23av04.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id\n\tt983xPfd016208\n\tfor <linuxppc-dev@ozlabs.org>; Thu, 8 Oct 2015 14:59:25 +1100",
            "from ozlabs.au.ibm.com (ozlabs.au.ibm.com [9.192.253.14])\n\tby d23av04.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id\n\tt983xP4t015608; Thu, 8 Oct 2015 14:59:25 +1100",
            "from bran.ozlabs.ibm.com (haven.au.ibm.com [9.192.254.114])\n\tby ozlabs.au.ibm.com (Postfix) with ESMTP id 4993EA036A;\n\tThu,  8 Oct 2015 14:59:01 +1100 (AEDT)",
            "from gwshan (shangw.ozlabs.ibm.com [10.61.2.199])\n\tby bran.ozlabs.ibm.com (Postfix) with ESMTP id 3CFFAE460C;\n\tThu,  8 Oct 2015 14:59:01 +1100 (AEDT)",
            "by gwshan (Postfix, from userid 1000)\n\tid 33E12942239; Thu,  8 Oct 2015 14:59:01 +1100 (AEDT)"
        ],
        "X-Helo": "d23dlp03.au.ibm.com",
        "X-MailFrom": "gwshan@linux.vnet.ibm.com",
        "X-RcptTo": "linuxppc-dev@ozlabs.org",
        "From": "Gavin Shan <gwshan@linux.vnet.ibm.com>",
        "To": "linuxppc-dev@ozlabs.org",
        "Subject": "[PATCH v2 2/8] powerpc/eeh: More relexed hotplug criterion",
        "Date": "Thu,  8 Oct 2015 14:58:53 +1100",
        "Message-Id": "<1444276739-20372-3-git-send-email-gwshan@linux.vnet.ibm.com>",
        "X-Mailer": "git-send-email 2.1.0",
        "In-Reply-To": "<1444276739-20372-1-git-send-email-gwshan@linux.vnet.ibm.com>",
        "References": "<1444276739-20372-1-git-send-email-gwshan@linux.vnet.ibm.com>",
        "X-TM-AS-MML": "disable",
        "X-Content-Scanned": "Fidelis XPS MAILER",
        "x-cbid": "15100803-0029-0000-0000-000002454470",
        "X-BeenThere": "linuxppc-dev@lists.ozlabs.org",
        "X-Mailman-Version": "2.1.20",
        "Precedence": "list",
        "List-Id": "Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>",
        "List-Unsubscribe": "<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.ozlabs.org/pipermail/linuxppc-dev/>",
        "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>",
        "List-Help": "<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>",
        "List-Subscribe": "<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>",
        "Cc": "Gavin Shan <gwshan@linux.vnet.ibm.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org",
        "Sender": "\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"
    },
    "content": "Currently, we rely on the existence of struct pci_driver::err_handler\nto judge if the corresponding PCI device should be unplugged during\nEEH recovery (partially hotplug case). However, it's not elaborate.\nsome device drivers are implementing part of the EEH error handlers\nto collect diag-data. That means the driver still expects a hotplug\nto recover from the EEH error.\n\nThis makes the hotplug criterion more relaxed: if the device driver\ndoesn't provide all necessary EEH error handlers, it will experience\nhotplug during EEH recovery.\n\nSigned-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>\n---\n arch/powerpc/kernel/eeh_driver.c | 5 ++++-\n 1 file changed, 4 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/arch/powerpc/kernel/eeh_driver.c b/arch/powerpc/kernel/eeh_driver.c\nindex 3a626ed..32178a4 100644\n--- a/arch/powerpc/kernel/eeh_driver.c\n+++ b/arch/powerpc/kernel/eeh_driver.c\n@@ -416,7 +416,10 @@ static void *eeh_rmv_device(void *data, void *userdata)\n \tdriver = eeh_pcid_get(dev);\n \tif (driver) {\n \t\teeh_pcid_put(dev);\n-\t\tif (driver->err_handler)\n+\t\tif (driver->err_handler &&\n+\t\t    driver->err_handler->error_detected &&\n+\t\t    driver->err_handler->slot_reset &&\n+\t\t    driver->err_handler->resume)\n \t\t\treturn NULL;\n \t}\n \n",
    "prefixes": [
        "v2",
        "2/8"
    ]
}