From patchwork Thu Aug 3 12:46:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 109323 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp730434qge; Thu, 3 Aug 2017 05:46:30 -0700 (PDT) X-Received: by 10.99.50.4 with SMTP id y4mr1519042pgy.238.1501764390088; Thu, 03 Aug 2017 05:46:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501764390; cv=none; d=google.com; s=arc-20160816; b=HN2yGWlxjfLEBu3hl3LkQACNZhPlWDWJCInNhyHl+OWBd1TnnwQ76tvZC1HLLHdzQ/ CN0r+Os++GV3TAqPLO06fqcjrdanNnE514PDykVleLYbsp3Ycgx++gLGgXVQYwQVAF2A rri3bW2LtmfjX3U3FXfZ4028oWLOjNB9p4sO/ZNYjSG7uA4vG1kVcVX4yBgXSoS60mgh rCPDdOpbPy/pzRNStvUYkEtyI7MKJVeni82CMaCWNJNYBrNDzqkwnu1HDkVfaMI4Qdoe 1q3yl3ld4LPBhVp8dtP9Zi7bydOx9/sk7T6bpLJVkL5P8HZ/P1Rm30UM8GCeGoGN+WQM 8HBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=GHbdw3UJYs6+xUELz1WuNMMpYff6xMFrQBmv8CN8K54=; b=IAhEWjZa/qD2mLOUPkPq3KUHQE1DlpCS1liNF+oUPOn+hmQGMdFMI0mRR1g22jL9eK 8EkP1abFbgCgu0C32I3PTVYqNgnYT+vmoRiW54pBRa4RuReOaoE8McJqs73qpKY6ergp 7w4R9Xs+8OZCMFwAVGWDsJlAOevoBWIKFqPese7ZLLq6M1gr3BghyApTPJqQ8ce4GVNc 5Xtu/xnwrNf1xO7pQEWhsGjvPPaXNF/NgxtZcayenfNIy0FBME3M1dK5r/XEIRGi/KWM LLRBenqJYWJOoom0nNIusmFQuJ0rvS33NVgCJTE73xC5abjUBtUuVqCSdHNReWvr1Cg7 /kEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=ic4vKqn2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33si14840148plk.1031.2017.08.03.05.46.29; Thu, 03 Aug 2017 05:46:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.b=ic4vKqn2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751913AbdHCMq0 (ORCPT + 25 others); Thu, 3 Aug 2017 08:46:26 -0400 Received: from mail-it0-f41.google.com ([209.85.214.41]:37341 "EHLO mail-it0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751866AbdHCMqY (ORCPT ); Thu, 3 Aug 2017 08:46:24 -0400 Received: by mail-it0-f41.google.com with SMTP id v127so8650411itd.0 for ; Thu, 03 Aug 2017 05:46:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=GHbdw3UJYs6+xUELz1WuNMMpYff6xMFrQBmv8CN8K54=; b=ic4vKqn2/VABkU7ynz38GsuRhwdqOR1Nt5gEAs4LpVcGDUQKgm+d/L3E1trQ/OHoEd EvH3xlsJWKyzj+oEsCkhtlmLcL4ll3wELzoMeUTDriIVn59pqaPVnuyijOJd1OaFfvna 1+dOPb/Hprtg0YVOlj+o3g4KlW3Ov/8FMnI7U= 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=GHbdw3UJYs6+xUELz1WuNMMpYff6xMFrQBmv8CN8K54=; b=jeybAF1rYQU/ni8hCoWPn+S5jc9fVCPJcLzjZVSd0K2iELjBMrDhXP5BznOGWtfBgW DS4UuTqorwVFD7hAPwnH8rU6SvhD08oFxK2qHlYh87jusB8MvwP/BTlGCDrhGiK4BD+g 8Psgm3Xbo1xFyUpZUdE//Ea8mEh+7jnPnCIumuM4Qa4azMFmXl3GvqVsbngk+9sJmj4j U8qagWBTTGFMrVKYUdtqis9siOt/CEadSOfUESBiKPtpbIvuYFbStvH5gXd4wRuITd50 xWukOGT1G5c0E8rEE7wwR8eIELSoWBOWFm8+xQ8naUM986bqaI9CeZwOV3p0coneGHoA DQiQ== X-Gm-Message-State: AIVw111yOtVFIbmWEU1iLhf95Oqd9rXFphM2dzhTA1RczIeoJaKSGxMR hzwEw7WrCmDNKGZL X-Received: by 10.36.161.65 with SMTP id n1mr1587451iti.159.1501764383486; Thu, 03 Aug 2017 05:46:23 -0700 (PDT) Received: from localhost.localdomain (static.8.26.4.46.clients.your-server.de. [46.4.26.8]) by smtp.gmail.com with ESMTPSA id b66sm13768459ioj.66.2017.08.03.05.46.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 03 Aug 2017 05:46:23 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: adrian.hunter@intel.com, ulf.hansson@linaro.org Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH v3 2/2] mmc: sdhci-msm: set sdma_boundary to zero Date: Thu, 3 Aug 2017 14:46:14 +0200 Message-Id: <20170803124614.21788-3-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170803124614.21788-1-srinivas.kandagatla@linaro.org> References: <20170803124614.21788-1-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Srinivas Kandagatla Programming legacy HOST SDMA Buffer Boundary bits in Block Size Register (0x04) is not supported in Qualcomm sdhci controllers. Writing to this would cause the controller not to transfer last block in case block size is 4 bytes or less. This issue was noticed while testing sdio wlan card on Qcom DB410c board. Signed-off-by: Srinivas Kandagatla --- drivers/mmc/host/sdhci-msm.c | 1 + 1 file changed, 1 insertion(+) -- 2.9.3 Acked-by: Adrian Hunter diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c index 9d601dc..adfe5bd 100644 --- a/drivers/mmc/host/sdhci-msm.c +++ b/drivers/mmc/host/sdhci-msm.c @@ -1133,6 +1133,7 @@ static int sdhci_msm_probe(struct platform_device *pdev) if (IS_ERR(host)) return PTR_ERR(host); + host->sdma_boundary = 0; pltfm_host = sdhci_priv(host); msm_host = sdhci_pltfm_priv(pltfm_host); msm_host->mmc = host->mmc;