Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB54AC433E0 for ; Fri, 29 May 2020 13:41:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8850E2145D for ; Fri, 29 May 2020 13:41:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=mg.codeaurora.org header.i=@mg.codeaurora.org header.b="ce2XzhNZ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726927AbgE2Nlu (ORCPT ); Fri, 29 May 2020 09:41:50 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:37766 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725901AbgE2Nlt (ORCPT ); Fri, 29 May 2020 09:41:49 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1590759709; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=KViCm2Ho/mcj5qFjh4q+UnAauXXP2sX2JGE/9Ofp+R8=; b=ce2XzhNZBYmCfIpnYw/3gfv9j6HaUVUeEcXD5NoUEYD07ac4YhStoqRVV5EIWkP86L1cScjW f/VCNvVQ8FZlLQRX4PIqhrrkRciokUrjURMiAxh01cq2fgHePK8BlXQYI1jdFDJpMkQc0wPP tHYKxGpt20EJAKp0GckY/zIQPW8= X-Mailgun-Sending-Ip: 104.130.122.27 X-Mailgun-Sid: WyJiYTcxMiIsICJsaW51eC1tbWNAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n02.prod.us-east-1.postgun.com with SMTP id 5ed1111cc0031c71c28b4538 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 29 May 2020 13:41:48 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id B5B47C43387; Fri, 29 May 2020 13:41:47 +0000 (UTC) Received: from [192.168.0.106] (unknown [183.83.65.109]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: vbadigan) by smtp.codeaurora.org (Postfix) with ESMTPSA id 42EFEC433C9; Fri, 29 May 2020 13:41:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 42EFEC433C9 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=vbadigan@codeaurora.org Subject: Re: [PATCH V1] mmc: sdhci-msm: Clear tuning done flag while hs400 tuning To: Ulf Hansson Cc: Adrian Hunter , Bjorn Andersson , "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List , linux-arm-msm , "# 4.0+" , Andy Gross , Ritesh Harjani , Venkat Gopalakrishnan References: <1590678838-18099-1-git-send-email-vbadigan@codeaurora.org> From: Veerabhadrarao Badiganti Message-ID: Date: Fri, 29 May 2020 19:11:36 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org On 5/29/2020 4:05 PM, Ulf Hansson wrote: > On Thu, 28 May 2020 at 17:14, Veerabhadrarao Badiganti > wrote: >> Clear tuning_done flag while executing tuning to ensure vendor >> specific HS400 settings are applied properly when the controller >> is re-initialized in HS400 mode. >> >> Without this, re-initialization of the qcom SDHC in HS400 mode fails >> while resuming the driver from runtime-suspend or system-suspend. >> >> Fixes: ff06ce4 ("mmc: sdhci-msm: Add HS400 platform support") >> Cc: stable@vger.kernel.org >> Signed-off-by: Veerabhadrarao Badiganti > Applied for next, thanks! > > Kind regards > Uffe Thanks Ulf. I see a mail on this patch, that SHA in the commit text should be 12 digit. Let me know if i have to re-post this patch by correcting it. >> --- >> drivers/mmc/host/sdhci-msm.c | 6 ++++++ >> 1 file changed, 6 insertions(+) >> >> diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c >> index 95cd973..b277dd7 100644 >> --- a/drivers/mmc/host/sdhci-msm.c >> +++ b/drivers/mmc/host/sdhci-msm.c >> @@ -1174,6 +1174,12 @@ static int sdhci_msm_execute_tuning(struct mmc_host *mmc, u32 opcode) >> msm_host->use_cdr = true; >> >> /* >> + * Clear tuning_done flag before tuning to ensure proper >> + * HS400 settings. >> + */ >> + msm_host->tuning_done = 0; >> + >> + /* >> * For HS400 tuning in HS200 timing requires: >> * - select MCLK/2 in VENDOR_SPEC >> * - program MCLK to 400MHz (or nearest supported) in GCC >> -- >> Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project >>