get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 814368,
    "url": "http://patchwork.ozlabs.org/api/patches/814368/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170915191127.28435-1-marek.vasut+renesas@gmail.com/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api",
        "name": "U-Boot",
        "link_name": "uboot",
        "list_id": "u-boot.lists.denx.de",
        "list_email": "u-boot@lists.denx.de",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170915191127.28435-1-marek.vasut+renesas@gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-15T19:11:27",
    "name": "[U-Boot] serial: sh: Enable clock if available",
    "commit_ref": "791c174d58f6fbea2b055b5851ab33d8f73b2c93",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "290524c0b304ad0babfa479345e9d2c523463675",
    "submitter": {
        "id": 1124,
        "url": "http://patchwork.ozlabs.org/api/people/1124/?format=api",
        "name": "Marek Vasut",
        "email": "marek.vasut@gmail.com"
    },
    "delegate": {
        "id": 1750,
        "url": "http://patchwork.ozlabs.org/api/users/1750/?format=api",
        "username": "iwamatsu",
        "first_name": "Nobuhiro",
        "last_name": "Iwamatsu",
        "email": "iwamatsu@nigauri.org"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170915191127.28435-1-marek.vasut+renesas@gmail.com/mbox/",
    "series": [
        {
            "id": 3362,
            "url": "http://patchwork.ozlabs.org/api/series/3362/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=3362",
            "date": "2017-09-15T19:11:27",
            "name": "[U-Boot] serial: sh: Enable clock if available",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/3362/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/814368/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/814368/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<u-boot-bounces@lists.denx.de>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"sPU64o8A\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xv4mq16TWz9s7g\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 16 Sep 2017 05:13:14 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid ABCCEC21ED4; Fri, 15 Sep 2017 19:12:06 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id CD94EC21E4A;\n\tFri, 15 Sep 2017 19:11:50 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 2CD3CC21EBB; Fri, 15 Sep 2017 19:11:31 +0000 (UTC)",
            "from mail-wr0-f193.google.com (mail-wr0-f193.google.com\n\t[209.85.128.193])\n\tby lists.denx.de (Postfix) with ESMTPS id C387CC21ED4\n\tfor <u-boot@lists.denx.de>; Fri, 15 Sep 2017 19:11:30 +0000 (UTC)",
            "by mail-wr0-f193.google.com with SMTP id u48so1769370wrf.4\n\tfor <u-boot@lists.denx.de>; Fri, 15 Sep 2017 12:11:30 -0700 (PDT)",
            "from kurokawa.lan (ip-86-49-107-50.net.upcbroadband.cz.\n\t[86.49.107.50]) by smtp.gmail.com with ESMTPSA id\n\tl15sm1440657wmd.23.2017.09.15.12.11.29\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 15 Sep 2017 12:11:29 -0700 (PDT)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=0.0 required=5.0 tests=FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,\n\tT_DKIM_INVALID autolearn=unavailable\n\tautolearn_force=no version=3.4.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id;\n\tbh=exZfARAtkahtB5oK5zsVV3NPKLBmWXfx9fjFGYSfDuU=;\n\tb=sPU64o8ADKTCnRoOrCtWt+3mZSrELEN4Fxzyt2AYG9o+IkgnxzmCdCezqxaGC/Q8Jc\n\tQlAee9Th3iqC01L52ic4WlBWg5PfP+QPUH0DlVkgRlt7YDJxDNOR80MFlkdL8Bx6o0bA\n\tdADfgUr3zZ7l8tTVvq4+92t5eJnS66I7/Co///Vp1Dml9OJlDe90sjRhstdDuPT2UHA0\n\tuflSulLaUjY5q7RdoyMoLj5Jqku9Xxh/3cjUg7aE0RVy3OvCpIsUP1H1CPUY9NIRkz2O\n\t7Ou41kjnSeVhmhuAVKumGJ/8YrC1GzgITGtFnMXLG/BY9Vmx0Vne1KLESAOsX9akNI2J\n\t5lPw==",
        "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;\n\tbh=exZfARAtkahtB5oK5zsVV3NPKLBmWXfx9fjFGYSfDuU=;\n\tb=rWFL9eXnhhfpEewYiKkFZ6gUyeDSFRibAB1SNkbkxchPZVGGtvOhyswEE73ajqOHPO\n\tsTOyWpBAdTm322Vs7xg7nB8CQV8xndrr0T15sK0hGQCDC3tNiY5ExQBCW0RKfLLqnjVD\n\tYQpV/Qqqk9SnHs6CE4Nyx4qcLqyg59lxJmfAV5DQV+bealKrIJ4oBqr0Kx6bR9AHHt52\n\tXXoJN2Pk1eqIVn0bPZj2Qk458IbxYFqDJwVtSEETnebq0bBGqpri1U8i72YwrqbHkb4T\n\toRG8xZGy5yMioeSTXJU6veeNlhBm4m3d6J2Dk7qHvOf/m+DNpbdt23OgmQsdEO08gMW4\n\tiM2g==",
        "X-Gm-Message-State": "AHPjjUhRYzLhfThdmojB8PoiX9AxgBSybd02x6ViOliSkcnlitMbzcwi\n\tyAylsX6q5REzA9O5g30=",
        "X-Google-Smtp-Source": "ADKCNb519efrfTp1efKy2Q76SyjNtvqHcDVkkDKBhFWqTmIjv4tNESy69o86FLMPZD3IwrhfTXDqJQ==",
        "X-Received": "by 10.223.157.203 with SMTP id q11mr20267070wre.96.1505502690219;\n\tFri, 15 Sep 2017 12:11:30 -0700 (PDT)",
        "From": "Marek Vasut <marek.vasut@gmail.com>",
        "X-Google-Original-From": "Marek Vasut <marek.vasut+renesas@gmail.com>",
        "To": "u-boot@lists.denx.de",
        "Date": "Fri, 15 Sep 2017 21:11:27 +0200",
        "Message-Id": "<20170915191127.28435-1-marek.vasut+renesas@gmail.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "Cc": "Marek Vasut <marek.vasut+renesas@gmail.com>",
        "Subject": "[U-Boot] [PATCH] serial: sh: Enable clock if available",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.18",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<http://lists.denx.de/pipermail/u-boot/>",
        "List-Post": "<mailto:u-boot@lists.denx.de>",
        "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>",
        "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>"
    },
    "content": "If the clock framework provides the driver with valid clock,\nenable them, otherwise the SCIF might not work if the clock\nare not enabled prior to the driver probe.\n\nSigned-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>\nCc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>\n---\n drivers/serial/serial_sh.c | 9 ++++++---\n 1 file changed, 6 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/serial/serial_sh.c b/drivers/serial/serial_sh.c\nindex 087785f9a2..d9db702803 100644\n--- a/drivers/serial/serial_sh.c\n+++ b/drivers/serial/serial_sh.c\n@@ -226,11 +226,14 @@ static int sh_serial_ofdata_to_platdata(struct udevice *dev)\n \tplat->base = addr;\n \n \tret = clk_get_by_name(dev, \"fck\", &sh_serial_clk);\n-\tif (!ret)\n-\t\tplat->clk = clk_get_rate(&sh_serial_clk);\n-\telse\n+\tif (!ret) {\n+\t\tret = clk_enable(&sh_serial_clk);\n+\t\tif (!ret)\n+\t\t\tplat->clk = clk_get_rate(&sh_serial_clk);\n+\t} else {\n \t\tplat->clk = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev),\n \t\t\t\t\t   \"clock\", 1);\n+\t}\n \n \tplat->type = dev_get_driver_data(dev);\n \treturn 0;\n",
    "prefixes": [
        "U-Boot"
    ]
}