Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1132171/?format=api
{ "id": 1132171, "url": "http://patchwork.ozlabs.org/api/patches/1132171/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20190715182110.21336-5-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": "<20190715182110.21336-5-jagan@amarulasolutions.com>", "list_archive_url": null, "date": "2019-07-15T18:20:59", "name": "[U-Boot,v3,04/15] ram: rk3399: Handle pctl_cfg return type", "commit_ref": "d4b4bb47c631093fe39177f889164730737c368e", "pull_url": null, "state": "accepted", "archived": false, "hash": "8b372fbde1d9b9ade735323562430647af1629df", "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/20190715182110.21336-5-jagan@amarulasolutions.com/mbox/", "series": [ { "id": 119571, "url": "http://patchwork.ozlabs.org/api/series/119571/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=119571", "date": "2019-07-15T18:20:55", "name": "ram: rk3399: Code cleanup", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/119571/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1132171/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1132171/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=\"hQY2ym+H\"; \n\tdkim-atps=neutral" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 45nX7J1Rtvz9s3l\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 16 Jul 2019 04:27:08 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid D21C2C21FB5; Mon, 15 Jul 2019 18:22:56 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id C9779C21F0F;\n\tMon, 15 Jul 2019 18:22:08 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid 5EFCBC21F0F; Mon, 15 Jul 2019 18:21:40 +0000 (UTC)", "from mail-pf1-f195.google.com (mail-pf1-f195.google.com\n\t[209.85.210.195])\n\tby lists.denx.de (Postfix) with ESMTPS id 54EA6C21FAE\n\tfor <u-boot@lists.denx.de>; Mon, 15 Jul 2019 18:21:36 +0000 (UTC)", "by mail-pf1-f195.google.com with SMTP id g2so7815826pfq.0\n\tfor <u-boot@lists.denx.de>; Mon, 15 Jul 2019 11:21:36 -0700 (PDT)", "from localhost.localdomain ([49.206.201.107])\n\tby smtp.gmail.com with ESMTPSA id\n\tl15sm18152405pgf.5.2019.07.15.11.21.31\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 15 Jul 2019 11:21:34 -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=wtH+L++PhkK0wx6pSCUYJbZO6pOG2ERf3vcIuQe4X5s=;\n\tb=hQY2ym+H1XKJ1Wnq0PwWVIS9Xl9vPViycQ4PooTAopDlM/3kUswTbTks7/6CkDyPUC\n\tHd2hz30zXfEFTJhLn9Ft3hJhZyQ7oeUq/zo/EhXvxlwKs09OokMKaQnvI+ESXddMqmq8\n\tJWe0oVrmDBrGKRfD1Om8TKNehwmlbvrEBLtVk=", "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=wtH+L++PhkK0wx6pSCUYJbZO6pOG2ERf3vcIuQe4X5s=;\n\tb=fPAYBqWMRrADOUi6IoNvcAL/BmNCq681M4Mh0lhfa2MoxTRK2TnA1ukryjNmS4PFYZ\n\tZewnYHXeEx1TArf0HdkdXwJWu7CUNGqVCx8IyM+Dgs+mN/K8WUKiiv2fUdW8dRcHere/\n\tb8r4gzKwKuwtrNk8/8/eX/tFyEqvPTHbDPjZjnYb9Yj0e8W3pJG7Sjn/dMPWHtxDIQT4\n\t7sJdCm83kOmA63hst+xdx444UjJHOMO4B+qssj296Qqi5Q0nXBJSFUSU3iB5uOALN33K\n\tLxq1OVPhso5+kvYgh0H2OU157q1jOCNu9m8XIa06PTpuxTnieglUTQWKJtFdM3tFKijV\n\t+Ipg==", "X-Gm-Message-State": "APjAAAXnQI40wEVZ6WKwI8YIzYsDtwQRDrMY13Idys1z/2/io4UzeS2G\n\t8QYfIxv4kjP7TE+lIUESKRrgtA==", "X-Google-Smtp-Source": "APXvYqz9SmiPCjhDaJ66e3eNzEEkgGBqq+W48Y9UIctpiGPlz9eP6V9LBJx9ME98AEUkugUJu7KnFA==", "X-Received": "by 2002:a63:d448:: with SMTP id i8mr9006870pgj.173.1563214894885;\n\tMon, 15 Jul 2019 11:21:34 -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:50:59 +0530", "Message-Id": "<20190715182110.21336-5-jagan@amarulasolutions.com>", "X-Mailer": "git-send-email 2.18.0.321.gffc6fa0e3", "In-Reply-To": "<20190715182110.21336-1-jagan@amarulasolutions.com>", "References": "<20190715182110.21336-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 04/15] ram: rk3399: Handle pctl_cfg return type", "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 proper return type handling of pctl_cfg with\nmeaningful print statement.\n\nSigned-off-by: Jagan Teki <jagan@amarulasolutions.com>\n---\n drivers/ram/rockchip/sdram_rk3399.c | 8 +++++---\n 1 file changed, 5 insertions(+), 3 deletions(-)", "diff": "diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c\nindex c918c2e588..de5d8c1b5f 100644\n--- a/drivers/ram/rockchip/sdram_rk3399.c\n+++ b/drivers/ram/rockchip/sdram_rk3399.c\n@@ -1063,6 +1063,7 @@ static int sdram_init(struct dram_info *dram,\n \tunsigned char dramtype = params->base.dramtype;\n \tunsigned int ddr_freq = params->base.ddr_freq;\n \tint channel;\n+\tint ret;\n \n \tdebug(\"Starting SDRAM initialization...\\n\");\n \n@@ -1082,9 +1083,10 @@ static int sdram_init(struct dram_info *dram,\n \t\tif (channel >= params->base.num_channels)\n \t\t\tcontinue;\n \n-\t\tif (pctl_cfg(chan, channel, params) != 0) {\n-\t\t\tprintf(\"pctl_cfg fail, reset\\n\");\n-\t\t\treturn -EIO;\n+\t\tret = pctl_cfg(chan, channel, params);\n+\t\tif (ret < 0) {\n+\t\t\tprintf(\"%s: pctl config failed\\n\", __func__);\n+\t\t\treturn ret;\n \t\t}\n \n \t\t/* LPDDR2/LPDDR3 need to wait DAI complete, max 10us */\n", "prefixes": [ "U-Boot", "v3", "04/15" ] }