Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp930743rdb; Fri, 1 Dec 2023 02:27:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IH81x/SnYOa6cydPLdMMzAa2tP+tWV1yiVIbEQq1nf3MtzHZmcTbcBcqsDqGL6N5zE+fXiA X-Received: by 2002:a9d:7506:0:b0:6d8:4e4b:c0ca with SMTP id r6-20020a9d7506000000b006d84e4bc0camr2339306otk.4.1701426479401; Fri, 01 Dec 2023 02:27:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701426479; cv=none; d=google.com; s=arc-20160816; b=OMbU1eySt3oh4LgLcpeF49+QEmotrxmStxmqaxy7qXWP+8QTf3+aejPkaiqfYUK7vA LN3aSMm3IWixwLkXGhCXbglWxgfbbrmQei9Nq/RN3Sy1uxVtSPuhBqh/8tuYlbmhE/kQ zZaZuV73sIjHJ2wsaaIRudgCVboCaZUQ5oR7SQFGkG45z9u5LfOdUmcU7QYKYdv5YnMd 5hYKQotDbaaFtz1pZXMXwupXkFswhHG7GK6vzKjQAKONu4t9a7h4Bm3NvMq6qXaB9mmw qjrCZwaeOHEGYsqGyVAEtxXYq23816kz2hi8K5MWalyWBasGhU48YnvK8aUiG24TmXf7 jTVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=2RC9FzC7iwPwgtlDLuitx0S/ZDsUva1kaWzL6Ox9kqE=; fh=2LhNxQZQNNp6OyiMxZt7vOYfJxkTWSLoRkqjUTNGlVg=; b=kik3Yud2YevcWSyBsn7VpUSflpCrHZeBvRuvEHy3N3j4X0oJ6SlsAfdMSb+onElXvT m6guYe96ZwukwRZSEzLh3FPHcWq0OvAme+NPCexBwQUMcxtKuU90tGew7PnA12iiyV88 QlvD2YVtHFRn7EOSpXtE8dJzzQKBRkMtgxptIOqxwesEl0xh61f9Fxk+YI/amdhL4doH bbAhm2QNT7tgVlXd2YkpltrM2Cs+DdB3sV8wt45k2GggNxsrsRvi6d/4bdTSmVWEpAzF MixhNu4CjUUL9VGBF3QFVFFARY/j7sf6GT3dQInhXo/9/67733yUIfOSl67gn9ODM18z MHDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZE3XClYr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id s26-20020a63525a000000b00578fe1bdfcasi3235861pgl.860.2023.12.01.02.27.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 02:27:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZE3XClYr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 364E180FDDE4; Fri, 1 Dec 2023 02:27:58 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378265AbjLAK1s (ORCPT + 99 others); Fri, 1 Dec 2023 05:27:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378226AbjLAK1r (ORCPT ); Fri, 1 Dec 2023 05:27:47 -0500 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11E3EDE for ; Fri, 1 Dec 2023 02:27:54 -0800 (PST) Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1d048d38881so3087215ad.2 for ; Fri, 01 Dec 2023 02:27:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701426473; x=1702031273; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=2RC9FzC7iwPwgtlDLuitx0S/ZDsUva1kaWzL6Ox9kqE=; b=ZE3XClYr4BVJiR8xQqnDgwK7N4dvewF74tM1Qr5e7+gqyhl19uzeEzj+88vKyD2EPe DegYpYafj7x/hWERI6vcHSsJoe0DGFvPtWUe61C4ztIe/Go3Qn/2YLs8WObS/CvLR7KV TJEFP6neF8m1eID2zUZ9Eu6LVJfXma/LhRP+w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701426473; x=1702031273; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2RC9FzC7iwPwgtlDLuitx0S/ZDsUva1kaWzL6Ox9kqE=; b=LvIGZh3PF2ctjsbZrMtPtdJifGVqNQcfVJ/sykOfT8tEx2KmbdRSrzAVvtulURiYVG CDhSFpsNvKPPd+qoFB1g9k+t4JEbgTCF7uiOPyrvekEZcLAbQS3mz5HuJ44kLsG9jxth Xgr7OrNu9dymxu6wjcB+xgagOzXrWO2jfMWs/EShAMSvQ1rYQDBsQlmLj2wB1Ai9+k/7 oi39WQLoL5b8A8P7DJghghT52j9lnio1srNhXleu3nIIMoZa+DjJ/SyT8FY89ZbVliHa HUheiuno7j+v10vIeAJTOw53vKKV17evrnI0Mc9yErMJk/vVPSgvu5YjeYXPo89O3nJd qvWQ== X-Gm-Message-State: AOJu0YxZVRgDCSpHzIQQOlAMCDzgX7ATcpkgrrojw2LFOi16vYTRo3eQ OxuS1alMpU/EMvYK8rmdVCn+wA== X-Received: by 2002:a17:902:ce8a:b0:1cf:df4f:30d9 with SMTP id f10-20020a170902ce8a00b001cfdf4f30d9mr18630789plg.29.1701426473520; Fri, 01 Dec 2023 02:27:53 -0800 (PST) Received: from treapking.tpe.corp.google.com ([2401:fa00:1:10:39b5:c526:2f63:2eb4]) by smtp.gmail.com with ESMTPSA id z21-20020a170902ee1500b001cfc9c926b7sm2999507plb.75.2023.12.01.02.27.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 02:27:53 -0800 (PST) From: Pin-yen Lin To: Chaotian Jing , Ulf Hansson , Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, ot_shunxi.zhang@mediatek.corp-partner.google.com, linux-mediatek@lists.infradead.org, Chen-Yu Tsai , linux-mmc@vger.kernel.org, Pin-yen Lin Subject: [PATCH v3] mmc: mtk-sd: Increase the verbosity of msdc_track_cmd_data Date: Fri, 1 Dec 2023 18:26:51 +0800 Message-ID: <20231201102747.3854573-1-treapking@chromium.org> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 01 Dec 2023 02:27:58 -0800 (PST) This log message is necessary for debugging, so enable it by default to debug issues that are hard to reproduce locally. Signed-off-by: Pin-yen Lin --- Changes in v3: - Only print the warning when -ETIMEDOUT or not in tuning process Changes in v2: - Use dev_warn() instead of dev_err() drivers/mmc/host/mtk-sd.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c index 97f7c3d4be6e..6ae5e0a9fca9 100644 --- a/drivers/mmc/host/mtk-sd.c +++ b/drivers/mmc/host/mtk-sd.c @@ -1149,9 +1149,11 @@ static void msdc_recheck_sdio_irq(struct msdc_host *host) static void msdc_track_cmd_data(struct msdc_host *host, struct mmc_command *cmd) { - if (host->error) - dev_dbg(host->dev, "%s: cmd=%d arg=%08X; host->error=0x%08X\n", - __func__, cmd->opcode, cmd->arg, host->error); + if (host->error && + ((!mmc_op_tuning(cmd->opcode) && !host->hs400_tuning) || + cmd->error == -ETIMEDOUT)) + dev_warn(host->dev, "%s: cmd=%d arg=%08X; host->error=0x%08X\n", + __func__, cmd->opcode, cmd->arg, host->error); } static void msdc_request_done(struct msdc_host *host, struct mmc_request *mrq) -- 2.43.0.rc2.451.g8631bc7472-goog