get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 807319,
    "url": "http://patchwork.ozlabs.org/api/patches/807319/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/openbmc/patch/20170829212117.143441-3-xow@google.com/",
    "project": {
        "id": 56,
        "url": "http://patchwork.ozlabs.org/api/projects/56/?format=api",
        "name": "OpenBMC development",
        "link_name": "openbmc",
        "list_id": "openbmc.lists.ozlabs.org",
        "list_email": "openbmc@lists.ozlabs.org",
        "web_url": "http://github.com/openbmc/",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170829212117.143441-3-xow@google.com>",
    "list_archive_url": null,
    "date": "2017-08-29T21:21:17",
    "name": "[2/2] hwmon: (pmbus/lm25066) Add support for TI LM5066I",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": true,
    "hash": "48ef757768a89768da1e73a2c5e414a6e7a7ef80",
    "submitter": {
        "id": 69975,
        "url": "http://patchwork.ozlabs.org/api/people/69975/?format=api",
        "name": "Xo Wang",
        "email": "xow@google.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/openbmc/patch/20170829212117.143441-3-xow@google.com/mbox/",
    "series": [
        {
            "id": 481,
            "url": "http://patchwork.ozlabs.org/api/series/481/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/openbmc/list/?series=481",
            "date": "2017-08-29T21:21:15",
            "name": "Add hwmon support for TI LM5066I hotswap controller",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/481/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/807319/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/807319/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "openbmc@lists.ozlabs.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "openbmc@lists.ozlabs.org"
        ],
        "Received": [
            "from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xhhTF5fNtz9sPt\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 30 Aug 2017 07:23:45 +1000 (AEST)",
            "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xhhTF44YRzDqGW\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 30 Aug 2017 07:23:45 +1000 (AEST)",
            "from mail-pf0-x233.google.com (mail-pf0-x233.google.com\n\t[IPv6:2607:f8b0:400e:c00::233])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xhhQn3c45zDqMM\n\tfor <openbmc@lists.ozlabs.org>; Wed, 30 Aug 2017 07:21:37 +1000 (AEST)",
            "by mail-pf0-x233.google.com with SMTP id r62so13654858pfj.0\n\tfor <openbmc@lists.ozlabs.org>; Tue, 29 Aug 2017 14:21:37 -0700 (PDT)",
            "from pewter.svl.corp.google.com ([100.123.242.121])\n\tby smtp.gmail.com with ESMTPSA id\n\ts77sm5558445pfa.163.2017.08.29.14.21.33\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 29 Aug 2017 14:21:34 -0700 (PDT)"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=google.com header.i=@google.com\n\theader.b=\"hxI8HCWg\"; dkim-atps=neutral",
            "lists.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=google.com header.i=@google.com\n\theader.b=\"hxI8HCWg\"; dkim-atps=neutral",
            "lists.ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=google.com header.i=@google.com\n\theader.b=\"hxI8HCWg\"; dkim-atps=neutral"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n\ts=20161025; \n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=3F94VPxALuJJiiDT1fEXGiS2dfya392cnISXh4pshr4=;\n\tb=hxI8HCWg9mn6vX3r0LdYcoJ2SWY8NVuKzOL1AyaVGeSsaGnemzzwcvWeL+F71wtkTj\n\tEuHk5PNrvhDOo8WCXklyym01FFF8bLCUDVG32HsQj+hJw0Be1usvZLsGYyGRyPON3qiD\n\t3EdXMW3SGz63xKEbPu9a883pKcBKKWWdrvit5TKo1DkzIZ62u10MHlR2gVHnYeuGSyzQ\n\tS5/FQx3iuL9m2WfPYrAM15q+KOC83fMRLeJg1+7zlYsOqqu13RHh8z1utYxDHQcxhGAq\n\tayOjg1sWpWgIpt5AdshlvtGwVliYPWEdx20Os3HmC+yq8409t+BUxHMqPYBYXWAEXNW7\n\tHRcQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=3F94VPxALuJJiiDT1fEXGiS2dfya392cnISXh4pshr4=;\n\tb=FGGWx8mlwwxW46dwzOq0jjz9bzt6AfxkhtdOktr5P8/QEp+yE5tV5BmH48/og4wHD3\n\t2MNotvbdplUd9mjnEM7nQ/IXmxs7OKbEZl96PBhE+baNOT/0YYMvhy7xVysoym8hmPoS\n\tfrn4Gc26pW3DbXhK+sV+92H6ppGxLNXBOT8+21iLi112RNm4OiGLEGEJIT/M3ENCGNa4\n\ttx9x8nrwGydn01BnuRDSPZ+zVmJkG94fF+qCihyFEk38TJy69ucN/ATBgsyJ8tUuh9nT\n\tsCve5QuGhHbVJWHTw4DHVBGzxIpxAuYB3/Xo8v6gvpQRcnT5WXWmO7oDXWYNMpA+ZpQN\n\tCWPQ==",
        "X-Gm-Message-State": "AHYfb5iY4IPylnDPt3Efpw8gCl+uPiN9tSmvcUuz1Z/nUKNSBzpL6RzS\n\thIuXh6wklng/Pflg",
        "X-Google-Smtp-Source": "ADKCNb7TCb2LyftN+hpGwti8/3QwyGhUgekfrQnzuuD5mnB8b4D488lAnLbO/tZLtlBE0ne5ePqXZA==",
        "X-Received": "by 10.101.77.6 with SMTP id i6mr1597402pgt.129.1504041695279;\n\tTue, 29 Aug 2017 14:21:35 -0700 (PDT)",
        "From": "Xo Wang <xow@google.com>",
        "To": "jdelvare@suse.com,\n\tlinux@roeck-us.net,\n\tcorbet@lwn.net",
        "Subject": "[PATCH 2/2] hwmon: (pmbus/lm25066) Add support for TI LM5066I",
        "Date": "Tue, 29 Aug 2017 14:21:17 -0700",
        "Message-Id": "<20170829212117.143441-3-xow@google.com>",
        "X-Mailer": "git-send-email 2.14.1.342.g6490525c54-goog",
        "In-Reply-To": "<20170829212117.143441-1-xow@google.com>",
        "References": "<20170829212117.143441-1-xow@google.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "openbmc@lists.ozlabs.org",
        "X-Mailman-Version": "2.1.23",
        "Precedence": "list",
        "List-Id": "Development list for OpenBMC <openbmc.lists.ozlabs.org>",
        "List-Unsubscribe": "<https://lists.ozlabs.org/options/openbmc>,\n\t<mailto:openbmc-request@lists.ozlabs.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.ozlabs.org/pipermail/openbmc/>",
        "List-Post": "<mailto:openbmc@lists.ozlabs.org>",
        "List-Help": "<mailto:openbmc-request@lists.ozlabs.org?subject=help>",
        "List-Subscribe": "<https://lists.ozlabs.org/listinfo/openbmc>,\n\t<mailto:openbmc-request@lists.ozlabs.org?subject=subscribe>",
        "Cc": "linux-hwmon@vger.kernel.org, openbmc@lists.ozlabs.org,\n\tlinux-kernel@vger.kernel.org, linux-doc@vger.kernel.org",
        "Errors-To": "openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org",
        "Sender": "\"openbmc\"\n\t<openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org>"
    },
    "content": "The TI LM5066I hotswap controller is a more accurate version of the\nLM5066 device already supported. It has different measurement conversion\ncoefficients than the LM5066, so it needs to be recognized as a\ndifferent device.\n\nSigned-off-by: Xo Wang <xow@google.com>\n---\n Documentation/hwmon/lm25066   |  9 +++++++--\n drivers/hwmon/pmbus/lm25066.c | 41 +++++++++++++++++++++++++++++++++++++++--\n 2 files changed, 46 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/Documentation/hwmon/lm25066 b/Documentation/hwmon/lm25066\nindex 2cb20ebb234d..3fa6bf820c88 100644\n--- a/Documentation/hwmon/lm25066\n+++ b/Documentation/hwmon/lm25066\n@@ -29,6 +29,11 @@ Supported chips:\n     Addresses scanned: -\n     Datasheet:\n \thttp://www.national.com/pf/LM/LM5066.html\n+  * Texas Instruments LM5066I\n+    Prefix: 'lm5066i'\n+    Addresses scanned: -\n+\tDatasheet:\n+    http://www.ti.com/product/LM5066I\n \n Author: Guenter Roeck <linux@roeck-us.net>\n \n@@ -37,8 +42,8 @@ Description\n -----------\n \n This driver supports hardware monitoring for National Semiconductor / TI LM25056,\n-LM25063, LM25066, LM5064, and LM5066 Power Management, Monitoring, Control, and\n-Protection ICs.\n+LM25063, LM25066, LM5064, and LM5066/LM5066I Power Management, Monitoring,\n+Control, and Protection ICs.\n \n The driver is a client driver to the core PMBus driver. Please see\n Documentation/hwmon/pmbus for details on PMBus client drivers.\ndiff --git a/drivers/hwmon/pmbus/lm25066.c b/drivers/hwmon/pmbus/lm25066.c\nindex 232b4af13e12..10d17fb8f283 100644\n--- a/drivers/hwmon/pmbus/lm25066.c\n+++ b/drivers/hwmon/pmbus/lm25066.c\n@@ -28,7 +28,7 @@\n #include <linux/i2c.h>\n #include \"pmbus.h\"\n \n-enum chips { lm25056, lm25063, lm25066, lm5064, lm5066 };\n+enum chips { lm25056, lm25063, lm25066, lm5064, lm5066, lm5066i };\n \n #define LM25066_READ_VAUX\t\t0xd0\n #define LM25066_MFR_READ_IIN\t\t0xd1\n@@ -65,7 +65,7 @@ struct __coeff {\n #define PSC_CURRENT_IN_L\t(PSC_NUM_CLASSES)\n #define PSC_POWER_L\t\t(PSC_NUM_CLASSES + 1)\n \n-static struct __coeff lm25066_coeff[5][PSC_NUM_CLASSES + 2] = {\n+static struct __coeff lm25066_coeff[6][PSC_NUM_CLASSES + 2] = {\n \t[lm25056] = {\n \t\t[PSC_VOLTAGE_IN] = {\n \t\t\t.m = 16296,\n@@ -210,6 +210,41 @@ static struct __coeff lm25066_coeff[5][PSC_NUM_CLASSES + 2] = {\n \t\t\t.m = 16,\n \t\t},\n \t},\n+\t[lm5066i] = {\n+\t\t[PSC_VOLTAGE_IN] = {\n+\t\t\t.m = 4617,\n+\t\t\t.b = -140,\n+\t\t\t.R = -2,\n+\t\t},\n+\t\t[PSC_VOLTAGE_OUT] = {\n+\t\t\t.m = 4602,\n+\t\t\t.b = 500,\n+\t\t\t.R = -2,\n+\t\t},\n+\t\t[PSC_CURRENT_IN] = {\n+\t\t\t.m = 15076,\n+\t\t\t.b = -504,\n+\t\t\t.R = -2,\n+\t\t},\n+\t\t[PSC_CURRENT_IN_L] = {\n+\t\t\t.m = 7645,\n+\t\t\t.b = 100,\n+\t\t\t.R = -2,\n+\t\t},\n+\t\t[PSC_POWER] = {\n+\t\t\t.m = 1701,\n+\t\t\t.b = -4000,\n+\t\t\t.R = -3,\n+\t\t},\n+\t\t[PSC_POWER_L] = {\n+\t\t\t.m = 861,\n+\t\t\t.b = -965,\n+\t\t\t.R = -3,\n+\t\t},\n+\t\t[PSC_TEMPERATURE] = {\n+\t\t\t.m = 16,\n+\t\t},\n+\t},\n };\n \n struct lm25066_data {\n@@ -250,6 +285,7 @@ static int lm25066_read_word_data(struct i2c_client *client, int page, int reg)\n \t\t\tret = DIV_ROUND_CLOSEST(ret * 70, 453);\n \t\t\tbreak;\n \t\tcase lm5066:\n+\t\tcase lm5066i:\n \t\t\t/* VIN: 2.18 mV VAUX: 725 uV LSB */\n \t\t\tret = DIV_ROUND_CLOSEST(ret * 725, 2180);\n \t\t\tbreak;\n@@ -511,6 +547,7 @@ static const struct i2c_device_id lm25066_id[] = {\n \t{\"lm25066\", lm25066},\n \t{\"lm5064\", lm5064},\n \t{\"lm5066\", lm5066},\n+\t{\"lm5066i\", lm5066i},\n \t{ }\n };\n \n",
    "prefixes": [
        "2/2"
    ]
}