Message ID | 20170828142915.27020-13-jbrunet@baylibre.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 23D6E60311 for <patchwork-linux-amlogic@patchwork.kernel.org>; Mon, 28 Aug 2017 14:49:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0DC5C286FB for <patchwork-linux-amlogic@patchwork.kernel.org>; Mon, 28 Aug 2017 14:49:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 025F0286FD; Mon, 28 Aug 2017 14:49:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4434C286F6 for <patchwork-linux-amlogic@patchwork.kernel.org>; Mon, 28 Aug 2017 14:49:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=6MIy1zWS2j6kVPEKviOOqR0y45jOu3aQhdS1YK+OEq0=; b=BY9eJXf4lyFDe03P4xmGWUQ9hI ZobGXxXKfOj680Jh12QTR9BVkftSotQQfusVXcohBcXWWVJj2Xkqh/46GJKv6704B+9dcOGW6bWdy hwPAk/0Q6mu2vyvUtiRPHM/7WXP2uUBSNxMcUMCA9QR6sF/BFotnBFBVJOxE/2Wf2Hw2Y4JJloPHF NxLxJURL0Pq9rJje7VJXlno3yjYYisRxsIIS0d9i8xxlwwHdd23fBRENjsfutC1GnTmKSsjFIgJJ7 ygtxF1SN0fgCXhRb0hOMGinjVXuRDAhf69fDz8W3ixoQI45MZrs6jivqz4wuWWyyPsWO8LtTjDR1A UdnDQoxA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dmLLp-0001p0-3q; Mon, 28 Aug 2017 14:49:17 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dmLLn-0001nK-Ui for linux-amlogic@bombadil.infradead.org; Mon, 28 Aug 2017 14:49:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=pKHhUpHQ3bkHhnlF2wqNG/5BoyWKwqpXO5w79ZiBWcI=; b=yuJc1tYYv6BAb7iVLOlLsjOq/ qdeooHPVxksne10PxZMyCOlwqzRIdyxEyFY++NoBFspOM+KsZz54eYNJ3OUcAmGJs4QAtjmP8Hufu 18OFgUuEFxE/lXDC3lExO9iLl+iX20TyiBKFA2kEYoUENY4o6WWz8020z7B4ijwcoL8KKXfW//eee u0JFo5BmNFWvkaUzYCSaQ6GvH7X7Uizyhr7zUFJ3u8IM9EycH/2u4XoM+IwPKqr6EDL8EahDHADXY UdgMf2brhr01MogFq9bVigAV6LLAK+SuUwqqaJsG/Po6cym0Ztc0Abfe5R2Hk0ZN2fAyVk4fmki5t 3Dw35Jx9A==; Received: from mail-wr0-x22e.google.com ([2a00:1450:400c:c0c::22e]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dmL35-0006KS-LC for linux-amlogic@lists.infradead.org; Mon, 28 Aug 2017 14:29:56 +0000 Received: by mail-wr0-x22e.google.com with SMTP id n37so2157556wrf.4 for <linux-amlogic@lists.infradead.org>; Mon, 28 Aug 2017 07:29:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=pKHhUpHQ3bkHhnlF2wqNG/5BoyWKwqpXO5w79ZiBWcI=; b=NSmJm8ejzwgNLoM68Hgw8yBmHGqNvEyiZSoboAR+ou7rETMglc5/HjRGLda4Q3z2Pv 0aosVe32Vd8qlw5TYWOcjtY6ykbvaUI8cLzO7Gh6EFq/00uBxOt+QuGhVpaxx/DlyGQi Kwl687W4quGDp0oo6wz0qYPGxkTJKsetbQqB/xH7ak1Hn2L0eVr/f5Yz4EBPRXHw1mES GAoOw19J6VlA3kFo7f54+aCvJXvjqEftDG3t1IpuiZjN6iDzpTy7Ak1H31kyFgZbqNBi I5y903qHPuN3XcBeAY2qJs5/SMJq8FQdLM6jaG0pFypS46qWgp5GppX4jXrQR2IchD9K n7bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=pKHhUpHQ3bkHhnlF2wqNG/5BoyWKwqpXO5w79ZiBWcI=; b=XjHZ/nWJb0l1cgfEPilkBQo935hQw8NsGsKyy2AovxzQI9tMmNFtk0aKoA71uuch7Z r4Bf1LFL/4qISqzYEMdfDmu0fRsbCxVZEZnUlHiAr3gF9Ttj6CG9Q2xhZ9UXEP4Dm6jT 8SbGygWragHSEiE5LELXnXn8+T0RIV7nW4xrfwueq0fIushcngwCb+ZTT9wClItnel7o otYEwnqlxq/iVYy5QViEZuCWhdQo5BE46u6UgextWaWAifQxzS38d3n+57H2/c1e6yGx i+BS7BUjTS0BLbXuyByeVEVbx59F/Qi1m+QO5mHmesNiRDFh9Y0tGtM0uct22U5gPNOv ROJg== X-Gm-Message-State: AHYfb5i7ia1G7C9CP3oSBsRmtIVNhOQ8TzvUCUlzFnfLMPeWZiAOmZkk 4d6HLIVxAvmSBe6u X-Received: by 10.223.148.100 with SMTP id 91mr534430wrq.15.1503930571394; Mon, 28 Aug 2017 07:29:31 -0700 (PDT) Received: from localhost.localdomain (uluru.liltaz.com. [163.172.81.188]) by smtp.googlemail.com with ESMTPSA id z39sm604792wrz.61.2017.08.28.07.29.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Aug 2017 07:29:30 -0700 (PDT) From: Jerome Brunet <jbrunet@baylibre.com> To: Ulf Hansson <ulf.hansson@linaro.org>, Kevin Hilman <khilman@baylibre.com>, Carlo Caione <carlo@caione.org> Subject: [PATCH v3 12/13] mmc: meson-gx: change default tx phase Date: Mon, 28 Aug 2017 16:29:14 +0200 Message-Id: <20170828142915.27020-13-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20170828142915.27020-1-jbrunet@baylibre.com> References: <20170828142915.27020-1-jbrunet@baylibre.com> X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-amlogic.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-amlogic/> List-Post: <mailto:linux-amlogic@lists.infradead.org> List-Help: <mailto:linux-amlogic-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=subscribe> Cc: linux-amlogic@lists.infradead.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet <jbrunet@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" <linux-amlogic-bounces@lists.infradead.org> Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c index 0cffc705bfe3..efffd36c8d77 100644 --- a/drivers/mmc/host/meson-gx-mmc.c +++ b/drivers/mmc/host/meson-gx-mmc.c @@ -1156,8 +1156,14 @@ static int meson_mmc_probe(struct platform_device *pdev) if (ret) goto free_host; + /* + * Set phases : These values are mostly the datasheet recommended ones + * except for the Tx phase. Datasheet recommends 180 but some cards + * fail at initialisation with it. 270 works just fine, it fixes these + * initialisation issues and enable eMMC DDR52 mode. + */ host->tp.core_phase = 180; - host->tp.tx_phase = 0; + host->tp.tx_phase = 270; host->tp.rx_phase = 0; ret = meson_mmc_clk_init(host);