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: 106531 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp1023335qge; Wed, 28 Jun 2017 06:35:46 -0700 (PDT) X-Received: by 10.84.195.131 with SMTP id j3mr11800257pld.147.1498656946643; Wed, 28 Jun 2017 06:35:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498656946; cv=none; d=google.com; s=arc-20160816; b=RpFJp4b5EiYvkowqx8iIIVQe+t6yZymqFsLcJtdQ6oLVnOwB9fOnYwpjEqmevkDn29 E5aSaa+MpInxtte3eEIv9dtDMy0yaDjkl109gpWjRg/GYMhBmPtftlh3344TDMzv7V1K bFsnhH5n5cXtpGJFi8hTyqD0iS9xplO1Miga7MLxOCOfEnIOTc9SPCEypeR/pocL+sP7 r+9rOml/OHvJP28YKGF8rOTh+9pQwJJg2mPLfaBnlQk+lUCLzRxzo4ljolqDtE6MfGx+ KESYNAaNqugvxu+yELRPhvyrtKJLbC2JEOKHYYUB64zd/j23PPrQruvg9u8yKMBXL9o4 ZJng== 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=5b/hhHSIdKrI/BynQXrYdZg8i1F8eZIdW2keOe3RFnU=; b=wdhs0Z5GQbpv7gs2jlYh4ELLICle0JW47LkO2FaAdYYrcp5bb8SMrLmtzc2CcN0th/ FZtN6PfATb7m8vJxDFzrVOsJa1pnMRZ8Ju5XC2sZQJezjPSIPqjBvW/nEL429Uergb6j S7h82WbK2eufVOmcAwYcwkoFUVSEVIhK8VeT8mR8MlQnah9EncPCJNkubNWWYMTrJBDi AKbaSsyD3Sbir6qnXDcvJFtb3W5gRv4B66ecjLkMPwtbHtpoPpgBhSmF5HZknaCgYzq/ 1DtV1vNuvhQzwHpzUdMDhqrUcKjsiSwR1oywfIJCmwlI/aBcTx2dBh/pH3oMkFwqgtl6 cy9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=Q7AkLzx/; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org; dmarc=fail (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 b35si1746824plh.375.2017.06.28.06.35.46; Wed, 28 Jun 2017 06:35:46 -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; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=Q7AkLzx/; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751087AbdF1Nf2 (ORCPT + 6 others); 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 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(-) -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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, };