Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp7661488ioo; Fri, 3 Jun 2022 10:49:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3zNH1RPf6JWDM5Pxq6wZB0UJpBsuZvqy5umeyaZ8GAY2PlpcE99No+4jhIwaOLC9igEN0 X-Received: by 2002:a62:8101:0:b0:51b:b859:7043 with SMTP id t1-20020a628101000000b0051bb8597043mr11465275pfd.25.1654278561416; Fri, 03 Jun 2022 10:49:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654278561; cv=none; d=google.com; s=arc-20160816; b=pPAyaFrfYzW7+mrMGrRsjMx9apVqeWMr0QEf7Pvl2KA9nznhqxJEPA0dacXyKbt2KP lkBJnEOE7/l370e+j/VXXvc1WoQGK9vih1KsDppyPRTSCgU+oCUgfsL/llZlXQnOuv6r Fjdjk71ORuf3EM8r8kSvXU9ARlzfFbyqqJUEX6xigNJFa5c1DPq/O/h1GGUI6McqgPxg koOYe+1omJGutblb9DyeN82MAo3vCQWgUS4IiYdoseubkmjaor+TYl0dS0vxsUe/ATZv wEPoSg4FFrdRii4ldafTbi1ZaNobZebg27KCsyLOup6WTZfyp/xmYO9CzCNRGoKBn6GB bw/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=L3zoPueqFT9hkpqSI029vmCiT8m18QNBxmuKtLar2Cs=; b=f8TEgSBnBJm4/aAzSBc2vLm06j0Z0XMqNPfOvwE1WCi+UoITGXnICsy5ZHPqfc/sdQ 5TQyYp4X9dB9wnjyrdzQt++mAubc+AjFLTe/W6QQUQYmEjyqzbzldq935BF2xjfm/2Cp KZ9g0RxWqXTrnrBPm1m30LY72td0NfbY9g6eQ8Ryoob1Z/zeTgX9tuLny124EGlAszlP 455WdUxzcAblu3tAuEh2mSh9uyYlwa1N70Ti6/pPm39fHQ4CscJDaeMoMra/9hJT4v69 9PWwMyoa8mLaSthM5eb5EiP/V6dwk3cc9xvLY2E2yIXwL+JYrMC58uUFv/Du4jYSP5lc 4Rvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=hN3kSmVd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l190-20020a6388c7000000b003f9f28dd8e9si10438346pgd.794.2022.06.03.10.49.08; Fri, 03 Jun 2022 10:49:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=hN3kSmVd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240338AbiFCFQJ (ORCPT + 99 others); Fri, 3 Jun 2022 01:16:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240270AbiFCFQD (ORCPT ); Fri, 3 Jun 2022 01:16:03 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C02BB1DA7A; Thu, 2 Jun 2022 22:16:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1654233363; x=1685769363; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=L3zoPueqFT9hkpqSI029vmCiT8m18QNBxmuKtLar2Cs=; b=hN3kSmVdkMFpjCevTK4D513MM2KHK9npsGS3DAewytrc+D0SVd08Wk0q nt3MJ2V6jSs2Zso6sDZVisU6nuFYgKG08f2PRfe0BOFW2QkFNorHE/wSH BywBTdDmliRFRVGVzMX5VbMTT3+NBADlb3ru180fIELL4MZYavk6c+2c5 o=; Received: from ironmsg08-lv.qualcomm.com ([10.47.202.152]) by alexa-out.qualcomm.com with ESMTP; 02 Jun 2022 22:16:03 -0700 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg08-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 02 Jun 2022 22:16:01 -0700 X-QCInternal: smtphost Received: from hu-sartgarg-hyd.qualcomm.com (HELO hu-maiyas-hyd.qualcomm.com) ([10.213.105.147]) by ironmsg01-blr.qualcomm.com with ESMTP; 03 Jun 2022 10:45:59 +0530 Received: by hu-maiyas-hyd.qualcomm.com (Postfix, from userid 2339771) id C43A25001CD; Fri, 3 Jun 2022 10:45:57 +0530 (+0530) From: Sarthak Garg To: adrian.hunter@intel.com, ulf.hansson@linaro.org Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, quic_kamasali@quicinc.com, quic_rampraka@quicinc.com, quic_pragalla@quicinc.com, quic_sayalil@quicinc.com, Sarthak Garg , Andy Gross , Bjorn Andersson Subject: [PATCH V1 2/2] mmc: sdhci-msm: Enable force hw reset during cqe recovery Date: Fri, 3 Jun 2022 10:45:33 +0530 Message-Id: <20220603051534.22672-3-quic_sartgarg@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220603051534.22672-1-quic_sartgarg@quicinc.com> References: <20220603051534.22672-1-quic_sartgarg@quicinc.com> X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable force hw reset during cqe recovery to make recovery more robust. Signed-off-by: Sarthak Garg --- drivers/mmc/host/sdhci-msm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c index e395411fb6fd..7fc40bd16031 100644 --- a/drivers/mmc/host/sdhci-msm.c +++ b/drivers/mmc/host/sdhci-msm.c @@ -2781,6 +2781,9 @@ static int sdhci_msm_probe(struct platform_device *pdev) msm_host->mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY | MMC_CAP_NEED_RSP_BUSY; + /* Enable force hw reset during cqe recovery */ + msm_host->mmc->cqe_recovery_reset_always = true; + /* Set the timeout value to max possible */ host->max_timeout_count = 0xF; -- 2.17.1