Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1132670/?format=api
{ "id": 1132670, "url": "http://patchwork.ozlabs.org/api/patches/1132670/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20190716115745.12585-13-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-13-jagan@amarulasolutions.com>", "list_archive_url": null, "date": "2019-07-16T11:57:00", "name": "[U-Boot,v3,12/57] ram: rk3399: Rename sys_reg with sys_reg2", "commit_ref": "e0ddb0ba214f0bf05a66094a347169e617936c2b", "pull_url": null, "state": "accepted", "archived": false, "hash": "82e52d8806c028c8288ee8d9d5dc05df53421f48", "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-13-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/1132670/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1132670/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=\"L1qyMjdE\"; \n\tdkim-atps=neutral" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 45nzYd0gmqz9s00\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 16 Jul 2019 22:03:01 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid B5657C21D65; Tue, 16 Jul 2019 11:59:41 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id AE4B9C21E12;\n\tTue, 16 Jul 2019 11:59:20 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid ED2A1C21DEC; Tue, 16 Jul 2019 11:58:45 +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 C4196C21DED\n\tfor <u-boot@lists.denx.de>; Tue, 16 Jul 2019 11:58:40 +0000 (UTC)", "by mail-pg1-f195.google.com with SMTP id s1so3028654pgr.2\n\tfor <u-boot@lists.denx.de>; Tue, 16 Jul 2019 04:58:40 -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.36\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 16 Jul 2019 04:58:38 -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=kFNo/GXViEG9p7wSNdfRyO+MY25YONaeT6MWxgn+4Hs=;\n\tb=L1qyMjdEP9E5z6Sv5OLfuR8qG9PYNOQxglPbonQ91yWP1Oroh0uKI0O+eR3gWwf5UP\n\tyaufR2PSkHydoygwZcGY4SEEFyStg0It+PzcXDi8ju8d1lNigimWiD+5bCkUKx7qdMOa\n\t4UZnl7cMCBL98vsNcORb3NzvlmVpqunwuyXrI=", "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=kFNo/GXViEG9p7wSNdfRyO+MY25YONaeT6MWxgn+4Hs=;\n\tb=P3H/PAdUe5oA7PcEfCe4gNN99MWOXQWM0fvkA49/yT9ljC2eefkLr/9eAT1o28Ai79\n\tIhAjPEQ9Zw3I1g9WumrNXbJVLSzfus6s0GeeyztTWj/TjxuatSMIWMl0YxNYEY4+6PlV\n\tn/vC+vOvx/GsGqNNOz2G3CzdVL9sDDmtzoy6n6G9DDKoktR7rrED1HDH2E5OXMzYYPnt\n\tqFOZtwNtBSlJgD6B1St7AWiYA4otieQ6YNhw4mzAhfwLxeq44i3zS6D/ipHU0moK0045\n\tsSdLw+xuJuJHLpJvxBsnhORjbn12Rnt6rLPj+J451+KOpL/191Q8TzC2csdYPdNHoMFG\n\tGFIQ==", "X-Gm-Message-State": "APjAAAXj8ViINISimVuXLHztR54SUDunAUkjWKba5XviOoXJTx8ILTyz\n\tT4HEHRr7W0dmfhLrN+frqUO9hg==", "X-Google-Smtp-Source": "APXvYqz29N/UdASPaTLaod8HbeKTCKgoCM7TMbjbPzO8jCpprWzw3ZgiPfnaksqXDq5C5dCoZ4GCRg==", "X-Received": "by 2002:a65:500a:: with SMTP id\n\tf10mr2093572pgo.105.1563278319397; \n\tTue, 16 Jul 2019 04:58:39 -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:27:00 +0530", "Message-Id": "<20190716115745.12585-13-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 12/57] ram: rk3399: Rename sys_reg with sys_reg2", "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": "Use dram config variable name as sys_reg2 instead of sys_reg\nsince the final variable value is to written into a pmugrf\nregister named as sys_reg2.\n\nThis reflect the both variable and associated register\nnames are same and also help to add next sys_reg's to\nadd it in future.\n\nSigned-off-by: Jagan Teki <jagan@amarulasolutions.com>\nSigned-off-by: YouMin Chen <cym@rock-chips.com>\n---\n drivers/ram/rockchip/sdram_rk3399.c | 26 +++++++++++++-------------\n 1 file changed, 13 insertions(+), 13 deletions(-)", "diff": "diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c\nindex 2d3f0f6902..2ef969c07b 100644\n--- a/drivers/ram/rockchip/sdram_rk3399.c\n+++ b/drivers/ram/rockchip/sdram_rk3399.c\n@@ -1073,11 +1073,11 @@ static void set_ddrconfig(const struct chan_info *chan,\n static void dram_all_config(struct dram_info *dram,\n \t\t\t const struct rk3399_sdram_params *params)\n {\n-\tu32 sys_reg = 0;\n+\tu32 sys_reg2 = 0;\n \tunsigned int channel, idx;\n \n-\tsys_reg |= SYS_REG_ENC_DDRTYPE(params->base.dramtype);\n-\tsys_reg |= SYS_REG_ENC_NUM_CH(params->base.num_channels);\n+\tsys_reg2 |= SYS_REG_ENC_DDRTYPE(params->base.dramtype);\n+\tsys_reg2 |= SYS_REG_ENC_NUM_CH(params->base.num_channels);\n \n \tfor (channel = 0, idx = 0;\n \t (idx < params->base.num_channels) && (channel < 2);\n@@ -1089,15 +1089,15 @@ static void dram_all_config(struct dram_info *dram,\n \t\tif (params->ch[channel].cap_info.col == 0)\n \t\t\tcontinue;\n \t\tidx++;\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 |= SYS_REG_ENC_COL(info->cap_info.col, channel);\n-\t\tsys_reg |= SYS_REG_ENC_BK(info->cap_info.bk, channel);\n-\t\tsys_reg |= SYS_REG_ENC_CS0_ROW(info->cap_info.cs0_row, channel);\n-\t\tsys_reg |= SYS_REG_ENC_CS1_ROW(info->cap_info.cs1_row, channel);\n-\t\tsys_reg |= SYS_REG_ENC_BW(info->cap_info.bw, channel);\n-\t\tsys_reg |= SYS_REG_ENC_DBW(info->cap_info.dbw, channel);\n+\t\tsys_reg2 |= SYS_REG_ENC_ROW_3_4(info->cap_info.row_3_4, channel);\n+\t\tsys_reg2 |= SYS_REG_ENC_CHINFO(channel);\n+\t\tsys_reg2 |= SYS_REG_ENC_RANK(info->cap_info.rank, channel);\n+\t\tsys_reg2 |= SYS_REG_ENC_COL(info->cap_info.col, channel);\n+\t\tsys_reg2 |= SYS_REG_ENC_BK(info->cap_info.bk, channel);\n+\t\tsys_reg2 |= SYS_REG_ENC_CS0_ROW(info->cap_info.cs0_row, channel);\n+\t\tsys_reg2 |= SYS_REG_ENC_CS1_ROW(info->cap_info.cs1_row, channel);\n+\t\tsys_reg2 |= SYS_REG_ENC_BW(info->cap_info.bw, channel);\n+\t\tsys_reg2 |= SYS_REG_ENC_DBW(info->cap_info.dbw, channel);\n \n \t\tddr_msch_regs = dram->chan[channel].msch;\n \t\tnoc_timing = ¶ms->ch[channel].noc_timings;\n@@ -1118,7 +1118,7 @@ static void dram_all_config(struct dram_info *dram,\n \t\t\t\t 1 << 17);\n \t}\n \n-\twritel(sys_reg, &dram->pmugrf->os_reg2);\n+\twritel(sys_reg2, &dram->pmugrf->os_reg2);\n \trk_clrsetreg(&dram->pmusgrf->soc_con4, 0x1f << 10,\n \t\t params->base.stride << 10);\n \n", "prefixes": [ "U-Boot", "v3", "12/57" ] }