get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1132173,
    "url": "http://patchwork.ozlabs.org/api/patches/1132173/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20190715182110.21336-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": "<20190715182110.21336-13-jagan@amarulasolutions.com>",
    "list_archive_url": null,
    "date": "2019-07-15T18:21:07",
    "name": "[U-Boot,v3,12/15] ram: rk3399: Move common sdram structures in common header",
    "commit_ref": "e5e444aaa58402a27a173556fb4056d53f7a5501",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "5182daf119601e9f69b8266f830ac7f3c59bf3c1",
    "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-13-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/1132173/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1132173/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=\"C9ix2b+u\"; \n\tdkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 45nX7Y0x13z9s3l\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 16 Jul 2019 04:27:20 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 9883DC21FB2; Mon, 15 Jul 2019 18:24:45 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 6C53DC21F9E;\n\tMon, 15 Jul 2019 18:23:59 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 16990C21FA5; Mon, 15 Jul 2019 18:22:11 +0000 (UTC)",
            "from mail-pf1-f193.google.com (mail-pf1-f193.google.com\n\t[209.85.210.193])\n\tby lists.denx.de (Postfix) with ESMTPS id C2EBCC21FA3\n\tfor <u-boot@lists.denx.de>; Mon, 15 Jul 2019 18:22:03 +0000 (UTC)",
            "by mail-pf1-f193.google.com with SMTP id b13so7809827pfo.1\n\tfor <u-boot@lists.denx.de>; Mon, 15 Jul 2019 11:22:03 -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.59\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 15 Jul 2019 11:22:01 -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=GhyKwnagao9aNVYww6EAzysFAFTMSOWzSUv3cqsoz+w=;\n\tb=C9ix2b+usD/uJTj3mLKENkV66reAjn8KALmaP66tts0mfQ8RgGnjdxaASTWD9V6xwO\n\th2fPl/Co/ZVFyslJ5h1vCrxFMi0xcSLyCS2klrcwnavKQa+H8PmHn40X65Pd+pzuN4KK\n\tPotvAS0Vzx98OuX/96ZOMRBBkagUYK1/FNwVg=",
        "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=GhyKwnagao9aNVYww6EAzysFAFTMSOWzSUv3cqsoz+w=;\n\tb=iPrJv3Q16UNKXyd/ABC0OtirCkhXLppmc+92Aun8rtu3zpTYyFLw38qb/TqU6fvUMn\n\tm5HLDt46zQ+KOfsiCQIiGMQIG+vsAjGGohif9slYNqh3AC1Fpv9aqUcYtvorbMRqWn8E\n\ts00iv4fM6LBgZ5g00xJ/1o7qjJzdN+nyhgezH1sFziSGxHs7WyqtcFAeyWLTk25VDtRM\n\t2ekFnM2oRLW6k1xhTfNTtoKZIRkqAwJJ+H427H1u2NbDyiAUib8Gf5TlJrvwFfsv1w6c\n\tk4aSgTUDYNtPGdShjb4KOXElIKXH/gUt76CymtEwJbqz0+rmWZ+0plWxTr856mdQhm7O\n\tYuNg==",
        "X-Gm-Message-State": "APjAAAXNeevPt8LcohXCdMBz1cjbcmK0ArJnAq69sUV1vPMc0/HIpsYc\n\tR1JlUd38fQ6bJezhaBgIvpEf7w==",
        "X-Google-Smtp-Source": "APXvYqzFqPeuSDFERMr4ldoYF7yUtszt8ei5/RN8fQe4tjNLqoi+OfrTDU6ppJB8JXaPezA6DRfgCw==",
        "X-Received": "by 2002:a17:90a:db42:: with SMTP id\n\tu2mr30907608pjx.48.1563214922319; \n\tMon, 15 Jul 2019 11:22:02 -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:51:07 +0530",
        "Message-Id": "<20190715182110.21336-13-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 12/15] ram: rk3399: Move common sdram structures\n\tin common header",
        "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": "Move common sdram structures like sdram_cap_info, sdram_base_params\ninto sdram_common header, this would help to reuse the same\nfrom another controllers like px30.\n\nSigned-off-by: Jagan Teki <jagan@amarulasolutions.com>\n---\n .../include/asm/arch-rockchip/sdram_common.h  | 29 +++++++++++++++++++\n .../include/asm/arch-rockchip/sdram_rk3399.h  | 28 ------------------\n 2 files changed, 29 insertions(+), 28 deletions(-)",
    "diff": "diff --git a/arch/arm/include/asm/arch-rockchip/sdram_common.h b/arch/arm/include/asm/arch-rockchip/sdram_common.h\nindex 671c318d50..82ce3d3fc9 100644\n--- a/arch/arm/include/asm/arch-rockchip/sdram_common.h\n+++ b/arch/arm/include/asm/arch-rockchip/sdram_common.h\n@@ -5,6 +5,35 @@\n \n #ifndef _ASM_ARCH_SDRAM_COMMON_H\n #define _ASM_ARCH_SDRAM_COMMON_H\n+\n+struct sdram_cap_info {\n+\tunsigned int rank;\n+\t/* dram column number, 0 means this channel is invalid */\n+\tunsigned int col;\n+\t/* dram bank number, 3:8bank, 2:4bank */\n+\tunsigned int bk;\n+\t/* channel buswidth, 2:32bit, 1:16bit, 0:8bit */\n+\tunsigned int bw;\n+\t/* die buswidth, 2:32bit, 1:16bit, 0:8bit */\n+\tunsigned int dbw;\n+\t/*\n+\t * row_3_4 = 1: 6Gb or 12Gb die\n+\t * row_3_4 = 0: normal die, power of 2\n+\t */\n+\tunsigned int row_3_4;\n+\tunsigned int cs0_row;\n+\tunsigned int cs1_row;\n+\tunsigned int ddrconfig;\n+};\n+\n+struct sdram_base_params {\n+\tunsigned int ddr_freq;\n+\tunsigned int dramtype;\n+\tunsigned int num_channels;\n+\tunsigned int stride;\n+\tunsigned int odt;\n+};\n+\n /*\n  * sys_reg bitfield struct\n  * [31]\t\trow_3_4_ch1\ndiff --git a/arch/arm/include/asm/arch-rockchip/sdram_rk3399.h b/arch/arm/include/asm/arch-rockchip/sdram_rk3399.h\nindex 5614b94ecb..65c92cf744 100644\n--- a/arch/arm/include/asm/arch-rockchip/sdram_rk3399.h\n+++ b/arch/arm/include/asm/arch-rockchip/sdram_rk3399.h\n@@ -71,39 +71,11 @@ struct rk3399_ddr_cic_regs {\n /* DENALI_CTL_274 */\n #define MEM_RST_VALID\t1\n \n-struct sdram_cap_info {\n-\tunsigned int rank;\n-\t/* dram column number, 0 means this channel is invalid */\n-\tunsigned int col;\n-\t/* dram bank number, 3:8bank, 2:4bank */\n-\tunsigned int bk;\n-\t/* channel buswidth, 2:32bit, 1:16bit, 0:8bit */\n-\tunsigned int bw;\n-\t/* die buswidth, 2:32bit, 1:16bit, 0:8bit */\n-\tunsigned int dbw;\n-\t/*\n-\t * row_3_4 = 1: 6Gb or 12Gb die\n-\t * row_3_4 = 0: normal die, power of 2\n-\t */\n-\tunsigned int row_3_4;\n-\tunsigned int cs0_row;\n-\tunsigned int cs1_row;\n-\tunsigned int ddrconfig;\n-};\n-\n struct rk3399_sdram_channel {\n \tstruct sdram_cap_info cap_info;\n \tstruct rk3399_msch_timings noc_timings;\n };\n \n-struct sdram_base_params {\n-\tunsigned int ddr_freq;\n-\tunsigned int dramtype;\n-\tunsigned int num_channels;\n-\tunsigned int stride;\n-\tunsigned int odt;\n-};\n-\n struct rk3399_sdram_params {\n \tstruct rk3399_sdram_channel ch[2];\n \tstruct sdram_base_params base;\n",
    "prefixes": [
        "U-Boot",
        "v3",
        "12/15"
    ]
}