get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 815472,
    "url": "http://patchwork.ozlabs.org/api/patches/815472/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170919112645.8574-6-clg@kaod.org/",
    "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": "<20170919112645.8574-6-clg@kaod.org>",
    "list_archive_url": null,
    "date": "2017-09-19T11:26:45",
    "name": "[5/5] aspeed: add the pc9552 chips to the witherspoon machine",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "1886a05fde3069ef3d147a96047edad13d6b665d",
    "submitter": {
        "id": 68548,
        "url": "http://patchwork.ozlabs.org/api/people/68548/?format=api",
        "name": "Cédric Le Goater",
        "email": "clg@kaod.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170919112645.8574-6-clg@kaod.org/mbox/",
    "series": [
        {
            "id": 3851,
            "url": "http://patchwork.ozlabs.org/api/series/3851/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=3851",
            "date": "2017-09-19T11:26:40",
            "name": "aspeed: add a witherspoon-bmc machine",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/3851/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/815472/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/815472/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@bilbo.ozlabs.org",
        "Authentication-Results": "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xxLLn2CSKz9s7g\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 19 Sep 2017 21:32:01 +1000 (AEST)",
            "from localhost ([::1]:41709 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1duGkx-0005QI-Cs\n\tfor incoming@patchwork.ozlabs.org; Tue, 19 Sep 2017 07:31:59 -0400",
            "from eggs.gnu.org ([2001:4830:134:3::10]:49333)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <clg@kaod.org>) id 1duGgf-0002MM-PM\n\tfor qemu-devel@nongnu.org; Tue, 19 Sep 2017 07:27:39 -0400",
            "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <clg@kaod.org>) id 1duGgc-0006VN-Kk\n\tfor qemu-devel@nongnu.org; Tue, 19 Sep 2017 07:27:33 -0400",
            "from 6.mo179.mail-out.ovh.net ([46.105.56.76]:49434)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <clg@kaod.org>) id 1duGgc-0006Up-EG\n\tfor qemu-devel@nongnu.org; Tue, 19 Sep 2017 07:27:30 -0400",
            "from player716.ha.ovh.net (b6.ovh.net [213.186.33.56])\n\tby mo179.mail-out.ovh.net (Postfix) with ESMTP id 7A82F632BF\n\tfor <qemu-devel@nongnu.org>; Tue, 19 Sep 2017 13:27:29 +0200 (CEST)",
            "from zorba.kaod.org.com (deibp9eh1--blueice1n2.emea.ibm.com\n\t[195.212.29.164]) (Authenticated sender: clg@kaod.org)\n\tby player716.ha.ovh.net (Postfix) with ESMTPSA id 0A61E56007F;\n\tTue, 19 Sep 2017 13:27:22 +0200 (CEST)"
        ],
        "From": "=?utf-8?q?C=C3=A9dric_Le_Goater?= <clg@kaod.org>",
        "To": "Peter Maydell <peter.maydell@linaro.org>",
        "Date": "Tue, 19 Sep 2017 13:26:45 +0200",
        "Message-Id": "<20170919112645.8574-6-clg@kaod.org>",
        "X-Mailer": "git-send-email 2.13.5",
        "In-Reply-To": "<20170919112645.8574-1-clg@kaod.org>",
        "References": "<20170919112645.8574-1-clg@kaod.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "X-Ovh-Tracer-Id": "18383975157033896721",
        "X-VR-SPAMSTATE": "OK",
        "X-VR-SPAMSCORE": "-100",
        "X-VR-SPAMCAUSE": "gggruggvucftvghtrhhoucdtuddrfeelledrheejgdegudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd",
        "Content-Transfer-Encoding": "quoted-printable",
        "X-detected-operating-system": "by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]\n\t[fuzzy]",
        "X-Received-From": "46.105.56.76",
        "Subject": "[Qemu-devel] [PATCH 5/5] aspeed: add the pc9552 chips to the\n\twitherspoon machine",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.21",
        "Precedence": "list",
        "List-Id": "<qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<http://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\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Cc": "Andrew Jeffery <andrew@aj.id.au>, =?utf-8?q?C=C3=A9dric_Le_Goater?=\n\t<clg@kaod.org>, qemu-arm@nongnu.org, qemu-devel@nongnu.org,\n\tJoel Stanley <joel@jms.id.au>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"
    },
    "content": "The pca9552 LED blinkers on the Witherspoon machine are used for leds\nbut also as GPIOs to control fans and GPUs.\n\nSigned-off-by: Cédric Le Goater <clg@kaod.org>\n---\n hw/arm/aspeed.c | 4 ++++\n 1 file changed, 4 insertions(+)",
    "diff": "diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c\nindex 3e74970d7ad2..726cb438a52a 100644\n--- a/hw/arm/aspeed.c\n+++ b/hw/arm/aspeed.c\n@@ -386,6 +386,8 @@ static void witherspoon_bmc_i2c_init(AspeedBoardState *bmc)\n {\n     AspeedSoCState *soc = &bmc->soc;\n \n+    i2c_create_slave(aspeed_i2c_get_bus(DEVICE(&soc->i2c), 3), \"pca9552\", 0x60);\n+\n     i2c_create_slave(aspeed_i2c_get_bus(DEVICE(&soc->i2c), 4), \"tmp423\", 0x4c);\n     i2c_create_slave(aspeed_i2c_get_bus(DEVICE(&soc->i2c), 5), \"tmp423\", 0x4c);\n \n@@ -397,6 +399,8 @@ static void witherspoon_bmc_i2c_init(AspeedBoardState *bmc)\n \n     aspeed_i2c_add_eeprom(aspeed_i2c_get_bus(DEVICE(&soc->i2c), 11), 0x51,\n                           8 * 1024);\n+    i2c_create_slave(aspeed_i2c_get_bus(DEVICE(&soc->i2c), 11), \"pca9552\",\n+                     0x60);\n }\n \n static void witherspoon_bmc_init(MachineState *machine)\n",
    "prefixes": [
        "5/5"
    ]
}