get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 814366,
    "url": "http://patchwork.ozlabs.org/api/patches/814366/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170915191115.28385-1-marek.vasut+renesas@gmail.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": "<20170915191115.28385-1-marek.vasut+renesas@gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-15T19:11:15",
    "name": "[U-Boot] net: ravb: Add PHY reset GPIO support",
    "commit_ref": "bddb44e94a51d387ff8fc307d21a5f76bd3093e9",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "a13126321e706e578a4193d85574017aabf052b6",
    "submitter": {
        "id": 1124,
        "url": "http://patchwork.ozlabs.org/api/people/1124/?format=api",
        "name": "Marek Vasut",
        "email": "marek.vasut@gmail.com"
    },
    "delegate": {
        "id": 1750,
        "url": "http://patchwork.ozlabs.org/api/users/1750/?format=api",
        "username": "iwamatsu",
        "first_name": "Nobuhiro",
        "last_name": "Iwamatsu",
        "email": "iwamatsu@nigauri.org"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170915191115.28385-1-marek.vasut+renesas@gmail.com/mbox/",
    "series": [
        {
            "id": 3360,
            "url": "http://patchwork.ozlabs.org/api/series/3360/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=3360",
            "date": "2017-09-15T19:11:15",
            "name": "[U-Boot] net: ravb: Add PHY reset GPIO support",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/3360/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/814366/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/814366/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;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"P1joomcF\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xv4lt5dbCz9s7g\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 16 Sep 2017 05:12:26 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 712F7C21E4A; Fri, 15 Sep 2017 19:11:50 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id E406EC21EC9;\n\tFri, 15 Sep 2017 19:11:42 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 70C5FC21EA2; Fri, 15 Sep 2017 19:11:18 +0000 (UTC)",
            "from mail-wm0-f66.google.com (mail-wm0-f66.google.com\n\t[74.125.82.66])\n\tby lists.denx.de (Postfix) with ESMTPS id ADF98C21E54\n\tfor <u-boot@lists.denx.de>; Fri, 15 Sep 2017 19:11:17 +0000 (UTC)",
            "by mail-wm0-f66.google.com with SMTP id e64so3557851wmi.2\n\tfor <u-boot@lists.denx.de>; Fri, 15 Sep 2017 12:11:17 -0700 (PDT)",
            "from kurokawa.lan (ip-86-49-107-50.net.upcbroadband.cz.\n\t[86.49.107.50]) by smtp.gmail.com with ESMTPSA id\n\tl131sm621566wmb.2.2017.09.15.12.11.16\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 15 Sep 2017 12:11:16 -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=FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID\n\tautolearn=unavailable autolearn_force=no version=3.4.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id;\n\tbh=kuIfysHlEQI8fTWJKO+UFlrYyf13+L0zptaFt9+EI1w=;\n\tb=P1joomcFHr9Q4rxODqbQM5W3rOkeTQ4Nh4yZ+njJ9bckT3x5+ylPFpr6hGiPMomDHt\n\t3GDTFY7yVuqVOo5s2Fxm1N8h5z8qdba8Pwi+Ss1e24PXXHRbt3rZ/Iwdb03bhBSHZ1Ps\n\tguM+lAhuXT8v8iK53UplRD86DIQCP6x6JB9tfHjnfkg9LMd1GVjwTITNn2qhTfLgsfZt\n\tvC3ZDNegm40uhp5LhWgs4TSFZJ8Lm77DMXMDDedv0At/Z6fXClA+2Uwyhk45PcaCFZo5\n\t9D7CFSp5DVQj/aZ0ljRe5jmIWe3jQKfUz5i+QiAEFmk4CKLxx2Ojppk+0qasXWAa7W0G\n\tcMrw==",
        "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;\n\tbh=kuIfysHlEQI8fTWJKO+UFlrYyf13+L0zptaFt9+EI1w=;\n\tb=rQ7RMecVg7F5wY3wni+iK6PrO/b+ACwlRw1Tly09PVJUKIL60mLslzgP3jLSQ8Sgr5\n\t/Jm/E/uWy2CwxJrV1DhGK7BF1Gw+uywKtEaAbDZCd0iwLRw3vewwJC1uuJqOfQcqsFJB\n\t8hTbpkh9jUaXGqW1Je/pMaQ1wHWsIAYNJwx3IImFYW/iSq0YbM+tzxuB0m/VUD7P2ucf\n\tZ1EnLswwcxYONqekQ5KYvYONzxJ6XTpqeEvZdmaCDBVwWc2O60BibpIvYaXR3vmNfO1p\n\tgOe97uTerIEXX4n6ToEVlGWCAP8cXyEx85m1MktjelxdNxvMDvXqateOyT43jvrop/zq\n\tpdZw==",
        "X-Gm-Message-State": "AHPjjUhB2taJIvczN/02QFFtjB6dalYmOOmbGS3/AQaT5wlkSVNfK3Ci\n\t33/e7Cm2EzEXZqipDInR6vf1dHW5",
        "X-Google-Smtp-Source": "AOwi7QCvzysAafgubQjWI4/9Q9vjzObHVHOJXd/PL51UdiY7chFgLPOuZMctprjrkwCmtWe/Ct7LMw==",
        "X-Received": "by 10.28.149.204 with SMTP id x195mr3637555wmd.78.1505502677131; \n\tFri, 15 Sep 2017 12:11:17 -0700 (PDT)",
        "From": "Marek Vasut <marek.vasut@gmail.com>",
        "X-Google-Original-From": "Marek Vasut <marek.vasut+renesas@gmail.com>",
        "To": "u-boot@lists.denx.de",
        "Date": "Fri, 15 Sep 2017 21:11:15 +0200",
        "Message-Id": "<20170915191115.28385-1-marek.vasut+renesas@gmail.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "Cc": "Joe Hershberger <joe.hershberger@ni.com>,\n\tMarek Vasut <marek.vasut+renesas@gmail.com>",
        "Subject": "[U-Boot] [PATCH] net: ravb: Add PHY reset GPIO support",
        "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": "Add support for obtaining PHY reset GPIO from DT and toggling it\nbefore configuring the PHY to put the PHY into defined state.\n\nSigned-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>\nCc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>\nCc: Joe Hershberger <joe.hershberger@ni.com>\n---\n drivers/net/ravb.c | 13 +++++++++++++\n 1 file changed, 13 insertions(+)",
    "diff": "diff --git a/drivers/net/ravb.c b/drivers/net/ravb.c\nindex 8db127ba06..dc7a52534e 100644\n--- a/drivers/net/ravb.c\n+++ b/drivers/net/ravb.c\n@@ -18,6 +18,7 @@\n #include <linux/mii.h>\n #include <wait_bit.h>\n #include <asm/io.h>\n+#include <asm/gpio.h>\n \n /* Registers */\n #define RAVB_REG_CCC\t\t0x000\n@@ -122,6 +123,7 @@ struct ravb_priv {\n \tstruct mii_dev\t\t*bus;\n \tvoid __iomem\t\t*iobase;\n \tstruct clk\t\tclk;\n+\tstruct gpio_desc\treset_gpio;\n };\n \n static inline void ravb_flush_dcache(u32 addr, u32 len)\n@@ -302,6 +304,13 @@ static int ravb_phy_config(struct udevice *dev)\n \tstruct phy_device *phydev;\n \tint mask = 0xffffffff, reg;\n \n+\tif (dm_gpio_is_valid(&eth->reset_gpio)) {\n+\t\tdm_gpio_set_value(&eth->reset_gpio, 1);\n+\t\tmdelay(20);\n+\t\tdm_gpio_set_value(&eth->reset_gpio, 0);\n+\t\tmdelay(1);\n+\t}\n+\n \tphydev = phy_find_by_mask(eth->bus, mask, pdata->phy_interface);\n \tif (!phydev)\n \t\treturn -ENODEV;\n@@ -483,6 +492,9 @@ static int ravb_probe(struct udevice *dev)\n \tif (ret < 0)\n \t\tgoto err_mdio_alloc;\n \n+\tgpio_request_by_name_nodev(dev_ofnode(dev), \"reset-gpios\", 0,\n+\t\t\t\t   &eth->reset_gpio, GPIOD_IS_OUT);\n+\n \tmdiodev = mdio_alloc();\n \tif (!mdiodev) {\n \t\tret = -ENOMEM;\n@@ -516,6 +528,7 @@ static int ravb_remove(struct udevice *dev)\n \tfree(eth->phydev);\n \tmdio_unregister(eth->bus);\n \tmdio_free(eth->bus);\n+\tdm_gpio_free(dev, &eth->reset_gpio);\n \tunmap_physmem(eth->iobase, MAP_NOCACHE);\n \n \treturn 0;\n",
    "prefixes": [
        "U-Boot"
    ]
}