get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 806554,
    "url": "http://patchwork.ozlabs.org/api/patches/806554/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170828121638.13751-1-thomas.petazzoni@free-electrons.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": "<20170828121638.13751-1-thomas.petazzoni@free-electrons.com>",
    "list_archive_url": null,
    "date": "2017-08-28T12:16:38",
    "name": "[U-Boot] serial: serial_sh: take into account port->clk_mode for SH7785/7786",
    "commit_ref": null,
    "pull_url": null,
    "state": "deferred",
    "archived": false,
    "hash": "8a146e27bdb1047da3f76f969775153802e6fe09",
    "submitter": {
        "id": 2230,
        "url": "http://patchwork.ozlabs.org/api/people/2230/?format=api",
        "name": "Thomas Petazzoni",
        "email": "thomas.petazzoni@free-electrons.com"
    },
    "delegate": {
        "id": 3651,
        "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api",
        "username": "trini",
        "first_name": "Tom",
        "last_name": "Rini",
        "email": "trini@ti.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170828121638.13751-1-thomas.petazzoni@free-electrons.com/mbox/",
    "series": [
        {
            "id": 154,
            "url": "http://patchwork.ozlabs.org/api/series/154/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=154",
            "date": "2017-08-28T12:16:38",
            "name": "[U-Boot] serial: serial_sh: take into account port->clk_mode for SH7785/7786",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/154/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/806554/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/806554/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>)",
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xgrNj28W6z9sMN\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 28 Aug 2017 22:16:53 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid E8E5CC21DAB; Mon, 28 Aug 2017 12:16:44 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 3D594C21DA4;\n\tMon, 28 Aug 2017 12:16:42 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 22192C21DA4; Mon, 28 Aug 2017 12:16:41 +0000 (UTC)",
            "from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54])\n\tby lists.denx.de (Postfix) with ESMTP id CF47CC21C54\n\tfor <u-boot@lists.denx.de>; Mon, 28 Aug 2017 12:16:40 +0000 (UTC)",
            "by mail.free-electrons.com (Postfix, from userid 110)\n\tid 9334320A31; Mon, 28 Aug 2017 14:16:39 +0200 (CEST)",
            "from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr\n\t[90.63.216.87])\n\tby mail.free-electrons.com (Postfix) with ESMTPSA id 6B6102096D;\n\tMon, 28 Aug 2017 14:16:39 +0200 (CEST)"
        ],
        "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=none autolearn=unavailable\n\tautolearn_force=no version=3.4.0",
        "From": "Thomas Petazzoni <thomas.petazzoni@free-electrons.com>",
        "To": "Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>,\n\tNobuhiro Iwamatsu <iwamatsu@nigauri.org>,\n\tVladimir Zapolskiy <vz@mleia.com>, u-boot@lists.denx.de",
        "Date": "Mon, 28 Aug 2017 14:16:38 +0200",
        "Message-Id": "<20170828121638.13751-1-thomas.petazzoni@free-electrons.com>",
        "X-Mailer": "git-send-email 2.9.4",
        "Cc": "Thomas Petazzoni <thomas.petazzoni@free-electrons.com>",
        "Subject": "[U-Boot] [PATCH] serial: serial_sh: take into account\n\tport->clk_mode for SH7785/7786",
        "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": "In the SH7785/SH7786 case, the SCSCR value is harcoded to be 0x3a,\nwhich means bits CKE1/CKE0 have the value 10b. This tells the SCIF\nthat the \"External clock/SCIF_SCK pin functions as clock input\".\n\nHowever, this is not the case in all designs, and it's the purpose of\nthe clk_mode = EXT_CLK to indicate such a setting.\n\nIn order for the serial_sh driver to work on a SH7786 platform that\ndoes not use SCIF_SCK as a clock input, we have to adjust the\nSCSCR_INIT value, to have CKE1/CKE0 set to 00b. This is similar to\nwhat is done for other SH platforms.\n\nSigned-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>\n---\n drivers/serial/serial_sh.h | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/serial/serial_sh.h b/drivers/serial/serial_sh.h\nindex 4d27122..d7bbd1a 100644\n--- a/drivers/serial/serial_sh.h\n+++ b/drivers/serial/serial_sh.h\n@@ -184,7 +184,8 @@ struct uart_port {\n # define SCSPTR4\t0xffee0024\t/* 16 bit SCIF */\n # define SCSPTR5\t0xffef0024\t/* 16 bit SCIF */\n # define SCIF_ORER\t0x0001\t\t/* Overrun error bit */\n-# define SCSCR_INIT(port)\t0x3a\t/* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */\n+# define SCSCR_INIT(port)\t(port->clk_mode == EXT_CLK ? 0x3a : 0x38)\n+\t\t\t\t/* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */\n #elif defined(CONFIG_CPU_SH7201) || \\\n \tdefined(CONFIG_CPU_SH7203) || \\\n \tdefined(CONFIG_CPU_SH7206) || \\\n",
    "prefixes": [
        "U-Boot"
    ]
}