Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp316750rwb; Fri, 18 Nov 2022 01:43:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf6jcZ0xLFJQJoVd9cPPOAFdN+M3FMX96jDHbQyRTPKFGQo6jd9KIKHkPb80GyYudAPh5w9i X-Received: by 2002:a17:906:c40b:b0:7ae:1e53:95b2 with SMTP id u11-20020a170906c40b00b007ae1e5395b2mr5200326ejz.333.1668764591679; Fri, 18 Nov 2022 01:43:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668764591; cv=none; d=google.com; s=arc-20160816; b=Yj2PulQ8C+Ir/JccE+V0wu5HXnW9hf8pMxxm+QKKJTNyRWwdroTOdZrHvvQNlwarSe knP80HM/I1XaTeFCyW2P5Rgd+NfZXxtIdq2m2yEhIUZDixt6L0coa4HSUn2J1ZFMo8SC mqId1Yil6x2E854YqY+z4+01YLTxwQonY0mGX6mrAwBDgq8th3VKYOFBTQgdxw425ieT fu1Z2KDhZrG0Btu3N/Ny7/Xa8QZZ5nR1U+MHf4EKgWK+yaZFRa1RCuNqt3jtyZcTYm7h oVphMaakHEhugONof/prJdAnWIfaLaskwPF0l82SJaKWo+XZTXpZXyxgXDwjr8p/asFW Sq6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=608m7xEE/4C1c1/2Z7UfY7sG1iZCUcPOix9CSLSRzEk=; b=viDxttbc0juWQ/V/nbi8IVUwbC1WDYGMoXKVgCk1tWDZ/InnO/JwdXuzZYcmUbXXPi rJKTUMjTcmMJWws6fdvgaIHO62Zp+lWfNsmlcdIcSQcTz0igBRnFrz/ElCZwte/NIk3Q OEe5ShUPFJIqfHYwnJOSri7xcDjRFQzgI+HAhiCKUtm/GUQDs+ki8LdXDLcZV1OKv/Oq MEldH4nNlAn6GMKEMs8cXKapf0QLnv/+yJtNA1ZYnRGCRPrWLTD0eWcU5LJrM8wgnbnr 0p2aRp7X697aUqcpLARVu0RuoucLmLk3hi4brsnTNboK3wT2f3U2MBHW3ma55gF5BmlD KIdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ikUEYthT; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d12-20020a170906640c00b007ae2368c8a8si2157777ejm.109.2022.11.18.01.42.48; Fri, 18 Nov 2022 01:43:11 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=ikUEYthT; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241896AbiKRJWQ (ORCPT + 91 others); Fri, 18 Nov 2022 04:22:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241876AbiKRJWN (ORCPT ); Fri, 18 Nov 2022 04:22:13 -0500 Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F323FAE58; Fri, 18 Nov 2022 01:22:12 -0800 (PST) Received: by mail-qt1-x831.google.com with SMTP id fz10so2765083qtb.3; Fri, 18 Nov 2022 01:22:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=608m7xEE/4C1c1/2Z7UfY7sG1iZCUcPOix9CSLSRzEk=; b=ikUEYthT16cSfd2SWwtC8w6yvdu7JqZpvcw/gJcYXFnIx92djm9vEujVofSt2RJVOv jNtuslOG0wy1gI8Er2k1E+5FmNHvLER5bxU/IjlZregrxrpHAZksOUSI6l8vZjVy8mLr 8DfR2uElp3cMcfk3M+/m75M1/p2vU7uKxiIeCGTY23cdX0SNFFlDLvt+Gz9fDweHA+vt vlz6X7Uy00mKX/nTDw+IvM4nmKb2ayPrxwxFHGMYyrbv5hOL9Ehv/UOTczJBxuh2DbvS xV2SZ5wJBDwydrysmOjTRxz95kBMLYLKAIeXCPlujkWMnB7//ktxcq4DqsY4+J2jJRAw UW0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=608m7xEE/4C1c1/2Z7UfY7sG1iZCUcPOix9CSLSRzEk=; b=1EBUJtqGKiK06aP4bLaVR6lkpfbfmPLDhnPEItCMWmlAQaUF+vzbbbV7fu35o6mnQ0 qkyqtjgpeEwppTQErnhU1wZP+6jYA1tVx91jXXgD/Ycth/inZrAC8IihbYO9EHCwBEIL WXbNsecK9DvsYWZKko9HjsO+cahF5V6opyi69Lb2fHSUXyfHhVoDnuhhMdpJnWrHAT/j 9twbX5Ey1hB51OczjlrjBemhU0+66jewdTecXvc0Gq8mYLGek9goawPgUbhp9L+F/Gs+ yWyCRBYZqYc0R5Y8Ds4bCI52ng9IboO3Ldxtemrj02i9d72X/cNnKMPdLyVwIi0j9o5x nekw== X-Gm-Message-State: ANoB5pkzVcO0t+/GMvc35QcM/fcTruCZedoxgrWm3PIhKeGbXs+LyrKZ aVIeXmqy/dX4FO/OMnHgvCxY4dY+ehl9+EslearCM5OrVii6nw== X-Received: by 2002:ac8:4d51:0:b0:3a5:1e6e:ad6a with SMTP id x17-20020ac84d51000000b003a51e6ead6amr5726443qtv.556.1668763332161; Fri, 18 Nov 2022 01:22:12 -0800 (PST) MIME-Version: 1.0 References: <20221111084214.14822-1-wenchao.chen666@gmail.com> <20221111084214.14822-2-wenchao.chen666@gmail.com> In-Reply-To: From: Wenchao Chen Date: Fri, 18 Nov 2022 17:22:01 +0800 Message-ID: Subject: Re: [PATCH 1/1] mmc: sdhci: Fixed too many logs being printed during tuning To: Ulf Hansson Cc: adrian.hunter@intel.com, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, megoo.tang@gmail.com, lzx.stg@gmail.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 On Wed, Nov 16, 2022 at 11:21 PM Ulf Hansson wrote: > > On Fri, 11 Nov 2022 at 09:42, Wenchao Chen wrote: > > > > From: Wenchao Chen > > > > During the HS200 tuning process, too many tuning errors are printed in > > the log. > > > > Signed-off-by: Wenchao Chen > > --- > > drivers/mmc/host/sdhci.c | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c > > index fef03de85b99..a503b54305eb 100644 > > --- a/drivers/mmc/host/sdhci.c > > +++ b/drivers/mmc/host/sdhci.c > > @@ -3401,6 +3401,10 @@ static void sdhci_data_irq(struct sdhci_host *host, u32 intmask) > > if (host->pending_reset) > > return; > > > > + command = SDHCI_GET_CMD(sdhci_readw(host, SDHCI_COMMAND)); > > + if (command == MMC_SEND_TUNING_BLOCK || command == MMC_SEND_TUNING_BLOCK_HS200) > > + return; > > + > > Please use mmc_op_tuning() instead of open-coding this. I also need an > ack from Adrian to apply this. Thank you for your review, I will update the next version. > > > pr_err("%s: Got data interrupt 0x%08x even though no data operation was in progress.\n", > > mmc_hostname(host->mmc), (unsigned)intmask); > > sdhci_err_stats_inc(host, UNEXPECTED_IRQ); > > -- > > 2.17.1 > > > > Kind regards > Uffe