{"id":816927,"url":"http://patchwork.ozlabs.org/api/patches/816927/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/1506005496-8635-5-git-send-email-jjhiblot@ti.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/projects/18/?format=json","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":"<1506005496-8635-5-git-send-email-jjhiblot@ti.com>","list_archive_url":null,"date":"2017-09-21T14:51:35","name":"[U-Boot,v2,4/5] mmc: omap_hsmmc: Enable Auto command (CMD12) enable","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"6d420453c286f529b6d2494acf5b21681ab22857","submitter":{"id":70508,"url":"http://patchwork.ozlabs.org/api/people/70508/?format=json","name":"Jean-Jacques Hiblot","email":"jjhiblot@ti.com"},"delegate":{"id":3651,"url":"http://patchwork.ozlabs.org/api/users/3651/?format=json","username":"trini","first_name":"Tom","last_name":"Rini","email":"trini@ti.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/1506005496-8635-5-git-send-email-jjhiblot@ti.com/mbox/","series":[{"id":4406,"url":"http://patchwork.ozlabs.org/api/series/4406/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=4406","date":"2017-09-21T14:51:31","name":"mmc: omap_hsmmc: Add support for ADMA","version":2,"mbox":"http://patchwork.ozlabs.org/series/4406/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/816927/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/816927/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=\"wQVAtFtx\";\n\tdkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xyflF4cRQz9t3w\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 22 Sep 2017 00:54:16 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 7459DC22072; Thu, 21 Sep 2017 14:53:18 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 48B8BC22046;\n\tThu, 21 Sep 2017 14:52:33 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid C1CCFC22046; Thu, 21 Sep 2017 14:52:01 +0000 (UTC)","from fllnx210.ext.ti.com (fllnx210.ext.ti.com [198.47.19.17])\n\tby lists.denx.de (Postfix) with ESMTPS id 3C693C2200A\n\tfor <u-boot@lists.denx.de>; Thu, 21 Sep 2017 14:51:58 +0000 (UTC)","from dflxv15.itg.ti.com ([128.247.5.124])\n\tby fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id v8LEpt9B005525; \n\tThu, 21 Sep 2017 09:51:55 -0500","from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33])\n\tby dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v8LEptWL028024;\n\tThu, 21 Sep 2017 09:51:55 -0500","from DLEE109.ent.ti.com (157.170.170.41) by DLEE103.ent.ti.com\n\t(157.170.170.33) 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:51:55 -0500","from dflp32.itg.ti.com (10.64.6.15) by DLEE109.ent.ti.com\n\t(157.170.170.41) 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:51:55 -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 v8LEprb7009818;\n\tThu, 21 Sep 2017 09:51:54 -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=1506005515;\n\tbh=UvYeT3jm6DXxVhoq3tfLffoypOogDrMkGjFxori84dI=;\n\th=From:To:CC:Subject:Date:In-Reply-To:References;\n\tb=wQVAtFtxKl1C/q8QMY/UnyWS7Xhy8fnxwLn5zxtI5rhBl++adBV2EMrwSj5YGcIlL\n\tGHHsinnUW5F62iHjyfvANTVdUCvgqkCnUIR7iBsujGSrqGU5VJ5De47SckZQs+aybf\n\tj3gWkyQcH9/rp7g9xc0KhZi94tQ32fmqgmVQPRMM=","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:51:35 +0200","Message-ID":"<1506005496-8635-5-git-send-email-jjhiblot@ti.com>","X-Mailer":"git-send-email 1.9.1","In-Reply-To":"<1506005496-8635-1-git-send-email-jjhiblot@ti.com>","References":"<1506005496-8635-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 4/5] mmc: omap_hsmmc: Enable Auto command\n\t(CMD12) enable","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":"From: Kishon Vijay Abraham I <kishon@ti.com>\n\nInstead of sending STOP TRANSMISSION command from MMC core, enable\nthe auto command feature so that the Host Controller issues CMD12\nautomatically when last block transfer is completed.\n\nSigned-off-by: Kishon Vijay Abraham I <kishon@ti.com>\nSigned-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>\n---\n drivers/mmc/omap_hsmmc.c | 6 +++++-\n 1 file changed, 5 insertions(+), 1 deletion(-)","diff":"diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c\nindex 3cac6ea..fcda0e2 100644\n--- a/drivers/mmc/omap_hsmmc.c\n+++ b/drivers/mmc/omap_hsmmc.c\n@@ -492,6 +492,10 @@ static int omap_hsmmc_send_cmd(struct udevice *dev, struct mmc_cmd *cmd,\n \tulong start;\n \n \tmmc_base = priv->base_addr;\n+\n+\tif (cmd->cmdidx == MMC_CMD_STOP_TRANSMISSION)\n+\t\treturn 0;\n+\n \tstart = get_timer(0);\n \twhile ((readl(&mmc_base->pstate) & (DATI_MASK | CMDI_MASK)) != 0) {\n \t\tif (get_timer(0) - start > MAX_RETRY_MS) {\n@@ -548,7 +552,7 @@ static int omap_hsmmc_send_cmd(struct udevice *dev, struct mmc_cmd *cmd,\n \tif (data) {\n \t\tif ((cmd->cmdidx == MMC_CMD_READ_MULTIPLE_BLOCK) ||\n \t\t\t (cmd->cmdidx == MMC_CMD_WRITE_MULTIPLE_BLOCK)) {\n-\t\t\tflags |= (MSBS_MULTIBLK | BCE_ENABLE);\n+\t\t\tflags |= (MSBS_MULTIBLK | BCE_ENABLE | ACEN_ENABLE);\n \t\t\tdata->blocksize = 512;\n \t\t\twritel(data->blocksize | (data->blocks << 16),\n \t\t\t\t\t\t\t&mmc_base->blk);\n","prefixes":["U-Boot","v2","4/5"]}