Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1672063rdb; Thu, 7 Dec 2023 06:02:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IHsDE8YWIWoz/L/yD9U20pK9zNuFjFuOwgxC049WCKQ0DUgBE0xR8GTN/0QZs4suCqENtsP X-Received: by 2002:a05:6a20:394b:b0:18f:5ff3:9b5e with SMTP id r11-20020a056a20394b00b0018f5ff39b5emr2745371pzg.94.1701957731389; Thu, 07 Dec 2023 06:02:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701957731; cv=none; d=google.com; s=arc-20160816; b=UYh7MTx1imDp8ukOg5rCS+Fvla5fz33ikxRiUM6i7QszP9+QS5UlNcHjxa5p86sBhD 3gG9fTokxi3n05EXxir8EYKcDB7chE7NQnkYO6pE3GZ5r3N4l3aOIkqPXDyOcxDIbAN6 Wutuj7flA3iWLSgocJ76urauYrok5pPvIKybErSknYRE25qr9RSenG8Hni+z11fW576z TjDKtY6rBT4UFIvnJHAbX1mMlvefndNkcIYrFAkeCN4dtq09xXbfObVSpgfyevg4dMPW Tz+onKJfOqR6r5GCmYjxUAIqTnGo6cCYSY1jMopEttiMJIdqlPfHoturmUcSDNrXtUPS wQPA== 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=xqSN2wz/zGfROIqFiurJMPD+/BJpUqBprXGsU0gwv9Q=; fh=7CV0fiKeHN9Pazl5VqTlrwqA9/JxEPqxSKmMDZ4ybBQ=; b=qnA3oEBeEgDWcXB+D8dicO2lZu6WxW38Q9r+dr19b1NunCqPjnkJvOu6u7tFUHLJxB W4Iln1FnN7WZLDt2JVKnCHMuOvNhHsqNB2P9LSN7U2MnqCtMNU2f3NzTcuvSiDJU+Qfn vPkxnnFSCEr07A+sUCs15jfE4wRIPjra6xlMw3/Yp+oZALnYDCvURt6grg5ImFf7RkhE XtqopHhCraOLQ/kLHS+xaeTA0Yv36tsmI+YNB7P9XzT+CP4Lp9zE5Smtwzy1WvrMUyTK VX5rNLe5Gf96dlW1hi7+MuplmVPl631Wwn9PH1pbH+jIG8GImEMB+c3+G9PR7T8U71qy XP8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kxLlZvpq; 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=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id i6-20020a635406000000b005c5e2a49600si1286146pgb.693.2023.12.07.06.02.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 06:02:10 -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=@linaro.org header.s=google header.b=kxLlZvpq; 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=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 79C81804E722; Thu, 7 Dec 2023 06:02:08 -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 S1442828AbjLGOB5 (ORCPT + 99 others); Thu, 7 Dec 2023 09:01:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232923AbjLGOB4 (ORCPT ); Thu, 7 Dec 2023 09:01:56 -0500 Received: from mail-yw1-x112d.google.com (mail-yw1-x112d.google.com [IPv6:2607:f8b0:4864:20::112d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A701610F3 for ; Thu, 7 Dec 2023 06:02:02 -0800 (PST) Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-5d3c7ef7b31so7556437b3.3 for ; Thu, 07 Dec 2023 06:02:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701957721; x=1702562521; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=xqSN2wz/zGfROIqFiurJMPD+/BJpUqBprXGsU0gwv9Q=; b=kxLlZvpqxT4FoowXREhO+D/r3/lncVGKrOhheT1Q8TsbSJG5FAscSUOWyLGiyBXgDH mtmKRe+GT6p40OIScxDv5Nki87K9XWRs+a8/NiLa54PMSfrNc4CTuHrpjZvkspPw37/5 2e8JGMElffVGJCb+cZ/uQW0fewQclDYAykaxesgj5OazgG6HoziVZTbvSm4cXrN3iOk0 hfKk5z3dJLdrtBv8VROAMNKMGkIx+CyA8StbXGEfneD1zEWfcPZJYTsnuahuEVaWB430 3YaHCYz8Om6T1+GrIqhSrqoLQn8HRzqj9Odn9FApmIt18lQ9WRdyxs8xhjHuX+APk2+J Q16g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701957721; x=1702562521; 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=xqSN2wz/zGfROIqFiurJMPD+/BJpUqBprXGsU0gwv9Q=; b=iwrDNW3knYsjMoCtQqb/fCyKDc+fRITy/F8+0nfRikaH/NjGm3AwsLZlZcjoyjxAtx 1iEwCpA+DWdgJgxVDFvM4xGhUElH9l36RbgmUDsptZzOMDpyhboXL7fhQ88ZUSxFiqwx Pgou84RYJbMDRKg3G3y3grO/dFxcIgTxMQgNHoRwaTaum6RTWydtpGMdQ+o1zrkmrZAO uFHtYgLtxhX2Ca8V0/h24Dhnx38yG/QJmNtC4cQ1RFjFNOps90JSILmBRsQAC9e/4el+ oaISAlfoQBGu4+O9NcF/fNH3XibrejBciSlNir6homMeYrvYt834QnOsKxudLdvZVsu+ 8L3w== X-Gm-Message-State: AOJu0Yy2FWIFsa7GlYdM7X2zgbXp+ntXE3O+gyMDiFAVsnzK6TOU5SSl mbxe6nTvul3/gEhvfXjfs83zPCSXhC22Sg6DJqULCg== X-Received: by 2002:a0d:d88b:0:b0:5d7:1941:3556 with SMTP id a133-20020a0dd88b000000b005d719413556mr2618248ywe.61.1701957721714; Thu, 07 Dec 2023 06:02:01 -0800 (PST) MIME-Version: 1.0 References: <20231201102747.3854573-1-treapking@chromium.org> In-Reply-To: <20231201102747.3854573-1-treapking@chromium.org> From: Ulf Hansson Date: Thu, 7 Dec 2023 15:01:25 +0100 Message-ID: Subject: Re: [PATCH v3] mmc: mtk-sd: Increase the verbosity of msdc_track_cmd_data To: Pin-yen Lin Cc: Chaotian Jing , Matthias Brugger , AngeloGioacchino Del Regno , 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,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=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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 07 Dec 2023 06:02:08 -0800 (PST) On Fri, 1 Dec 2023 at 11:27, Pin-yen Lin wrote: > > 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 Applied for next, thanks! Kind regards Uffe > > --- > > 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 >