get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1132181,
    "url": "http://patchwork.ozlabs.org/api/patches/1132181/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20190715182856.21688-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": "<20190715182856.21688-7-jagan@amarulasolutions.com>",
    "list_archive_url": null,
    "date": "2019-07-15T18:28:44",
    "name": "[U-Boot,v3,06/18] ram: rk3399: Move pwrup_srefresh_exit to dram_info",
    "commit_ref": "fe42d4a19907d58b67983b0a5a287071fb2c3ed0",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "fa155ffb00933b3cc776dc77aa65ab611be0a012",
    "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/20190715182856.21688-7-jagan@amarulasolutions.com/mbox/",
    "series": [
        {
            "id": 119574,
            "url": "http://patchwork.ozlabs.org/api/series/119574/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=119574",
            "date": "2019-07-15T18:28:43",
            "name": "ram: rk3399: Add rank detection",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/119574/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1132181/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1132181/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=\"J1G/MjaF\"; \n\tdkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 45nXFJ6X4xz9s4Y\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 16 Jul 2019 04:32:18 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 54B0AC21F2F; Mon, 15 Jul 2019 18:31:09 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 51114C21FD2;\n\tMon, 15 Jul 2019 18:29:50 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid CF861C21F93; Mon, 15 Jul 2019 18:29:31 +0000 (UTC)",
            "from mail-pl1-f194.google.com (mail-pl1-f194.google.com\n\t[209.85.214.194])\n\tby lists.denx.de (Postfix) with ESMTPS id 2145EC21FC1\n\tfor <u-boot@lists.denx.de>; Mon, 15 Jul 2019 18:29:31 +0000 (UTC)",
            "by mail-pl1-f194.google.com with SMTP id m9so8678705pls.8\n\tfor <u-boot@lists.denx.de>; Mon, 15 Jul 2019 11:29:31 -0700 (PDT)",
            "from localhost.localdomain ([49.206.201.107])\n\tby smtp.gmail.com with ESMTPSA id\n\ty133sm20250075pfb.28.2019.07.15.11.29.26\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 15 Jul 2019 11:29: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=RCVD_IN_MSPIKE_H3,\n\tRCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID autolearn=unavailable autolearn_force=no\n\tversion=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=Rl7swlURdE/LDJNQb1LtixpuiUQXln+fnRJTxC/bfZU=;\n\tb=J1G/MjaF9osA/dykMM3zLN7Lsd09KYCmrkw1oVfOOQLiA/+ZJlDsaJps0+lf7GKiv/\n\t1Fe8xEwdQEFZzA3Cq03k/o6FNb5nXYPO8+5bPK/6MpbgD6hSgoIY3B/nNWCggL7Psdkc\n\tg6EY+91ifqTPrGT/XbPUNiiYSQcVoqvX1X1sY=",
        "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=Rl7swlURdE/LDJNQb1LtixpuiUQXln+fnRJTxC/bfZU=;\n\tb=h9n1o4dicK0v2LS+YAYP6dNiJysG+HJRHdItjh95I1HDbLhrb6YtdPrp8bWyeVs77S\n\tSz9P96G5b5mnZJSk7dJXpATyjXQWEwfBiyVMWH9k4Cg/Zljoo7f3bFgZjMNrcKd9LYu2\n\tkOy5RhLWIC2Jt7SlcJXCFCZqQaTEwj7eiCOOKRsAN9baDex+OGRJlwJC+fjjY7rxrlWx\n\tywgb1DXsLtAAilKoMUERtEuqllGcgpiLVEOH995d+5szsDZfGJrpM+s9HRSdedw9LBmY\n\t7sXVlS4iRRZct3iRtgMQCuoNMuAzeQ6P+GshWEp4qZC7ebReT7CBKw4i7BTynY2sstjK\n\taMXA==",
        "X-Gm-Message-State": "APjAAAXljSapNPW8Yw4vX+XeCOykAnK3mjcJ6ov/C/AlYst+liMK0V5p\n\tqUiy9D83g7L8pyaQ0QIzVfaD8GMkRvkkNQ==",
        "X-Google-Smtp-Source": "APXvYqxUnOROp2lmy9/CpfkO5SbwUXkTB/QQE8yTejmG6c00cnCdaU5y1K+sAMcm13nNOCuZS8BTGQ==",
        "X-Received": "by 2002:a17:902:2868:: with SMTP id\n\te95mr27967021plb.319.1563215369738; \n\tMon, 15 Jul 2019 11:29:29 -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": "Mon, 15 Jul 2019 23:58:44 +0530",
        "Message-Id": "<20190715182856.21688-7-jagan@amarulasolutions.com>",
        "X-Mailer": "git-send-email 2.18.0.321.gffc6fa0e3",
        "In-Reply-To": "<20190715182856.21688-1-jagan@amarulasolutions.com>",
        "References": "<20190715182856.21688-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/18] ram: rk3399: Move pwrup_srefresh_exit to\n\tdram_info",
        "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 pwrup_srefresh_exit to be part of dram_info so-that\nthe it can help to support pwrup_srefresh_exit in individual\nchannels while starting pctl in future.\n\nNo functionality change.\n\nSigned-off-by: Jagan Teki <jagan@amarulasolutions.com>\n---\n drivers/ram/rockchip/sdram_rk3399.c | 13 +++++++------\n 1 file changed, 7 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c\nindex a5da985e1a..6e944cafd9 100644\n--- a/drivers/ram/rockchip/sdram_rk3399.c\n+++ b/drivers/ram/rockchip/sdram_rk3399.c\n@@ -49,6 +49,7 @@ struct chan_info {\n struct dram_info {\n #if defined(CONFIG_TPL_BUILD) || \\\n \t(!defined(CONFIG_TPL) && defined(CONFIG_SPL_BUILD))\n+\tu32 pwrup_srefresh_exit;\n \tstruct chan_info chan[2];\n \tstruct clk ddr_clk;\n \tstruct rk3399_cru *cru;\n@@ -487,8 +488,8 @@ static int phy_io_config(const struct chan_info *chan,\n \treturn 0;\n }\n \n-static int pctl_cfg(const struct chan_info *chan, u32 channel,\n-\t\t    const struct rk3399_sdram_params *params)\n+static int pctl_cfg(struct dram_info *dram, const struct chan_info *chan,\n+\t\t    u32 channel, const struct rk3399_sdram_params *params)\n {\n \tu32 *denali_ctl = chan->pctl->denali_ctl;\n \tu32 *denali_pi = chan->pi->denali_pi;\n@@ -496,7 +497,6 @@ static int pctl_cfg(const struct chan_info *chan, u32 channel,\n \tconst u32 *params_ctl = params->pctl_regs.denali_ctl;\n \tconst u32 *params_phy = params->phy_regs.denali_phy;\n \tu32 tmp, tmp1, tmp2;\n-\tu32 pwrup_srefresh_exit;\n \tint ret;\n \tconst ulong timeout_ms = 200;\n \n@@ -518,7 +518,8 @@ static int pctl_cfg(const struct chan_info *chan, u32 channel,\n \twritel(params->phy_regs.denali_phy[911], &denali_phy[911]);\n \twritel(params->phy_regs.denali_phy[912], &denali_phy[912]);\n \n-\tpwrup_srefresh_exit = readl(&denali_ctl[68]) & PWRUP_SREFRESH_EXIT;\n+\tdram->pwrup_srefresh_exit = readl(&denali_ctl[68]) &\n+\t\t\t\t    PWRUP_SREFRESH_EXIT;\n \tclrbits_le32(&denali_ctl[68], PWRUP_SREFRESH_EXIT);\n \n \t/* PHY_DLL_RST_EN */\n@@ -594,7 +595,7 @@ static int pctl_cfg(const struct chan_info *chan, u32 channel,\n \tdebug(\"DRAM (%s): phy locked after %ld ms\\n\", __func__, get_timer(tmp));\n \n \tclrsetbits_le32(&denali_ctl[68], PWRUP_SREFRESH_EXIT,\n-\t\t\tpwrup_srefresh_exit);\n+\t\t\tdram->pwrup_srefresh_exit);\n \treturn 0;\n }\n \n@@ -1179,7 +1180,7 @@ static int sdram_init(struct dram_info *dram,\n \t\tif (channel >= params->base.num_channels)\n \t\t\tcontinue;\n \n-\t\tret = pctl_cfg(chan, channel, params);\n+\t\tret = pctl_cfg(dram, chan, channel, params);\n \t\tif (ret < 0) {\n \t\t\tprintf(\"%s: pctl config failed\\n\", __func__);\n \t\t\treturn ret;\n",
    "prefixes": [
        "U-Boot",
        "v3",
        "06/18"
    ]
}