Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1024415ybe; Wed, 4 Sep 2019 11:18:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDZPHE3YzCTS31WyfbqDvbtVOFtBo3HXh5C2E2QLs3C5MCX7JiXtvGeO36NYl99wWRyNhv X-Received: by 2002:a62:f80a:: with SMTP id d10mr9274794pfh.98.1567621131471; Wed, 04 Sep 2019 11:18:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567621131; cv=none; d=google.com; s=arc-20160816; b=I1kMNF3JdPqqH6unX7WkT4ZoS+V2zyh9gulk7MlkfyiGXFRZA4mMdhuQ4+8L2n14Kz ESrWjSss0W9lnicnY5RkveeUpDla2PKMg4nZ9cM54zNS9BTsgvGY0AU04+1djqQHdCSb WSwccPn2rdsTrxz3aOPk2vk78XhZKYZV0nJwjrbFUDvfc/oivzlE6PDtWxAw+oBT8FTI INCqoqZc9yPfSFa5pKLanZhamGxY1QnoQihvTH/1Vvy13SoQpPrUET1urKcQJ1Be7eDG AjESugALO+PlHwrhlIwGgGWOejMLD/DYwcGP3kw6aj6gjzgfyLVnQ9FXUErSEo6p2XpS lGgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=oofftMgQRIxyuVgrq6yBdeb/iA8+E3EFtAqCmwe/aAQ=; b=xV2tyxzq4NWEhJy0ttz3yuCpqar5aJqcnfwarG86LgjpXPOiBW+1yyuby33dXK6XMK R5255CTGkzNc+NCuFgfdSGhz2JwyxTeJOjxGMxSDJDDGbXnVFnnk5hnOAnRTPWzm7Zi+ A5p10h2DNl1KgLW4zdMHzzqfp70EB8pyFgiW8kCiwzOFRV55DngaSKnTXKvPeB2omExA BJnBpzC6X8Iq2PRYbQNyAn/W9c7A1Otp9cTEZy/pEyAG+bPR9Tsv0MPtk8lyGXNeh6Af 9z5oC/vYlSKoK8JK/6aKUEzvGLsXw+Pr0uUCNKBsa9rrcFSeI+G7DdS7N6gRvquMljJ3 4USA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Yix90NLI; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6si11936156pfr.225.2019.09.04.11.18.36; Wed, 04 Sep 2019 11:18:51 -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=@kernel.org header.s=default header.b=Yix90NLI; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390665AbfIDSNV (ORCPT + 99 others); Wed, 4 Sep 2019 14:13:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:58088 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389686AbfIDSNT (ORCPT ); Wed, 4 Sep 2019 14:13:19 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EEBDE23400; Wed, 4 Sep 2019 18:13:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567620798; bh=Lp65w8bCVFRZzhKlFfy8mS7sxj3+157WDvruDBBU3Y4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Yix90NLIOxf4tBNE0SIaHNZGvxJv5QRpnTj7ZgqSobWK/dfphibzS3m/GuB0LF5iS OxHsvfsGTxI7oe1cW6dYCmUtqp1vUynRQidMrp7P30yTRi9yOOxWHJ0UFLj2kIkheE T/mB6Uc0u8iNwKKqss+50oKH42+omfht7jqHOrig= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chunyan Zhang , Chunyan Zhang , Baolin Wang , Ulf Hansson Subject: [PATCH 5.2 097/143] mmc: sdhci-sprd: add SDHCI_QUIRK2_PRESET_VALUE_BROKEN Date: Wed, 4 Sep 2019 19:54:00 +0200 Message-Id: <20190904175317.989209856@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190904175314.206239922@linuxfoundation.org> References: <20190904175314.206239922@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chunyan Zhang commit 6a526f66ab1494b63c71cd6639d9d96fd7216add upstream. The bit of PRESET_VAL_ENABLE in HOST_CONTROL2 register is reserved on sprd's sd host controller, set quirk2 to disable configuring this. Fixes: fb8bd90f83c4 ("mmc: sdhci-sprd: Add Spreadtrum's initial host controller") Signed-off-by: Chunyan Zhang Signed-off-by: Chunyan Zhang Reviewed-by: Baolin Wang Tested-by: Baolin Wang Cc: stable@vger.kernel.org Signed-off-by: Ulf Hansson Signed-off-by: Greg Kroah-Hartman --- drivers/mmc/host/sdhci-sprd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/mmc/host/sdhci-sprd.c +++ b/drivers/mmc/host/sdhci-sprd.c @@ -321,7 +321,8 @@ static void sdhci_sprd_request(struct mm static const struct sdhci_pltfm_data sdhci_sprd_pdata = { .quirks = SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK, .quirks2 = SDHCI_QUIRK2_BROKEN_HS200 | - SDHCI_QUIRK2_USE_32BIT_BLK_CNT, + SDHCI_QUIRK2_USE_32BIT_BLK_CNT | + SDHCI_QUIRK2_PRESET_VALUE_BROKEN, .ops = &sdhci_sprd_ops, };