get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1132668,
    "url": "http://patchwork.ozlabs.org/api/patches/1132668/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20190716115745.12585-7-jagan@amarulasolutions.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": "<20190716115745.12585-7-jagan@amarulasolutions.com>",
    "list_archive_url": null,
    "date": "2019-07-16T11:56:54",
    "name": "[U-Boot,v3,06/57] ram: rk3399: Add column enc macro",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "07934e36ae81e7062846922a16e66848b83c2285",
    "submitter": {
        "id": 69820,
        "url": "http://patchwork.ozlabs.org/api/people/69820/?format=api",
        "name": "Jagan Teki",
        "email": "jagan@amarulasolutions.com"
    },
    "delegate": {
        "id": 93623,
        "url": "http://patchwork.ozlabs.org/api/users/93623/?format=api",
        "username": "kevery",
        "first_name": "Kever",
        "last_name": "Yang",
        "email": "ykai007@gmail.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20190716115745.12585-7-jagan@amarulasolutions.com/mbox/",
    "series": [
        {
            "id": 119754,
            "url": "http://patchwork.ozlabs.org/api/series/119754/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=119754",
            "date": "2019-07-16T11:56:48",
            "name": "ram: rk3399: Add LPDDR4 support",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/119754/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1132668/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1132668/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; dmarc=none (p=none dis=none)\n\theader.from=amarulasolutions.com",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=amarulasolutions.com\n\theader.i=@amarulasolutions.com header.b=\"ePYDBvji\"; \n\tdkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 45nzWl3GvXz9s00\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 16 Jul 2019 22:01:23 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 0582BC21E8A; Tue, 16 Jul 2019 12:00:13 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id EF2A6C21E2B;\n\tTue, 16 Jul 2019 11:59:42 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid E4BCBC21D8A; Tue, 16 Jul 2019 11:58:23 +0000 (UTC)",
            "from mail-pg1-f195.google.com (mail-pg1-f195.google.com\n\t[209.85.215.195])\n\tby lists.denx.de (Postfix) with ESMTPS id 8EB0DC21E29\n\tfor <u-boot@lists.denx.de>; Tue, 16 Jul 2019 11:58:19 +0000 (UTC)",
            "by mail-pg1-f195.google.com with SMTP id l21so9340753pgm.3\n\tfor <u-boot@lists.denx.de>; Tue, 16 Jul 2019 04:58:19 -0700 (PDT)",
            "from localhost.localdomain ([49.206.201.107])\n\tby smtp.gmail.com with ESMTPSA id\n\tz24sm36269566pfr.51.2019.07.16.04.58.14\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 16 Jul 2019 04:58:17 -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=T_DKIM_INVALID\n\tautolearn=unavailable autolearn_force=no version=3.4.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=amarulasolutions.com; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=TFvI0S4CfWwHtbl2JqDL7FjN6lCMyy3zZu+VBPL6t3Y=;\n\tb=ePYDBvjiUwdhw54nJgRhT7e6DnxLVilS+45XIES7Prg3nAES7E0QoR1RKR9N6V2WgQ\n\tNTU71Ak+6TSAal06NPFZ7Fq9Ds+gl7RVd+fTpc3G/lzRzDv125+2m7M50qKclg4SXK8r\n\tLcplY8UsUnzwUVhgUxCbmjCnfKA+5z8W1n4yw=",
        "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=TFvI0S4CfWwHtbl2JqDL7FjN6lCMyy3zZu+VBPL6t3Y=;\n\tb=blxYIRYgLSig/qarhSFYkOtDvV8Kej6Dmqe1Ej8xClv2rn7BYiZV3w7yRPataygCEU\n\tO3Svk5nnYjooB3J9BdMyHgrTbQYU6RIYnrTwybDtfCovBbRQA74IdnAMj57Qv6kLnaj9\n\tcuNGNI1jRsJhH6V/usxKFv2PlrGqF5w0dtjueRVxgrP2l6A0eCa5PmW7PFU1yu5S4CQJ\n\tf8xnyn4+NcrUBkRpGtsgPtEP36vK2cV9wXEgLdwMkR7mH1gd3gVokfam/yFPRa4VKR93\n\t94/zoluTrQ4QQG87pDNxRIYiNF0AjAHbNicXmcDe6jeRyp6m1tAUvuoPJNUKZUbIR+Di\n\tJGtA==",
        "X-Gm-Message-State": "APjAAAUqREtrU/6mCGJmr2GtpksMH/2mX02AcIz0XZWkb4hLnR+97s70\n\tmaPL9XV0G0KQsnmE8wOaqEdSmw==",
        "X-Google-Smtp-Source": "APXvYqw2e2O59vfqh9aTdlPpV95ZypY60/hGVwr3jTjmEDdTqvMwOVCgo+d5rskd+YkFTRUz3LPsrA==",
        "X-Received": "by 2002:a63:7a06:: with SMTP id\n\tv6mr33364967pgc.115.1563278298200; \n\tTue, 16 Jul 2019 04:58:18 -0700 (PDT)",
        "From": "Jagan Teki <jagan@amarulasolutions.com>",
        "To": "Simon Glass <sjg@chromium.org>,\n\tPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>,\n\tKever Yang <kever.yang@rock-chips.com>,\n\tYouMin Chen <cym@rock-chips.com>, u-boot@lists.denx.de",
        "Date": "Tue, 16 Jul 2019 17:26:54 +0530",
        "Message-Id": "<20190716115745.12585-7-jagan@amarulasolutions.com>",
        "X-Mailer": "git-send-email 2.18.0.321.gffc6fa0e3",
        "In-Reply-To": "<20190716115745.12585-1-jagan@amarulasolutions.com>",
        "References": "<20190716115745.12585-1-jagan@amarulasolutions.com>",
        "MIME-Version": "1.0",
        "Cc": "linux-rockchip@lists.infradead.org, gajjar04akash@gmail.com,\n\tlinux-amarula@amarulasolutions.com,\n\tManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>",
        "Subject": "[U-Boot] [PATCH v3 06/57] ram: rk3399: Add column enc macro",
        "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>",
        "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": "Add simplified and meaningful macro for column.\n\nSigned-off-by: Jagan Teki <jagan@amarulasolutions.com>\nSigned-off-by: YouMin Chen <cym@rock-chips.com>\n---\n arch/arm/include/asm/arch-rockchip/sdram_common.h | 1 +\n drivers/ram/rockchip/sdram_rk3399.c               | 3 +--\n 2 files changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/arch/arm/include/asm/arch-rockchip/sdram_common.h b/arch/arm/include/asm/arch-rockchip/sdram_common.h\nindex db9e30126f..e7f15a7cf9 100644\n--- a/arch/arm/include/asm/arch-rockchip/sdram_common.h\n+++ b/arch/arm/include/asm/arch-rockchip/sdram_common.h\n@@ -83,6 +83,7 @@ struct sdram_base_params {\n \t\t\t\t\t SYS_REG_RANK_SHIFT(ch))\n #define SYS_REG_COL_SHIFT(ch)\t\t(9 + (ch) * 16)\n #define SYS_REG_COL_MASK\t\t3\n+#define SYS_REG_ENC_COL(n, ch)\t\t(((n) - 9) << SYS_REG_COL_SHIFT(ch))\n #define SYS_REG_BK_SHIFT(ch)\t\t(8 + (ch) * 16)\n #define SYS_REG_BK_MASK\t\t\t1\n #define SYS_REG_CS0_ROW_SHIFT(ch)\t(6 + (ch) * 16)\ndiff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c\nindex c2390a771c..f6a83f2acf 100644\n--- a/drivers/ram/rockchip/sdram_rk3399.c\n+++ b/drivers/ram/rockchip/sdram_rk3399.c\n@@ -1092,8 +1092,7 @@ static void dram_all_config(struct dram_info *dram,\n \t\tsys_reg |= SYS_REG_ENC_ROW_3_4(info->cap_info.row_3_4, channel);\n \t\tsys_reg |= SYS_REG_ENC_CHINFO(channel);\n \t\tsys_reg |= SYS_REG_ENC_RANK(info->cap_info.rank, channel);\n-\t\tsys_reg |= (info->cap_info.col - 9) <<\n-\t\t\t   SYS_REG_COL_SHIFT(channel);\n+\t\tsys_reg |= SYS_REG_ENC_COL(info->cap_info.col, channel);\n \t\tsys_reg |= info->cap_info.bk == 3 ? 0 : 1 <<\n \t\t\t   SYS_REG_BK_SHIFT(channel);\n \t\tsys_reg |= (info->cap_info.cs0_row - 13) <<\n",
    "prefixes": [
        "U-Boot",
        "v3",
        "06/57"
    ]
}