Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp554033ybm; Fri, 29 May 2020 06:46:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzF82zKw4oytGiJdtQGdv5GW+lmxnx002bLqr071egZnHR40tyIAKj0G6G+eVqBN+AV4fwY X-Received: by 2002:a17:906:3441:: with SMTP id d1mr7461865ejb.489.1590759986759; Fri, 29 May 2020 06:46:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590759986; cv=none; d=google.com; s=arc-20160816; b=hnjLyRffq1mxmV7Js6ccFRUq5gPKdfuDWi60UrzgDlsdbRAXdX5bHZEdi/IwYUEt8q 4g22JmQYhwVKu+4sFZquiIi1TuoaV9fidbROD4gZV5qMGM+8/pQbzhIYxQYJ6A2eA8jg urTwlhWCq9050DsRzEikI0CUiUHgJ3oUfyk+bNX8QgLerwbcqWNtNFlCB3etvoC3M/XA 0DkxNA+w23tkzZ8uvgVwQKjYfzaO1fpGrwZiY3mzfgEEfsNQfPHjjBayqoqnYD8YPAep QKh9p5xGDJbkVT1pFaRSlFY8Cn6znrnGA+TnUH1vi1kj/EwYa+TQFin8IZTHqRFWLduq Um7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature; bh=KViCm2Ho/mcj5qFjh4q+UnAauXXP2sX2JGE/9Ofp+R8=; b=CSwKLoO1MggGHxgIZbSmwE/E2SEb8pKXoD7yHHE8sVzaBkT7/XBftbxHC0PibKsDpg HK2zUtfvNwFBzyv/fXGEepyxVT1tQiNIsbkHtiQKZmx57VvBtYOghqKtAa+ywabRl67c eJ/6WumE2scAK6l/RdA40LaY7M5XqJdjpgokLyBZfkxYwueySSJr2wRm/YYJ7Y5pk+uj ORPHLux9nySvVHUtTFhGEGGh1kPJi/0tO72/ucfidwi0BxouLEPaXYmzXE7lVsZ/AFov KKJoj1LrWyukjZjfkZfC83oxEW87aGyxxRmbQKHPfDm58ZNTrTRr11mAdtORGXwzOiUh D5Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=P72JpbGF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z15si5927162edm.343.2020.05.29.06.46.03; Fri, 29 May 2020 06:46:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=P72JpbGF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727030AbgE2Nlx (ORCPT + 99 others); Fri, 29 May 2020 09:41:53 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:49426 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725901AbgE2Nlw (ORCPT ); Fri, 29 May 2020 09:41:52 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1590759712; 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=P72JpbGFiEGRpWTDw2teLMgE3AUTVx09S6NHS+98/qMIh78mPSCp66ZNYHbOaMMFfQFiaDDb VXTMX9Bq1diXfXFoQ6pVstItpPQyniKl44r9CwqVfhIQ8Pxs7eRX7GZ4dpeW+RMdh/N68PEr b6sYCbffX8nmdTNjrlgaE/ZxFQE= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd 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 5ed1111cc0031c71c28b4537 (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) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 >>