From patchwork Wed Aug 2 08:38:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 9876239 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 C9AD16037D for ; Wed, 2 Aug 2017 08:38:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B05AE28553 for ; Wed, 2 Aug 2017 08:38:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A515328543; Wed, 2 Aug 2017 08:38:57 +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 22E9E286A0 for ; Wed, 2 Aug 2017 08:38:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752319AbdHBIiW (ORCPT ); Wed, 2 Aug 2017 04:38:22 -0400 Received: from mail-io0-f170.google.com ([209.85.223.170]:37574 "EHLO mail-io0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752556AbdHBIiQ (ORCPT ); Wed, 2 Aug 2017 04:38:16 -0400 Received: by mail-io0-f170.google.com with SMTP id c74so17673618iod.4 for ; Wed, 02 Aug 2017 01:38:16 -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=IZFoHdqo+A+LOK2IQP+bXD1SjdTvh184cgDOM6XmgmU=; b=ahf7GYW0NiSRMpYPs/Bde+xi1baDPCNEhtELw4WNsf3UbtwUkVFAAqV7OX9sOvWXyx 1dJ2ntsHFwAgGoORxc2XbZCe4XXTUwy1V2ZMpgRuy0YTqUQ4M79Jiy56Q5OWLyWlTgns OEToT7PbdguiS5pXiZ46z9uGiQ3PoYbKP2KcA= 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=IZFoHdqo+A+LOK2IQP+bXD1SjdTvh184cgDOM6XmgmU=; b=PvyPlR+ahWyR9ak0Z7tFU1NMnI/jutHbXPktd0PHI4OGuv5aKZj8d7MR6QMU+iXauK OMjNOzS7b9R2bt7ZRa+1FAqLhDYz9d8/kPvkiDV3uS3sEKqNzuztNKOVYibGvRADjKGz Zld39UhvMIm1x4+2ztGMIcnIYPqZCtvSkEKS4Pqgaldjdu6fHwDso9xfuxx7NCeoWFFF /U2ebGismrbb6kRedTTmUnnDQYSVD6EnONEzzsvxzMf9Rhvf5zQDX1jsJn+igeEAAkFv 4SIsycBo2s+bH5EYDsNoGhdr4H5uK7X0XXr0EWNQ2IEiWyGpZiHKdJrMQR05mDizky5R etug== X-Gm-Message-State: AIVw110vg9NBfy2sBJTfqjcnP/pra3NMLcRflIt/NUVCmsvA9ejSXLhi RBE+17yY+zl/TxFD X-Received: by 10.107.151.21 with SMTP id z21mr27633373iod.205.1501663096178; Wed, 02 Aug 2017 01:38:16 -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 b185sm1781226itc.1.2017.08.02.01.38.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Aug 2017 01:38:15 -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 v2 2/2] mmc: sdhci-msm: set sdma_buffer_boundary_arg to zero Date: Wed, 2 Aug 2017 10:38:07 +0200 Message-Id: <20170802083807.26280-3-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170802083807.26280-1-srinivas.kandagatla@linaro.org> References: <20170802083807.26280-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 --- 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 9d601dc0d646..bb699c0247ef 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_buffer_boundary_arg = 0; pltfm_host = sdhci_priv(host); msm_host = sdhci_pltfm_priv(pltfm_host); msm_host->mmc = host->mmc;