From patchwork Mon Apr 21 21:48:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 28738 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f198.google.com (mail-ig0-f198.google.com [209.85.213.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CE3742032B for ; Mon, 21 Apr 2014 21:48:53 +0000 (UTC) Received: by mail-ig0-f198.google.com with SMTP id h3sf9184059igd.1 for ; Mon, 21 Apr 2014 14:48:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=yjm1hb3GS9F//9aSPc9xlYrychzdR2SPtCnFyC0WSBM=; b=l7CkVLk8emkPUH+aqDANWTlVajaCTRUQMgvsCOVt/dz2gBoblpKYRZ/xJav2skMQ7v yBuNrbJ+I1bVZUdhP+wHwDnSENMrPOd++VyI1ThBMRcNDeGl7hb9jwLqYt99+oyDhvMQ 7r925iyWbxnkLD3xKjIAy/hhceqznMxW/iriKhTSv23tt8KoHhOi/uKjEMoT5lbTbgwH r9K+jzOjMUIme2oOvlrJrk35OkpJyZ5lnQyDFyklggK5a3i7TFwKyoVQoPJhKJbvsv8q 4/hmTlcse+/E8ZDzuPd9kqrVKS2iBFAEB6ZMveL7BIRKJZ7ALSTsnGRPZ228sse9NKVI eLhA== X-Gm-Message-State: ALoCoQm4fFiipl55nis1YnsuXgnmH6Agw76hbN9mTqhdUJ2MAXdHzAFUKpr3hM5AcsLfYqclqeg1 X-Received: by 10.182.97.136 with SMTP id ea8mr20774245obb.3.1398116933009; Mon, 21 Apr 2014 14:48:53 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.46.52 with SMTP id j49ls2070601qga.67.gmail; Mon, 21 Apr 2014 14:48:52 -0700 (PDT) X-Received: by 10.221.27.8 with SMTP id ro8mr2328870vcb.30.1398116932907; Mon, 21 Apr 2014 14:48:52 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id de9si6466677vcb.105.2014.04.21.14.48.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Apr 2014 14:48:52 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id ik5so1605777vcb.14 for ; Mon, 21 Apr 2014 14:48:52 -0700 (PDT) X-Received: by 10.52.95.135 with SMTP id dk7mr2440114vdb.32.1398116932819; Mon, 21 Apr 2014 14:48:52 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp320790vcb; Mon, 21 Apr 2014 14:48:52 -0700 (PDT) X-Received: by 10.68.249.195 with SMTP id yw3mr5605373pbc.134.1398116932073; Mon, 21 Apr 2014 14:48:52 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gr5si19163433pac.278.2014.04.21.14.48.51; Mon, 21 Apr 2014 14:48:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754888AbaDUVsl (ORCPT + 7 others); Mon, 21 Apr 2014 17:48:41 -0400 Received: from mail-we0-f178.google.com ([74.125.82.178]:38804 "EHLO mail-we0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754886AbaDUVsi (ORCPT ); Mon, 21 Apr 2014 17:48:38 -0400 Received: by mail-we0-f178.google.com with SMTP id u56so4104147wes.23 for ; Mon, 21 Apr 2014 14:48:37 -0700 (PDT) X-Received: by 10.194.78.4 with SMTP id x4mr562816wjw.58.1398116917906; Mon, 21 Apr 2014 14:48:37 -0700 (PDT) Received: from srinivas-Inspiron-N5050.dlink.com (host-78-149-8-254.as13285.net. [78.149.8.254]) by mx.google.com with ESMTPSA id bq12sm6305581wib.0.2014.04.21.14.48.36 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Apr 2014 14:48:37 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: linux-mmc@vger.kernel.org Cc: Russell King , Chris Ball , Ulf Hansson , linux-kernel@vger.kernel.org, agross@quicinc.com, linux-arm-msm@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH RFC 07/12] mmc: mmci: Qcomm: Add 3 clock cycle delay after each register write Date: Mon, 21 Apr 2014 22:48:29 +0100 Message-Id: <1398116909-31517-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1398116624-31052-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1398116624-31052-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-mmc-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: srinivas.kandagatla@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Srinivas Kandagatla This patch adds a 3 clock cycle delay required after writing to controller registers on Qualcomm SOCs. Without this delay cards are either not detected or fails as soon as card is put into data transfer mode. Signed-off-by: Srinivas Kandagatla --- drivers/mmc/host/mmci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index 86bf330..2dc7581 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c @@ -168,6 +168,7 @@ static struct variant_data variant_qcom = { .fifosize = 16 * 4, .fifohalfsize = 8 * 4, .clkreg = MCI_CLK_ENABLE, + .reg_write_delay = 3, .blksz_datactrl4 = true, .datalength_bits = 24, .blksz_datactrl4 = true,