get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 801278,
    "url": "http://patchwork.ozlabs.org/api/patches/801278/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1502730333-63031-4-git-send-email-philipp.tomsich@theobroma-systems.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": "<1502730333-63031-4-git-send-email-philipp.tomsich@theobroma-systems.com>",
    "list_archive_url": null,
    "date": "2017-08-14T17:05:32",
    "name": "[U-Boot,RFC,3/4] rockchip: rk3368: adjust DMC driver for 32/64bit-aware OF_PLATDATA",
    "commit_ref": "1d70f0ac88dcd0ed9c17ec4c5e97db69de961319",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "d0942b0e88cc2b490c1df31ff6a9afe4c5aaef8c",
    "submitter": {
        "id": 53488,
        "url": "http://patchwork.ozlabs.org/api/people/53488/?format=api",
        "name": "Philipp Tomsich",
        "email": "philipp.tomsich@theobroma-systems.com"
    },
    "delegate": {
        "id": 69486,
        "url": "http://patchwork.ozlabs.org/api/users/69486/?format=api",
        "username": "ptomsich",
        "first_name": "Philipp",
        "last_name": "Tomsich",
        "email": "philipp.tomsich@theobroma-systems.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1502730333-63031-4-git-send-email-philipp.tomsich@theobroma-systems.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/801278/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/801278/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>)",
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xWMgF6PQLz9t36\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 15 Aug 2017 03:15:04 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid E899AC21E07; Mon, 14 Aug 2017 17:06:05 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 3EEB4C21DC1;\n\tMon, 14 Aug 2017 17:05:49 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid A07ADC21D55; Mon, 14 Aug 2017 17:05:45 +0000 (UTC)",
            "from mail.theobroma-systems.com (vegas.theobroma-systems.com\n\t[144.76.126.164])\n\tby lists.denx.de (Postfix) with ESMTPS id 6619BC21C41\n\tfor <u-boot@lists.denx.de>; Mon, 14 Aug 2017 17:05:45 +0000 (UTC)",
            "from [86.59.122.178] (port=60345 helo=android.lan)\n\tby mail.theobroma-systems.com with esmtpsa\n\t(TLS1.2:RSA_AES_128_CBC_SHA256:128)\n\t(Exim 4.80) (envelope-from <philipp.tomsich@theobroma-systems.com>)\n\tid 1dhIoB-0004I2-2Q; Mon, 14 Aug 2017 19:05:43 +0200"
        ],
        "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=none autolearn=unavailable\n\tautolearn_force=no version=3.4.0",
        "From": "Philipp Tomsich <philipp.tomsich@theobroma-systems.com>",
        "To": "u-boot@lists.denx.de",
        "Date": "Mon, 14 Aug 2017 19:05:32 +0200",
        "Message-Id": "<1502730333-63031-4-git-send-email-philipp.tomsich@theobroma-systems.com>",
        "X-Mailer": "git-send-email 2.1.4",
        "In-Reply-To": "<1502730333-63031-1-git-send-email-philipp.tomsich@theobroma-systems.com>",
        "References": "<1502730333-63031-1-git-send-email-philipp.tomsich@theobroma-systems.com>",
        "Cc": "Klaus Goger <klaus.goger@theobroma-systems.com>",
        "Subject": "[U-Boot] [RFC PATCH 3/4] rockchip: rk3368: adjust DMC driver for\n\t32/64bit-aware OF_PLATDATA",
        "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": "With the new 32/64bit-aware dtoc, the type of reg is fdt64_t and the\nOF_PLATDATA structure layout changes.  This adjusts the DMC driver for\nthe RK3368 to track these changes.\n\nFor the time being (i.e. until regmap_init_mem_platdata works for the\n64bit case), we won't use regmap_init_mem_platdata here and simply\naccess of_plat.reg[] directly.\n\nSigned-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>\n---\n\n drivers/ram/rockchip/dmc-rk3368.c | 11 ++---------\n 1 file changed, 2 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/drivers/ram/rockchip/dmc-rk3368.c b/drivers/ram/rockchip/dmc-rk3368.c\nindex ca7b1ff..7577ff0 100644\n--- a/drivers/ram/rockchip/dmc-rk3368.c\n+++ b/drivers/ram/rockchip/dmc-rk3368.c\n@@ -893,18 +893,11 @@ static int conv_of_platdata(struct udevice *dev)\n {\n \tstruct rk3368_sdram_params *plat = dev_get_platdata(dev);\n \tstruct dtd_rockchip_rk3368_dmc *of_plat = &plat->of_plat;\n-\tint ret;\n \n \tplat->ddr_freq = of_plat->rockchip_ddr_frequency;\n \tplat->ddr_speed_bin = of_plat->rockchip_ddr_speed_bin;\n \tplat->memory_schedule = of_plat->rockchip_memory_schedule;\n \n-\tret = regmap_init_mem_platdata(dev, of_plat->reg,\n-\t\t\t\t       ARRAY_SIZE(of_plat->reg) / 2,\n-\t\t\t\t       &plat->map);\n-\tif (ret)\n-\t\treturn ret;\n-\n \treturn 0;\n }\n #endif\n@@ -933,8 +926,8 @@ static int rk3368_dmc_probe(struct udevice *dev)\n \tdebug(\"%s: pmugrf=%p\\n\", __func__, priv->pmugrf);\n \n #ifdef CONFIG_TPL_BUILD\n-\tpctl = regmap_get_range(plat->map, 0);\n-\tddrphy = regmap_get_range(plat->map, 1);\n+\tpctl = (struct rk3368_ddr_pctl *)plat->of_plat.reg[0];\n+\tddrphy = (struct rk3368_ddrphy *)plat->of_plat.reg[2];\n \tmsch = syscon_get_first_range(ROCKCHIP_SYSCON_MSCH);\n \tgrf = syscon_get_first_range(ROCKCHIP_SYSCON_GRF);\n \n",
    "prefixes": [
        "U-Boot",
        "RFC",
        "3/4"
    ]
}