Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp839934rwb; Wed, 16 Nov 2022 08:19:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf5qjBrT3qHWBZKCkdQKhsqnghtK7MT96z8B6dGiiWQq4ggJCaksNR2mzVc/T5hwEF1e75KB X-Received: by 2002:a17:906:bc85:b0:781:e01e:951f with SMTP id lv5-20020a170906bc8500b00781e01e951fmr19065624ejb.283.1668615543706; Wed, 16 Nov 2022 08:19:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668615543; cv=none; d=google.com; s=arc-20160816; b=0IEvLv7yOtYeVF7J6TwJGU5DtY5ql7lDwrBnlj2q2gYEGhhaNK9CXIi8s55HN/vPkM wZo2LnhCU7QmM5UKIEZF9I8X5XZauV4SZ1zzxYd4BwM06BRT3hJdeZo0KvK+Bxx0avZX y5DRBCjOc6pwzvmtKlC/ZGPlN9PQBdmg3fAzMKwX19sxsMM4nkBt+osa8XZXHwHwtNHs Q1J+Upw1A3jX+qJ//ukyhwJrOu18KBi+e9pHKvKJAkWaJE935i2VSQeN37qge4QoB/VZ NjjpreGai1YeOXHvxAXSc2soqbjiHzUjXtdBOvsW9nhUZpN8dQHEErAHrreHtGnyA7kF lICQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=sAQLsK94oFYtmU8dGGaMTw2NnPAPKpZXJCQ0h5viiZ8=; b=kTXeSZC8EyXsGdc4WlhZt3urQGXdVb/7332/cqDMDEem28yHsjfVw0Zf1F9xMd0nC8 8Eiz6UUFEXFx6dC1nY7OqH65hK8Swymg2bLxCX4scT6M4bgdVnXyQKO/1N5P/evoQMV8 BwrCt43gaKmQbFFD1xzp8LBVCRis9jU/gFZwYYzVKWUGWqwAx2Woz8EbqxDg35IeYvvh BLQxIOpf/PvPWR5yGSU0xyN644b7MLVk4A1i4pLEYITKHiDj6o/eitol6Q8amHGvoebi nP83oHVAhsq5t/TiVPaORbxOqIHN+m1+JP0B1QCjWqS+A2tskUcqZwOpcvf6qgvcVQep O4kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DN5NVqOY; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k9-20020a17090646c900b00781b6ce15e1si10044588ejs.101.2022.11.16.08.18.40; Wed, 16 Nov 2022 08:19:03 -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=@intel.com header.s=Intel header.b=DN5NVqOY; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233666AbiKPQAg (ORCPT + 92 others); Wed, 16 Nov 2022 11:00:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233652AbiKPQAe (ORCPT ); Wed, 16 Nov 2022 11:00:34 -0500 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D202554E2; Wed, 16 Nov 2022 08:00:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668614433; x=1700150433; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=diJ0/bMYPdgdoRRxsbkYzGpbwIEt/0wPceeq6oditiA=; b=DN5NVqOYkemURYECoAzNCqxh/sBt4Tu5OCHrGhncfc63apjITSh/26gz iUsnjc6AyYeTgefyJhJJYgWB7LzFk8InluPMKiI5KjXRc5m7erBnKBne0 aWeZhkCCabuAV0lxeJf0+SrtEC9NUCHdl+uPJvOVycKG75X6ObZLW0+De jDv1CBaS3bp0fAlcJHXtvtBIxOsvB4bB1LFgHFigU3fVBCyDRWh6kY/IH YPu5txj1udrhNw/WpeNwN7iiEbC24ueYe4TzZG+DanK1bqMVRavz4W1Vm r/EeNbQ5Elo3JDAZs14eX98YZuBY3D/adH22/CJX6hvUHpWhEbgLZRP3f A==; X-IronPort-AV: E=McAfee;i="6500,9779,10533"; a="339396458" X-IronPort-AV: E=Sophos;i="5.96,167,1665471600"; d="scan'208";a="339396458" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Nov 2022 08:00:26 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10533"; a="670543951" X-IronPort-AV: E=Sophos;i="5.96,167,1665471600"; d="scan'208";a="670543951" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO [10.0.2.15]) ([10.252.32.88]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Nov 2022 08:00:23 -0800 Message-ID: <59fc95ec-c0db-4011-eca3-3d101f0bc908@intel.com> Date: Wed, 16 Nov 2022 18:00:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.4.2 Subject: Re: [PATCH 1/1] mmc: sdhci: Fixed too many logs being printed during tuning Content-Language: en-US To: Wenchao Chen , ulf.hansson@linaro.org Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, megoo.tang@gmail.com, lzx.stg@gmail.com References: <20221111084214.14822-1-wenchao.chen666@gmail.com> <20221111084214.14822-2-wenchao.chen666@gmail.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki In-Reply-To: <20221111084214.14822-2-wenchao.chen666@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE 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 11/11/22 10: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; Normally we wouldn't get here even if a request got an error because then we either reset the data circuit which should stop further interrupts, or set host->pending_reset. Can you elaborate on what is going wrong? > + > 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);