Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1021553ybe; Wed, 4 Sep 2019 11:15:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqyuNsXqUgHQ6cvCrWqAan4rUE3wzE4pGQaLhxIjI4Yp79RxPjlJka+Kfo9sxJVN56lWQXf8 X-Received: by 2002:a17:90a:80ca:: with SMTP id k10mr6509125pjw.59.1567620957914; Wed, 04 Sep 2019 11:15:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567620957; cv=none; d=google.com; s=arc-20160816; b=QhOKbqJNmirkejO45F7hFy4aYRjiyQ41xzMinq9RZXgOo2xXR7/1tuBM/jIn5+r23+ lAEgQT3j1Ss9pUCwNDNPb8PRhUTHr387YwBMBlFXN6ncRYASOIqPVxeMGqjCAfeh/lgn JD7R8d+JuT0RFPxLcKAdV11dkv+sqlU6yTcTZcqK1c7B67Y9tQDsbpZz+jOoAsZJslLr UZ5szoJ+mNSc/WlCYjz0kfY4C90slxh20OBhitYy4s4ZvW2UI798DTqCpO9ZJH1mLJGM zJ2awr1KfZndmHvB9Sk2ZXqlWwEOzCstg6DQ4WHYJ8o+TxFkTxIxOfn/LKaUTeyTgl8w Tfkw== 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=sxTALqqae3/64nFWTYs3vg9sn6DHj404dOD7X0yLjWU=; b=Ok2gX1LLEAK249WYspkFBImSX0ppho4ll3/xpxmbu5RQnL+1raeXTsVZjArdPZZYg8 RKC7/bDZo6rpqZfm+oCiJU8qP406u4R9xfFwSKBbKBs1/jdI3RFH/ArOrrIfo9e6UJbf 4BgJ0WkQ3ov59HeeZWowrSFbYr061/3RA5B0tfUipXHMZmmzTrc5A51Ba7koDk7kL49x wysF5JpC4SgyEfAJETwk2FS742HATVgN/ILXx7MLRnCQQn9gSZTN8R47EC1CCN3Da3io i/fXF6cbCBMb4ddKdkuCSzFyq+lksnXsIf2LuFUDMfyq5teiC/Lwkqb8HuX0AF+Xi2XI aMAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AgxKuIXo; 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 z27si14133734pfk.81.2019.09.04.11.15.42; Wed, 04 Sep 2019 11:15:57 -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=AgxKuIXo; 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 S2390768AbfIDSOV (ORCPT + 99 others); Wed, 4 Sep 2019 14:14:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:59450 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390756AbfIDSOR (ORCPT ); Wed, 4 Sep 2019 14:14:17 -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 DEBAF22CEA; Wed, 4 Sep 2019 18:14:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567620857; bh=o7Cjc0rUBHidSXFULpRtnarcnI8uMMcuQvulc8XTS/4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AgxKuIXouIQONYxKuNRCi5vtPidpCEZrihbtZqGsFUa92yxUyX699iD38PVKujlmm om1JdwIGtM6qxVSgzvDhCjHkCXIe2ts2uqj5zr4XePrNpZKYyfYeTbbx31zYyUfwdx MikTbnQumo322Y/ecOXWZg5aaYKgoWy/G2Vf2GKo= 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 121/143] mms: sdhci-sprd: add SDHCI_QUIRK_BROKEN_CARD_DETECTION Date: Wed, 4 Sep 2019 19:54:24 +0200 Message-Id: <20190904175319.132665759@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 4324e54bbea0107b054336f20075a26939b2bd51 upstream. sprd's sd host controller doesn't support detection to card insert or remove. 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 @@ -319,7 +319,8 @@ static void sdhci_sprd_request(struct mm } static const struct sdhci_pltfm_data sdhci_sprd_pdata = { - .quirks = SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK, + .quirks = SDHCI_QUIRK_BROKEN_CARD_DETECTION | + SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK, .quirks2 = SDHCI_QUIRK2_BROKEN_HS200 | SDHCI_QUIRK2_USE_32BIT_BLK_CNT | SDHCI_QUIRK2_PRESET_VALUE_BROKEN,