Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1023163ybe; Wed, 4 Sep 2019 11:17:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZ67PnADJFewBazB4wvbXEniS4YYuecgIBZQ8/n7pG3saRdg1q9yN5zLDIr3mEe5G4QvuY X-Received: by 2002:a65:4189:: with SMTP id a9mr35231014pgq.399.1567621049702; Wed, 04 Sep 2019 11:17:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567621049; cv=none; d=google.com; s=arc-20160816; b=atCkvquUEeAi2zrTBjjDlKh452hTKXaLB4aykh0lQa2+4wjce45LVCVaZfqrbznU0+ cHkhIOSReIk7X9wwXgchfmjwaFlQqa+DLN2gaaAXfuE7tP8qf6eSF2tEfx9D9VJW0AgI giH0EC6Rl9QNJv1taafwvfWXBDIF0/OM49pEO2GQOVl6uB9aatEtTBwoplHS5E2tP19i DhHmvH4fZEB3j0+gMEQdxENehAl2uobXRpS00B25My+d3Hie0pBIcmi9vftuy7DQrra4 kdVS//ZNFmgjMKpu2YzVxDzTLqG86CNZ/WBue7b1GnPhUiMJCM30E8E2KULQ7mhp4/Hn O3Xg== 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=3zRtxRkaiJRxRM6d0dfnc7EkESRNY8ShdN6+3/KWs18=; b=i8nCCvbtdfgJ6U1Rm9NJwJQQy3vcvFUOaLA283/i8q6n4QZQHnPWCfxpkhzxr538U6 MbXS+WBq7Rz9gtKTWMn3dKo8kEZCsvVyd4IraAA+lQeeDRsdkGsnYeNXmRC1BNvZIBRR gz+UhWCxsh+ElMeoVpJCVxmMiui04XlB+MdPhhmLZNpOl/zaPzw3kfSKmXMdnR7WDJUp amSMB8n9JJl53hT9xg2uox2DfwTzCszyCyM3S3zRVTjda6APmZQhTKz8Fp7tBboP8oSn sa/UyYY8EGi7suEzg9dTjNpTOG1Zv22FPvpqdLOmFoR7JS6uVcl1MqM5zEp6jlCYWoY8 us6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0fstsv59; 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 x185si18026248pgb.161.2019.09.04.11.17.14; Wed, 04 Sep 2019 11:17:29 -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=0fstsv59; 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 S2390580AbfIDSOr (ORCPT + 99 others); Wed, 4 Sep 2019 14:14:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:60066 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390392AbfIDSOo (ORCPT ); Wed, 4 Sep 2019 14:14:44 -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 4340C22CF7; Wed, 4 Sep 2019 18:14:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567620883; bh=bZL5zCNcdNHk5Kj8/hfVZlyAXCY5M1AF1eWosfk3xZ8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0fstsv59U4H9FoVPqxK2xkvfJ1IFKQGaI8+eJbxz2hkl0KirjP+yVF7u64bq78Kyd ndyvmZKfoM2RrZOFg5wOwxb2iEY1H40RW0afq3daF9P251fKQvjkMlwdks6KdZuXMR IW74Fbr8BqdlwrrN5E0oe1gt3WNGHmkGbQo3JO1s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Baolin Wang , Adrian Hunter , Ulf Hansson , Sasha Levin Subject: [PATCH 5.2 130/143] mmc: sdhci-sprd: Implement the get_max_timeout_count() interface Date: Wed, 4 Sep 2019 19:54:33 +0200 Message-Id: <20190904175319.491925858@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 [ Upstream commit 7486831d7d6aebcf851f9a4bbe65080351d5c9fb ] Implement the get_max_timeout_count() interface to set the Spredtrum SD host controller actual maximum timeout count. Signed-off-by: Baolin Wang Acked-by: Adrian Hunter Signed-off-by: Ulf Hansson Signed-off-by: Sasha Levin --- drivers/mmc/host/sdhci-sprd.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/mmc/host/sdhci-sprd.c b/drivers/mmc/host/sdhci-sprd.c index 9d0f58a665276..1c5e6b77ca641 100644 --- a/drivers/mmc/host/sdhci-sprd.c +++ b/drivers/mmc/host/sdhci-sprd.c @@ -285,6 +285,12 @@ static void sdhci_sprd_hw_reset(struct sdhci_host *host) usleep_range(300, 500); } +static unsigned int sdhci_sprd_get_max_timeout_count(struct sdhci_host *host) +{ + /* The Spredtrum controller actual maximum timeout count is 1 << 31 */ + return 1 << 31; +} + static struct sdhci_ops sdhci_sprd_ops = { .read_l = sdhci_sprd_readl, .write_l = sdhci_sprd_writel, @@ -296,6 +302,7 @@ static struct sdhci_ops sdhci_sprd_ops = { .reset = sdhci_reset, .set_uhs_signaling = sdhci_sprd_set_uhs_signaling, .hw_reset = sdhci_sprd_hw_reset, + .get_max_timeout_count = sdhci_sprd_get_max_timeout_count, }; static void sdhci_sprd_request(struct mmc_host *mmc, struct mmc_request *mrq) -- 2.20.1