Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/816900/?format=api
{ "id": 816900, "url": "http://patchwork.ozlabs.org/api/patches/816900/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1506004213-22620-15-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-15-git-send-email-jjhiblot@ti.com>", "list_archive_url": null, "date": "2017-09-21T14:30:01", "name": "[U-Boot,v2,14/26] mmc: Add a new callback function to perform the 74 clocks cycle sequence", "commit_ref": "318a7a576bc49aa8b4207e694d3fbd48c663d6ac", "pull_url": null, "state": "accepted", "archived": false, "hash": "4904186abe5cb4e7fac98c2b814afefdabc80fdf", "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-15-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/816900/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/816900/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=\"ukRGfOiC\";\n\tdkim-atps=neutral" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xyfPY62mjz9sNc\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 22 Sep 2017 00:38:57 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid 97E2AC21FF8; Thu, 21 Sep 2017 14:33:39 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 2A71AC21FFC;\n\tThu, 21 Sep 2017 14:31:39 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid 956B8C21DE8; Thu, 21 Sep 2017 14:30:56 +0000 (UTC)", "from lelnx193.ext.ti.com (lelnx193.ext.ti.com [198.47.27.77])\n\tby lists.denx.de (Postfix) with ESMTPS id 54A8FC22027\n\tfor <u-boot@lists.denx.de>; Thu, 21 Sep 2017 14:30:51 +0000 (UTC)", "from dflxv15.itg.ti.com ([128.247.5.124])\n\tby lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id v8LEUnVj029490; \n\tThu, 21 Sep 2017 09:30:49 -0500", "from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32])\n\tby dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v8LEUnIJ028832;\n\tThu, 21 Sep 2017 09:30:49 -0500", "from DLEE100.ent.ti.com (157.170.170.30) by DLEE102.ent.ti.com\n\t(157.170.170.32) 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:48 -0500", "from dflp32.itg.ti.com (10.64.6.15) by DLEE100.ent.ti.com\n\t(157.170.170.30) 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:49 -0500", "from localhost (ileax41-snat.itg.ti.com [10.172.224.153])\n\tby dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v8LEUlpg016451;\n\tThu, 21 Sep 2017 09:30:48 -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=1506004249;\n\tbh=LC3p4z2YTbEXPPjs9tDR07RIL4VofHJ4mQUIEzTYI2c=;\n\th=From:To:CC:Subject:Date:In-Reply-To:References;\n\tb=ukRGfOiCd5p3HboIQeVVEtf2zMODzTZgFXI+AdB5u/VuV8GK0CRn9TQHrFGl8wfsM\n\tMuVB98ME+fpbYpI5DYJC8uETipjygbRPMSUeSxo33nyqCAHCzY7HyDz9yH75R7r7z7\n\tACW+Da2kpCCpeUuJIERaSVoKNTQC37ajPDsVHkoM=", "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:30:01 +0200", "Message-ID": "<1506004213-22620-15-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 14/26] mmc: Add a new callback function to\n\tperform the 74 clocks cycle sequence", "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": "Add a new callback function *send_init_stream* which start a sequence of\nat least 74 clock cycles.\nThe mmc core uses *mmc_send_init_stream* in order to invoke the callback\nfunction. This will be used during power cycle where the specification\nrequires such a sequence after power up.\n\nSigned-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>\n---\n drivers/mmc/mmc-uclass.c | 13 +++++++++++++\n drivers/mmc/mmc.c | 6 ++++++\n include/mmc.h | 10 ++++++++++\n 3 files changed, 29 insertions(+)", "diff": "diff --git a/drivers/mmc/mmc-uclass.c b/drivers/mmc/mmc-uclass.c\nindex 5dda20c..9c6a8ba 100644\n--- a/drivers/mmc/mmc-uclass.c\n+++ b/drivers/mmc/mmc-uclass.c\n@@ -51,6 +51,19 @@ int mmc_set_ios(struct mmc *mmc)\n \treturn dm_mmc_set_ios(mmc->dev);\n }\n \n+void dm_mmc_send_init_stream(struct udevice *dev)\n+{\n+\tstruct dm_mmc_ops *ops = mmc_get_ops(dev);\n+\n+\tif (ops->send_init_stream)\n+\t\tops->send_init_stream(dev);\n+}\n+\n+void mmc_send_init_stream(struct mmc *mmc)\n+{\n+\tdm_mmc_send_init_stream(mmc->dev);\n+}\n+\n int dm_mmc_get_wp(struct udevice *dev)\n {\n \tstruct dm_mmc_ops *ops = mmc_get_ops(dev);\ndiff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c\nindex 46ec5e1..fd93691 100644\n--- a/drivers/mmc/mmc.c\n+++ b/drivers/mmc/mmc.c\n@@ -1198,6 +1198,10 @@ static inline int bus_width(uint cap)\n }\n \n #if !CONFIG_IS_ENABLED(DM_MMC)\n+static void mmc_send_init_stream(struct mmc *mmc)\n+{\n+}\n+\n static int mmc_set_ios(struct mmc *mmc)\n {\n \tint ret = 0;\n@@ -1983,6 +1987,8 @@ int mmc_start_init(struct mmc *mmc)\n \tmmc_set_bus_width(mmc, 1);\n \tmmc_set_clock(mmc, 1);\n \n+\tmmc_send_init_stream(mmc);\n+\n \t/* Reset the Card */\n \terr = mmc_go_idle(mmc);\n \ndiff --git a/include/mmc.h b/include/mmc.h\nindex e524963..bd096ae 100644\n--- a/include/mmc.h\n+++ b/include/mmc.h\n@@ -361,6 +361,14 @@ struct dm_mmc_ops {\n \tint (*set_ios)(struct udevice *dev);\n \n \t/**\n+\t * send_init_stream() - send the initialization stream: 74 clock cycles\n+\t * This is used after power up before sending the first command\n+\t *\n+\t * @dev:\tDevice to update\n+\t */\n+\tvoid (*send_init_stream)(struct udevice *dev);\n+\n+\t/**\n \t * get_cd() - See whether a card is present\n \t *\n \t * @dev:\tDevice to check\n@@ -382,11 +390,13 @@ struct dm_mmc_ops {\n int dm_mmc_send_cmd(struct udevice *dev, struct mmc_cmd *cmd,\n \t\t struct mmc_data *data);\n int dm_mmc_set_ios(struct udevice *dev);\n+void dm_mmc_send_init_stream(struct udevice *dev);\n int dm_mmc_get_cd(struct udevice *dev);\n int dm_mmc_get_wp(struct udevice *dev);\n \n /* Transition functions for compatibility */\n int mmc_set_ios(struct mmc *mmc);\n+void mmc_send_init_stream(struct mmc *mmc);\n int mmc_getcd(struct mmc *mmc);\n int mmc_getwp(struct mmc *mmc);\n \n", "prefixes": [ "U-Boot", "v2", "14/26" ] }