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: 9879035 Return-Path: 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 0D43960311 for ; Thu, 3 Aug 2017 12:46:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0052A2880D for ; Thu, 3 Aug 2017 12:46:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E94BF288D3; Thu, 3 Aug 2017 12:46:43 +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=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E27892880D for ; Thu, 3 Aug 2017 12:46:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751158AbdHCMqZ (ORCPT ); Thu, 3 Aug 2017 08:46:25 -0400 Received: from mail-it0-f52.google.com ([209.85.214.52]:37922 "EHLO mail-it0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751865AbdHCMqY (ORCPT ); Thu, 3 Aug 2017 08:46:24 -0400 Received: by mail-it0-f52.google.com with SMTP id h199so8579948ith.1 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=G3TbzVwl/VlgMxKZxlRhgCqFhRS+ZemO+4oiqD7s7OfcNnPhj0wg/zXQk3dCUxFWO0 PcKOS64kMsrZ4yGHibBdaWZ3zPKkOxq6TBe+3HK6RKZZ45ZcB3+EpRlpXfc3WEpgxGNq vxQq6/M8KxOEJKo9OZ9oMhUIST/detZPFJFgMu4Wm/uTf4qx3JDCXI5PAnWyi2SMt9nj gSTei1szkHNdV1j6Dj97t0WvA+JAIzyotryqDkUlqD7Ya3NhVIexBVPB3Q33cmGh2WtB XWHdCNRuqLhmWXCSzrusblxBzhVC+D973yMRw9gPp7QzVcGnE1lpZJBMye+5nMvyVX9x xJrw== X-Gm-Message-State: AIVw111C+B5Htm6GMTyGnUG5p+e7hdWYQaS0b3oW9wyhd+GKF0zsvf/k 6ddJNAGtGytNIYNIm0ifOQ== 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-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Adrian Hunter --- drivers/mmc/host/sdhci-msm.c | 1 + 1 file changed, 1 insertion(+) 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;