get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1103795,
    "url": "http://patchwork.ozlabs.org/api/patches/1103795/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20190523030546.16639-2-yinbo.zhu@nxp.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": "<20190523030546.16639-2-yinbo.zhu@nxp.com>",
    "list_archive_url": null,
    "date": "2019-05-23T03:05:46",
    "name": "[U-Boot,v5,2/2] mmc: fsl_esdhc: fix probe issue without CONFIG_BLK enabled",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "e0df972b30554b48a81e1c87d1c678548157c59c",
    "submitter": {
        "id": 71513,
        "url": "http://patchwork.ozlabs.org/api/people/71513/?format=api",
        "name": "Yinbo Zhu",
        "email": "yinbo.zhu@nxp.com"
    },
    "delegate": {
        "id": 2467,
        "url": "http://patchwork.ozlabs.org/api/users/2467/?format=api",
        "username": "prabhu_kush",
        "first_name": "Prabhakar",
        "last_name": "Kushwaha",
        "email": "prabhakar@freescale.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20190523030546.16639-2-yinbo.zhu@nxp.com/mbox/",
    "series": [
        {
            "id": 109380,
            "url": "http://patchwork.ozlabs.org/api/series/109380/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=109380",
            "date": "2019-05-23T03:05:45",
            "name": "[U-Boot,v5,1/2] armv8: fsl-lsch3: add clock support for the second eSDHC",
            "version": 5,
            "mbox": "http://patchwork.ozlabs.org/series/109380/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1103795/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1103795/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\tdmarc=fail (p=none dis=none) header.from=nxp.com"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 458Z9d6NMHz9s3Z\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 23 May 2019 13:04:53 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 8101CC21E08; Thu, 23 May 2019 03:04:18 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 00481C21BE5;\n\tThu, 23 May 2019 03:04:04 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid BD1CBC21C29; Thu, 23 May 2019 03:04:02 +0000 (UTC)",
            "from inva021.nxp.com (inva021.nxp.com [92.121.34.21])\n\tby lists.denx.de (Postfix) with ESMTPS id 8143BC21BE5\n\tfor <u-boot@lists.denx.de>; Thu, 23 May 2019 03:04:02 +0000 (UTC)",
            "from inva021.nxp.com (localhost [127.0.0.1])\n\tby inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 4F1B120025F;\n\tThu, 23 May 2019 05:04:02 +0200 (CEST)",
            "from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com\n\t[165.114.16.14])\n\tby inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 6365A2000E8;\n\tThu, 23 May 2019 05:03:57 +0200 (CEST)",
            "from localhost.localdomain (mega.ap.freescale.net [10.192.208.232])\n\tby invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 0F77E402DB;\n\tThu, 23 May 2019 11:03:50 +0800 (SGT)"
        ],
        "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": "Yinbo Zhu <yinbo.zhu@nxp.com>",
        "To": "york.sun@nxp.com, u-boot@lists.denx.de, prabhakar.kushwaha@nxp.com,\n\tvabhav.sharma@nxp.com",
        "Date": "Thu, 23 May 2019 11:05:46 +0800",
        "Message-Id": "<20190523030546.16639-2-yinbo.zhu@nxp.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20190523030546.16639-1-yinbo.zhu@nxp.com>",
        "References": "<20190523030546.16639-1-yinbo.zhu@nxp.com>",
        "X-Virus-Scanned": "ClamAV using ClamSMTP",
        "Cc": "andy.tang@nxp.com, xiaobo.xie@nxp.com, guanhua.gao@nxp.com,\n\tjiafei.pan@nxp.com, yinbo.zhu@nxp.com",
        "Subject": "[U-Boot] [PATCH v5 2/2] mmc: fsl_esdhc: fix probe issue without\n\tCONFIG_BLK enabled",
        "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": "From: Yangbo Lu <yangbo.lu@nxp.com>\n\nu-boot is trying to make CONFIG_BLK as a hard requirement\nfor DM_MMC. But now it's still not.\n\nconfig BLK\n\tbool \"Support block devices\"\n\tdepends on DM\n\tdefault y if DM_MMC\n\nWhen fsl_esdhc driver was reworked for DM_MMC support, DM_MMC\nwithout CONFIG_BLK enabled wasn't considered. This patch is to\nfix probe issue without CONFIG_BLK enabled.\n\nSigned-off-by: Yangbo Lu <yangbo.lu@nxp.com>\nSigned-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>\n---\nChange in v2:\nChange in v3:\n                Remove non-TFA patch\nChange in v4:\n                update the Copyright information\nChange in v5:\n                Add NXP Copyright information\n\n drivers/mmc/fsl_esdhc.c | 31 ++++++++++++++++++++++++++++++-\n 1 file changed, 30 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c\nindex 3cdfa7f5a6..8ed1b7b553 100644\n--- a/drivers/mmc/fsl_esdhc.c\n+++ b/drivers/mmc/fsl_esdhc.c\n@@ -1,6 +1,7 @@\n // SPDX-License-Identifier: GPL-2.0+\n /*\n- * Copyright 2007, 2010-2011 Freescale Semiconductor, Inc\n+ * Copyright 2007-2016 Freescale Semiconductor, Inc.\n+ * Copyright 2017-2019 NXP Semiconductors\n  * Andy Fleming\n  *\n  * Based vaguely on the pxa mmc code:\n@@ -25,6 +26,10 @@\n #include <asm-generic/gpio.h>\n #include <dm/pinctrl.h>\n \n+#if !CONFIG_IS_ENABLED(BLK)\n+#include \"mmc_private.h\"\n+#endif\n+\n DECLARE_GLOBAL_DATA_PTR;\n \n #define SDHCI_IRQ_EN_BITS\t\t(IRQSTATEN_CC | IRQSTATEN_TC | \\\n@@ -34,6 +39,7 @@ DECLARE_GLOBAL_DATA_PTR;\n \t\t\t\tIRQSTATEN_DEBE | IRQSTATEN_BRR | IRQSTATEN_BWR | \\\n \t\t\t\tIRQSTATEN_DINT)\n #define MAX_TUNING_LOOP 40\n+#define ESDHC_DRIVER_STAGE_VALUE 0xffffffff\n \n struct fsl_esdhc {\n \tuint    dsaddr;\t\t/* SDMA system address register */\n@@ -1401,6 +1407,9 @@ static int fsl_esdhc_probe(struct udevice *dev)\n \tfdt_addr_t addr;\n \tunsigned int val;\n \tstruct mmc *mmc;\n+#if !CONFIG_IS_ENABLED(BLK)\n+\tstruct blk_desc *bdesc;\n+#endif\n \tint ret;\n \n \taddr = dev_read_addr(dev);\n@@ -1529,6 +1538,26 @@ static int fsl_esdhc_probe(struct udevice *dev)\n \tmmc = &plat->mmc;\n \tmmc->cfg = &plat->cfg;\n \tmmc->dev = dev;\n+#if !CONFIG_IS_ENABLED(BLK)\n+\tmmc->priv = priv;\n+\n+\t/* Setup dsr related values */\n+\tmmc->dsr_imp = 0;\n+\tmmc->dsr = ESDHC_DRIVER_STAGE_VALUE;\n+\t/* Setup the universal parts of the block interface just once */\n+\tbdesc = mmc_get_blk_desc(mmc);\n+\tbdesc->if_type = IF_TYPE_MMC;\n+\tbdesc->removable = 1;\n+\tbdesc->devnum = mmc_get_next_devnum();\n+\tbdesc->block_read = mmc_bread;\n+\tbdesc->block_write = mmc_bwrite;\n+\tbdesc->block_erase = mmc_berase;\n+\n+\t/* setup initial part type */\n+\tbdesc->part_type = mmc->cfg->part_type;\n+\tmmc_list_add(mmc);\n+#endif\n+\n \tupriv->mmc = mmc;\n \n \treturn esdhc_init_common(priv, mmc);\n",
    "prefixes": [
        "U-Boot",
        "v5",
        "2/2"
    ]
}