From patchwork Wed Jun 28 13:35:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 9814309 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 BA439603F2 for ; Wed, 28 Jun 2017 13:35:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC4A328511 for ; Wed, 28 Jun 2017 13:35:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A065B2855A; Wed, 28 Jun 2017 13:35:31 +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 32ECF28511 for ; Wed, 28 Jun 2017 13:35:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751087AbdF1Nf2 (ORCPT ); Wed, 28 Jun 2017 09:35:28 -0400 Received: from mail-io0-f172.google.com ([209.85.223.172]:33979 "EHLO mail-io0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751994AbdF1NfS (ORCPT ); Wed, 28 Jun 2017 09:35:18 -0400 Received: by mail-io0-f172.google.com with SMTP id r36so35598232ioi.1 for ; Wed, 28 Jun 2017 06:35:17 -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=XZrySgmrdQlPV9AVccW3rEyTQKMbDo+jNpND16HPcv8=; b=Q7AkLzx/7uTopj0WJYsqzP4gLY/M+T+8rOfTSmk71jiLWPNIKGRGzTZSlH2AS1S25G VRqHWAUDZiuXMP5svLHMBwbki5uMNiogii5Z3spHBBVMSrIw789ivVpP8nwpwbo7aucT QycY7N2mL0UDKpPM/19frXr8+RmGEFkOcahP0= 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=XZrySgmrdQlPV9AVccW3rEyTQKMbDo+jNpND16HPcv8=; b=XFfEZrDQaEJekANEltcP8jaN5w2KE/LQ5HcV8gscST9iM2YdZNEC+OTL88m1HkV1W1 RVrDPxlgd+RpHKJke2qehxHo3SmtbX83dwMntz36txfkSVgbO14oDR1Lz5d3sKUe0o31 wx367u2aWkugv54/bNZEp8SddpWqQNvqBhsFbihqs6f5HF/oaexXjN4pf9f9xx2wt4FO p1au5Gh7TQOruffNvJ/pzjN2UvnoujL61DP35qhFVb+LBnBhmwy7oYIIcFGYUL2eeUc6 IC+HJiQlubyuawItDCYWXJQSR1qUWbE4URBeg8WrzhMKb8p5/9s6sMlKSUh6xszMX0Bd j7Jg== X-Gm-Message-State: AKS2vOwFwzqgdoCslNZ2kpZwfWi0gUqraavp+caHNGpyFc8wLXuRaQw1 69QPg8kLs0EJEVhP X-Received: by 10.107.9.139 with SMTP id 11mr11106572ioj.38.1498656916613; Wed, 28 Jun 2017 06:35: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 h76sm2859553ith.24.2017.06.28.06.35.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Jun 2017 06:35:16 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: Adrian Hunter , Ulf Hansson Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Srinivas Kandagatla Subject: [RFC PATCH 2/2] mmc: sdhci-msm: enable SDHCI_QUIRK2_BROKEN_SDMA_BOUNDARY_BUFFER Date: Wed, 28 Jun 2017 15:35:04 +0200 Message-Id: <20170628133504.17422-3-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170628133504.17422-1-srinivas.kandagatla@linaro.org> References: <20170628133504.17422-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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c index 9d601dc0d646..50f650301ae6 100644 --- a/drivers/mmc/host/sdhci-msm.c +++ b/drivers/mmc/host/sdhci-msm.c @@ -1114,7 +1114,8 @@ static const struct sdhci_pltfm_data sdhci_msm_pdata = { SDHCI_QUIRK_NO_CARD_NO_RESET | SDHCI_QUIRK_SINGLE_POWER_WRITE | SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN, - .quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN, + .quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN | + SDHCI_QUIRK2_BROKEN_SDMA_BOUNDARY_BUFFER, .ops = &sdhci_msm_ops, };