get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 806381,
    "url": "http://patchwork.ozlabs.org/api/patches/806381/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-ide/patch/20170828062808.20717-1-hch@lst.de/",
    "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": "<20170828062808.20717-1-hch@lst.de>",
    "list_archive_url": null,
    "date": "2017-08-28T06:28:08",
    "name": "libata: quirk read log on no-name M.2 SSD",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": false,
    "hash": "e9b39de49a21d26468fdbbc2684f6c333e3f1b5c",
    "submitter": {
        "id": 82,
        "url": "http://patchwork.ozlabs.org/api/people/82/?format=api",
        "name": "Christoph Hellwig",
        "email": "hch@lst.de"
    },
    "delegate": {
        "id": 34,
        "url": "http://patchwork.ozlabs.org/api/users/34/?format=api",
        "username": "davem",
        "first_name": "David",
        "last_name": "Miller",
        "email": "davem@davemloft.net"
    },
    "mbox": "http://patchwork.ozlabs.org/project/linux-ide/patch/20170828062808.20717-1-hch@lst.de/mbox/",
    "series": [
        {
            "id": 80,
            "url": "http://patchwork.ozlabs.org/api/series/80/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-ide/list/?series=80",
            "date": "2017-08-28T06:28:08",
            "name": "libata: quirk read log on no-name M.2 SSD",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/80/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/806381/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/806381/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linux-ide-owner@vger.kernel.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=linux-ide-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=infradead.org header.i=@infradead.org\n\theader.b=\"X1BRe1CC\"; dkim-atps=neutral"
        ],
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xghfT3mYnz9s8P\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 28 Aug 2017 16:28:17 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1750841AbdH1G2Q (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n\tMon, 28 Aug 2017 02:28:16 -0400",
            "from bombadil.infradead.org ([65.50.211.133]:50037 \"EHLO\n\tbombadil.infradead.org\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1750830AbdH1G2Q (ORCPT\n\t<rfc822; linux-ide@vger.kernel.org>); Mon, 28 Aug 2017 02:28:16 -0400",
            "from 77.117.146.174.wireless.dyn.drei.com ([77.117.146.174]\n\thelo=localhost)\n\tby bombadil.infradead.org with esmtpsa (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dmDWw-00059J-LF; Mon, 28 Aug 2017 06:28:15 +0000"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=infradead.org; s=bombadil.20170209;\n\th=Message-Id:Date:Subject:Cc:To:From:\n\tSender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:\n\tContent-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:\n\tResent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id:\n\tList-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;\n\tbh=kTCrNWVASBSjIaQLJIx0CQl27j3r7Y/qbkz8sFmWucE=;\n\tb=X1BRe1CCXRTz4lMekaLjxCWih\n\tGR8s1cABcmXNAXM9leFfk8khEgN9TTW4QCzUnlQ73Z3nDgFcVeN9BwjHswQ8JfAomSnI2F7pOZWpk\n\taRuMdQE7q+txMqtukaMqYwlyKPAEHsHuGGygyHhP/6+nr9WNfy4egl2fVlhj9KrKNiKZxLnlG0r8y\n\tsGyAXaE+m68LB4rcnAZd8jOlYJ2TMoJqP7YJHEM0wX5YybgyyOTG2yDOm6B3oNK/G9xcwC1Zwp9ru\n\tgffKJIJT8PNfQcRlE4lr2n7RDSNa7dzolqYgxPk3p22l2C3CBr1tkpjiu5tIMldQG1ZIJjPklkQRd\n\tLaweueDBA==;",
        "From": "Christoph Hellwig <hch@lst.de>",
        "To": "tj@kernel.org",
        "Cc": "idosch@mellanox.com, linux-ide@vger.kernel.org",
        "Subject": "[PATCH] libata: quirk read log on no-name M.2 SSD",
        "Date": "Mon, 28 Aug 2017 08:28:08 +0200",
        "Message-Id": "<20170828062808.20717-1-hch@lst.de>",
        "X-Mailer": "git-send-email 2.11.0",
        "X-SRS-Rewrite": "SMTP reverse-path rewritten from <hch@infradead.org> by\n\tbombadil.infradead.org. See http://www.infradead.org/rpr.html",
        "Sender": "linux-ide-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<linux-ide.vger.kernel.org>",
        "X-Mailing-List": "linux-ide@vger.kernel.org"
    },
    "content": "Ivo reported that reading the log page on his systems fails,\nso quirk it as it won't support ZBC or security protocols.\n\nSigned-off-by: Christoph Hellwig <hch@lst.de>\nReported-by: Ido Schimmel <idosch@mellanox.com>\nTested-by: Ido Schimmel <idosch@mellanox.com>\n---\n drivers/ata/libata-core.c | 4 ++++\n include/linux/libata.h    | 1 +\n 2 files changed, 5 insertions(+)",
    "diff": "diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c\nindex fa7dd4394c02..697f5f896b19 100644\n--- a/drivers/ata/libata-core.c\n+++ b/drivers/ata/libata-core.c\n@@ -2079,6 +2079,8 @@ unsigned int ata_read_log_page(struct ata_device *dev, u8 log,\n \t */\n \tif (ap_flags & ATA_FLAG_NO_LOG_PAGE)\n \t\treturn AC_ERR_DEV;\n+\tif (dev->horkage & ATA_HORKAGE_NO_LOG_PAGE)\n+\t\treturn AC_ERR_DEV;\n \n retry:\n \tata_tf_init(dev, &tf);\n@@ -4578,6 +4580,8 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = {\n \t{ \"WDC WD3000JD-*\",\t\tNULL,\tATA_HORKAGE_WD_BROKEN_LPM },\n \t{ \"WDC WD3200JD-*\",\t\tNULL,\tATA_HORKAGE_WD_BROKEN_LPM },\n \n+\n+\t{ \"M.2 (S42) 3ME3\",\t\tNULL,\tATA_HORKAGE_NO_LOG_PAGE },\n \t/* End Marker */\n \t{ }\n };\ndiff --git a/include/linux/libata.h b/include/linux/libata.h\nindex 931c32f1f18d..9e927ae7fced 100644\n--- a/include/linux/libata.h\n+++ b/include/linux/libata.h\n@@ -438,6 +438,7 @@ enum {\n \tATA_HORKAGE_NO_DMA_LOG\t= (1 << 23),\t/* don't use DMA for log read */\n \tATA_HORKAGE_NOTRIM\t= (1 << 24),\t/* don't use TRIM */\n \tATA_HORKAGE_MAX_SEC_1024 = (1 << 25),\t/* Limit max sects to 1024 */\n+\tATA_HORKAGE_NO_LOG_PAGE = (1 << 26),\t/* Doesn't like Get Log Page */\n \n \t /* DMA mask for user DMA control: User visible values; DO NOT\n \t    renumber */\n",
    "prefixes": []
}