Message ID | 1515058844-16007-3-git-send-email-sivadur@xilinx.com |
---|---|
State | Superseded |
Delegated to: | Michal Simek |
Headers | show
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; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=xilinx.onmicrosoft.com header.i=@xilinx.onmicrosoft.com header.b="OTnSYWsQ"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zC2sz3vpyz9s72 for <incoming@patchwork.ozlabs.org>; Thu, 4 Jan 2018 20:43:19 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id EAD9DC21C2B; Thu, 4 Jan 2018 09:41:51 +0000 (UTC) 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=BAD_ENC_HEADER, SPF_HELO_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 035B6C21CB1; Thu, 4 Jan 2018 09:41:37 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 4DCB3C21DA9; Thu, 4 Jan 2018 09:41:03 +0000 (UTC) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0081.outbound.protection.outlook.com [104.47.32.81]) by lists.denx.de (Postfix) with ESMTPS id 33F2CC21DCA for <u-boot@lists.denx.de>; Thu, 4 Jan 2018 09:40:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=lHi+ghzoQgI2t/tiZhMcRy3ytIrnSxQgQZcbECBuEzM=; b=OTnSYWsQ7hsFW7tRjYjj1i9sBoEQJmx+AFo11pdIEggBqCuC/icacwQrhfBv+zsAbfQlx55RuxZy/0jEzUz0iExRTM+s3o2Z+roRpPGLjmA7BP0TfS4RI72UsSQ//wYYXP/qN83W2HoLH5vST28rdJOexgYaIpa8hDKqaSdS2uI= Received: from MWHPR0201CA0094.namprd02.prod.outlook.com (10.167.161.35) by CY4PR02MB3384.namprd02.prod.outlook.com (10.165.89.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.366.8; Thu, 4 Jan 2018 09:40:57 +0000 Received: from CY1NAM02FT050.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::202) by MWHPR0201CA0094.outlook.office365.com (2603:10b6:301:75::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.386.5 via Frontend Transport; Thu, 4 Jan 2018 09:40:56 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; samsung.com; dkim=none (message not signed) header.d=none;samsung.com; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by CY1NAM02FT050.mail.protection.outlook.com (10.152.75.65) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.345.12 via Frontend Transport; Thu, 4 Jan 2018 09:40:55 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from <siva.durga.paladugu@xilinx.com>) id 1eX218-00068W-9Q; Thu, 04 Jan 2018 01:40:54 -0800 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from <siva.durga.paladugu@xilinx.com>) id 1eX218-0004oS-5E; Thu, 04 Jan 2018 01:40:54 -0800 Received: from xsj-pvapsmtp01 (mailman.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w049elP8031123; Thu, 4 Jan 2018 01:40:47 -0800 Received: from [172.23.37.99] (helo=xhdsivadur40.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from <sivadur@xilinx.com>) id 1eX210-0004in-Pj; Thu, 04 Jan 2018 01:40:47 -0800 From: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> To: <u-boot@lists.denx.de> Date: Thu, 4 Jan 2018 15:10:39 +0530 Message-ID: <1515058844-16007-3-git-send-email-sivadur@xilinx.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515058844-16007-1-git-send-email-sivadur@xilinx.com> References: <1515058844-16007-1-git-send-email-sivadur@xilinx.com> X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23572.006 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(396003)(39860400002)(39380400002)(346002)(376002)(2980300002)(438002)(199004)(189003)(478600001)(8676002)(106002)(81156014)(316002)(81166006)(107886003)(8936002)(50226002)(9786002)(4326008)(36756003)(16586007)(54906003)(2351001)(50466002)(106466001)(48376002)(63266004)(305945005)(356003)(2906002)(7696005)(51416003)(5660300001)(77096006)(76176011)(2950100002)(47776003)(36386004)(6916009)(6666003)(107986001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR02MB3384; H:xsj-pvapsmtpgw01; FPR:; SPF:Pass; PTR:unknown-60-83.xilinx.com; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CY1NAM02FT050; 1:9l9NnIWjBb/UiFUDedDZUVcWBWijJLrA1KSWgJXTRXbRvwn6I0rbJKEUJ4acMQocsPuoW8t/PwW065uZd8fnKvWcq5pRqR6XVfyD9JRRCKN6CqRski0G1vzd72LIbA4S MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 69e36e3b-54c8-4eda-d815-08d5535740f6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4608076)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603307)(7153060); SRVR:CY4PR02MB3384; X-Microsoft-Exchange-Diagnostics: 1; CY4PR02MB3384; 3:Axx/nOR6YhM8lCaW6q5d0L88H1aomqMHM8YY7hx9dTV1cA5eM0a4xOM5uWmbGTNaqsQmaz/hnwoBNw5r6p+4hvjaDntt1yiiK1lG1JMNiUUDSeTWqqas2da1eBOVQpKDkxSdOrUL/07njIxinR5ZwUmNCRAzlt1Div5k7VV/ARASKa4JI6NIvc16ItP/w5ehClWTc7b8v8yTA9EHh6ljVlMvTWRH76f5EMf8lVlZrDj6cN/xgXRmUMbFj6dZUar0zv7eU0smTzAHumQjzOzpYj/WPFjnf4sHJAv+bZGZhaKhbCjti/T6u7L2Y1DfrQyI8zd4kgTeVtilzgQLAnnnGERniIuTU+vP0Ymqf+KAZrc=; 25:HlGeHISh2owpnWzCvici45MxTnkIlqxLwYBttTDpeFMCU7xEACt2+3EjZOM96G2brBz6W5l/UAMo/8jfgjIkbrvzX+qB3/SyOC16EnuQGumePh0Y0E21R1BWohrSpmg1/0CJGJNxwnG9VnpXOrbKcLM8uLSTRSQB3/59MU40QivuNKUY0rqgRPdqWQyn4gKw36XNqQhSMz6OBRAabsKWeTqc+DQZIx33kqbu0MVtfJlwiFvY9+vYmHXJtfAu5sFtjrDILHL6poUBdRgst+/CozOvjW3f31HhYLmrquvToP1hDvTE0HL4J/YgPxjJiaeMV+2TCp4MWUABfFXoDH0J4Q== X-MS-TrafficTypeDiagnostic: CY4PR02MB3384: X-Microsoft-Exchange-Diagnostics: 1; CY4PR02MB3384; 31:4rdc509/m2pKHKxzDZJOvGB7Ees4fVvJ8zWGbQU5nBkR2O5DrrbkwZUfsp+S0zn287K/3rKxzoJwaU7IVAN3CpKNtF9/XzqvUcW+NviE5pJhu864Wl+/vSrmeHhHLYBqdvo3yJ5oXoZdsHKCAf4FnpraYEZd9BeFDJ7+c598J/77pS7yAkzzs6o18Ip8i8zCBL0g2RRe9DJpDLsAKfyYP/Syyoy+5leR3TDR3BhDsX0=; 20:fYZRmtaQo1gWUdPm0UcxHh9tOKsiFLfbWFIobtnBw9d3+wqYacWjsnzPmKHsV6FOLBJn/JP6CxqxL1zAuhV1tmw5RvSihOO5BbjoIhru+4/pszt9UW1yBa9WpVPsEM0YUWgZo3o6dQEqIRiV78rEMeF0zlKXMC9NyJeLIirZo5sM/ahaZLU3+UjDdgdQdWDNPnQSkXTjMzUUe4Hy+PNCpT7OmxgITpc90BkcYUo4ZHbU5xXIJt195rUMDuc1E58B22Q4QYlYLr/DfRuHz3pHMWRQQ1JVMaM6Cc2u+Jbgc2VVOOFo54+ea/9l7x8Ykz0HSMWNg7+h9ceClbIhrTor9AImCttygQ+avMMBH8LnKN0loKJj2lg3aw5wn2q05aCsVdm53VUsJILz0/VUharuYQYIksmheR4RS98jZtFQhQnWIQ2W+y7tthiPZ5w32FuqTPb6JBzAopUcTeIClBU4NymAHFs0OVUVyY1rdKG+8S+IQuemAfWXHRTW+BAGDfFJ X-Microsoft-Antispam-PRVS: <CY4PR02MB338497589D69923BE4D2ED35D91F0@CY4PR02MB3384.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93004095)(3231023)(944501075)(3002001)(6055026)(6041268)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:CY4PR02MB3384; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY4PR02MB3384; X-Microsoft-Exchange-Diagnostics: 1; CY4PR02MB3384; 4:7KpbnaNv1L8o9jyMvwokBct4HBcdEnHjTVLuGkf/U/jKTD4BwICIraJEqBidXrNNBblrXzSmEmqZLfrv01HA4euojtEYuM2FsW8bIhS1stnRahhQYhpvu47eLFip09Ap4HMxg1roXHLtDmJM0G4kkfFSgM3QCm0Y4K5u8+lV90C3vIRBIRUf0xfWq0Hqf+Pl40a4K1UxxZfgnFBI7fhx7u6ttLfKYkKkFQu7pi0Y13CFrXrbX8vPpET/NBSXMRzLz5P5RWxe74tlOwuefvrg10ply4WV0u8nl6Qhgk2H+HwaShLRcvKSuxJ/Kpbthvj5 X-Forefront-PRVS: 054231DC40 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR02MB3384; 23:as2odAi4yOP+V6RPaVi85e1xH4E0COykN71oV2vPK?= L5z+1BxxO89NGG/v4NEBxvzDnLdHrwmLTB9Mg0IT7CfqHWWqSwE/my83FLRZWUNXwGEhXnpZzhFRH531GSLkHaxMFbW4+GZrkhqql5vYQPbIusmiBg7hoXu+k99HmZmjyb3sL2k0m+0EPOzA2YilIeCrTQDMfO5JcQe/rryuoUwoOaDQyAfPbJA1y8FLJB9iK1gQmgQYdgf9TQT75wrRRYQ3o8VYGGnE0SNwA+6GQqCRnrAW6Q6FC258YDWQ3SKwSnVPIM3xvY088kB+vB1evx5YGe5z9TU58ecUBMZWxDzJWzym37EpStauN/jyWeKuhDtWjgDQH9LQqYUHrTP6Uu7IcQJHGmfd9TUR9qIkGIqxtAeW+WBeyORFZnTxbHwy4vNmgVzaH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dmunf8i5QGMz4noG5bsmYy5mH3E3ZdgK3snbcBIxb93hNNBgg3RCBpECrq328QI=; 24:id03+08OKEO/CMMWMfsRGDGc024fl5luKrCVrviSQsUedoI/1pkAYZPSc6TGU5LaOi7cvH8oxBb+C+N6KHDa5oSqJtUD8W8gKUY7u7sJTwY=; 7:2IkQVrAkKqy0Ako/RR56BurFuAtVVHPMtBOjFESrHMErD/s/uATw/Dig3EoI7vQgY+h1yuFI9EtllAb59O3d3GIxfVPEHaKNZva1LFXpuBtWr7ckD4bmW2ABWZu9G9I9whg4sJzgwWqxhUkPlKn82Tl9oJpTwctpamgUSH/8iKGDnyXZKqUwqcG8ImMqKk68e/zJplwFnpInjM94ANShjWx9db0eG6fIM+OvZmD8ett3diRngOQ3TpS26xARP3Nk SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2018 09:40:55.1847 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 69e36e3b-54c8-4eda-d815-08d5535740f6 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.83]; Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR02MB3384 Cc: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Subject: [U-Boot] [PATCH v2 2/7] mmc: sdhci: Handle execute tuning command in sdhci_send_command 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>, <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>, <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> |
Series |
Add support of SD3.0 UHS modes for ZynqMP
|
expand
|
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 2bd721f..8239079 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c @@ -161,7 +161,8 @@ static int sdhci_send_command(struct mmc *mmc, struct mmc_cmd *cmd, /* We shouldn't wait for data inihibit for stop commands, even though they might use busy signaling */ - if (cmd->cmdidx == MMC_CMD_STOP_TRANSMISSION) + if ((cmd->cmdidx == MMC_CMD_STOP_TRANSMISSION) || + (cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK)) mask &= ~SDHCI_DATA_INHIBIT; while (sdhci_readl(host, SDHCI_PRESENT_STATE) & mask) { @@ -183,6 +184,9 @@ static int sdhci_send_command(struct mmc *mmc, struct mmc_cmd *cmd, sdhci_writel(host, SDHCI_INT_ALL_MASK, SDHCI_INT_STATUS); mask = SDHCI_INT_RESPONSE; + if (cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK) + mask = SDHCI_INT_DATA_AVAIL; + if (!(cmd->resp_type & MMC_RSP_PRESENT)) flags = SDHCI_CMD_RESP_NONE; else if (cmd->resp_type & MMC_RSP_136) @@ -198,7 +202,7 @@ static int sdhci_send_command(struct mmc *mmc, struct mmc_cmd *cmd, flags |= SDHCI_CMD_CRC; if (cmd->resp_type & MMC_RSP_OPCODE) flags |= SDHCI_CMD_INDEX; - if (data) + if (data || (cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK)) flags |= SDHCI_CMD_DATA; /* Set Transfer mode regarding to data flag */
This patch upadted sdhci_send_command to handle execute tuning command. Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> --- drivers/mmc/sdhci.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)