Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/816904/?format=api
{ "id": 816904, "url": "http://patchwork.ozlabs.org/api/patches/816904/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1506004213-22620-8-git-send-email-jjhiblot@ti.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": "<1506004213-22620-8-git-send-email-jjhiblot@ti.com>", "list_archive_url": null, "date": "2017-09-21T14:29:54", "name": "[U-Boot,v2,07/26] mmc: Add a function to dump the mmc capabilities", "commit_ref": "4c9d2aaa7ea720ff8c304dd8621afa3ed085486e", "pull_url": null, "state": "accepted", "archived": false, "hash": "efe58994b8e3c7f04119c0e2f93610417d8d4b20", "submitter": { "id": 70508, "url": "http://patchwork.ozlabs.org/api/people/70508/?format=api", "name": "Jean-Jacques Hiblot", "email": "jjhiblot@ti.com" }, "delegate": { "id": 12423, "url": "http://patchwork.ozlabs.org/api/users/12423/?format=api", "username": "Jaehoon", "first_name": "Jaehoon", "last_name": "Chung", "email": "jh80.chung@samsung.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1506004213-22620-8-git-send-email-jjhiblot@ti.com/mbox/", "series": [ { "id": 4400, "url": "http://patchwork.ozlabs.org/api/series/4400/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=4400", "date": "2017-09-21T14:29:47", "name": "mmc: Add support for HS200 and UHS modes", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/4400/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/816904/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/816904/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\" (1024-bit key;\n\tunprotected) header.d=ti.com header.i=@ti.com header.b=\"J27lqi6Q\";\n\tdkim-atps=neutral" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xyfRC19qYz9t3C\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 22 Sep 2017 00:40:22 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid A0888C22012; Thu, 21 Sep 2017 14:33:04 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 585F1C21F81;\n\tThu, 21 Sep 2017 14:31:03 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid F2B46C21D8C; Thu, 21 Sep 2017 14:30:42 +0000 (UTC)", "from fllnx210.ext.ti.com (fllnx210.ext.ti.com [198.47.19.17])\n\tby lists.denx.de (Postfix) with ESMTPS id DA817C21FFC\n\tfor <u-boot@lists.denx.de>; Thu, 21 Sep 2017 14:30:37 +0000 (UTC)", "from dlelxv90.itg.ti.com ([172.17.2.17])\n\tby fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id v8LEUXoF000326; \n\tThu, 21 Sep 2017 09:30:33 -0500", "from DLEE101.ent.ti.com (dlee101.ent.ti.com [157.170.170.31])\n\tby dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v8LEUXwp019645; \n\tThu, 21 Sep 2017 09:30:33 -0500", "from DLEE106.ent.ti.com (157.170.170.36) by DLEE101.ent.ti.com\n\t(157.170.170.31) with Microsoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34;\n\tThu, 21 Sep 2017 09:30:33 -0500", "from dflp33.itg.ti.com (10.64.6.16) by DLEE106.ent.ti.com\n\t(157.170.170.36) with Microsoft SMTP Server (version=TLS1_0,\n\tcipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend\n\tTransport; Thu, 21 Sep 2017 09:30:33 -0500", "from localhost (ileax41-snat.itg.ti.com [10.172.224.153])\n\tby dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v8LEUWRg000800;\n\tThu, 21 Sep 2017 09:30:32 -0500" ], "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_DNSWL_NONE,\n\tT_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com;\n\ts=ti-com-17Q1; t=1506004233;\n\tbh=qOt/0PsESyumaYezCjMrBYl2TuDx/oQQaIf5eCXUhOo=;\n\th=From:To:CC:Subject:Date:In-Reply-To:References;\n\tb=J27lqi6QoNh8k5a+8b1i2iDCtt8059q2JcYi/RMaN+9KlfQDvcr5ShVK9amO/JbPK\n\t2cw32GUqtpqNQhlOx2A/J2TnLfeN2pQ/vvo2pPtpyIF+o07s1heATvbwXJRMQaW+Ox\n\tkIwRkYUZ2vrBGAVpTRfWKs6CTZrKsWHar3tpYyo8=", "From": "Jean-Jacques Hiblot <jjhiblot@ti.com>", "To": "<jh80.chung@samsung.com>, <trini@konsulko.com>, <kishon@ti.com>,\n\t<sjg@chromium.org>", "Date": "Thu, 21 Sep 2017 16:29:54 +0200", "Message-ID": "<1506004213-22620-8-git-send-email-jjhiblot@ti.com>", "X-Mailer": "git-send-email 1.9.1", "In-Reply-To": "<1506004213-22620-1-git-send-email-jjhiblot@ti.com>", "References": "<1506004213-22620-1-git-send-email-jjhiblot@ti.com>", "MIME-Version": "1.0", "X-EXCLAIMER-MD-CONFIG": "e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180", "Cc": "u-boot@lists.denx.de", "Subject": "[U-Boot] [PATCH v2 07/26] mmc: Add a function to dump the mmc\n\tcapabilities", "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": "This adds a simple helper function to display information (bus width and\nmode) based on a capability mask. Useful for debug.\n\nSigned-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>\n---\n drivers/mmc/mmc.c | 24 ++++++++++++++++++++++++\n include/mmc.h | 1 +\n 2 files changed, 25 insertions(+)", "diff": "diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c\nindex 94b3a02..0b74e78 100644\n--- a/drivers/mmc/mmc.c\n+++ b/drivers/mmc/mmc.c\n@@ -1136,6 +1136,30 @@ static void mmc_set_bus_width(struct mmc *mmc, uint width)\n \tmmc_set_ios(mmc);\n }\n \n+#if CONFIG_IS_ENABLED(MMC_VERBOSE) || defined(DEBUG)\n+/*\n+ * helper function to display the capabilities in a human\n+ * friendly manner. The capabilities include bus width and\n+ * supported modes.\n+ */\n+void mmc_dump_capabilities(const char *text, uint caps)\n+{\n+\tenum bus_mode mode;\n+\n+\tprintf(\"%s: widths [\", text);\n+\tif (caps & MMC_MODE_8BIT)\n+\t\tprintf(\"8, \");\n+\tif (caps & MMC_MODE_4BIT)\n+\t\tprintf(\"4, \");\n+\tprintf(\"1] modes [\");\n+\n+\tfor (mode = MMC_LEGACY; mode < MMC_MODES_END; mode++)\n+\t\tif (MMC_CAP(mode) & caps)\n+\t\t\tprintf(\"%s, \", mmc_mode_name(mode));\n+\tprintf(\"\\b\\b]\\n\");\n+}\n+#endif\n+\n static int sd_select_bus_freq_width(struct mmc *mmc)\n {\n \tint err;\ndiff --git a/include/mmc.h b/include/mmc.h\nindex 76bd57a..dd83f14 100644\n--- a/include/mmc.h\n+++ b/include/mmc.h\n@@ -426,6 +426,7 @@ enum bus_mode {\n };\n \n const char *mmc_mode_name(enum bus_mode mode);\n+void mmc_dump_capabilities(const char *text, uint caps);\n \n /*\n * With CONFIG_DM_MMC enabled, struct mmc can be accessed from the MMC device\n", "prefixes": [ "U-Boot", "v2", "07/26" ] }