Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3113371rdh; Mon, 27 Nov 2023 06:48:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IEa4scZFCFdhq6osQvyqyIHH/8IK8Dg0n35qKba5yhCyF143or+5qvbfMgdpLhxeh2/d82q X-Received: by 2002:a05:6a20:3d07:b0:18c:4105:9aa8 with SMTP id y7-20020a056a203d0700b0018c41059aa8mr8342854pzi.51.1701096538591; Mon, 27 Nov 2023 06:48:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701096538; cv=none; d=google.com; s=arc-20160816; b=hyBhTdkvyOnHH1dpsIVLgJP2Hek5X77NhiBGzXGiezgvIMC68dGKp1R6/aeY/tYIvU MVd7VcGPSce+kfWvsS/2mng5x9+D0G3vNG4StFsC2f3mayGjzwpwBW5WXgHvw/vi9ZB/ 1TPHaefq1ILyCvn/+OkeMW73Wj77xauMqqnBb/oVlxzhhOcSIBSB24BXvaVc5RgsR3dS LyOXEK70vBWsE17WJIN4aK1BKMwgADB8iygTRY5vkmfwxLEWcBcSKwPQ9j0DYQWuMxgo AT9M6aDvX4nHaSFm82sYYMXCv5B7jbCZ0tU783Dvjcl5Q025ykdLF+EPtygm4njfzwzk vt+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=E3FLX3YynhvX8mGBDXZEVUPH4OcHBZ2EUZ4Lk2rEt1c=; fh=oQRuG42CL9szCAcdllQDNEWw6A7Sg4NM5igLA9cqMaE=; b=gvo5OxBLjdG4ntTky9J21YdtX3X3/x6m0neZ3ySbme3jT0xhm8RvH2CSDsyu/b2Exg 5p2kF9qT1JI+3QW5mb8gtdiKpWKw2c3ryeVcxqBxWQpPVWn8crwR2HMtc22mrPIMXGH8 VVyrWBKUPI7bmr58xRYySuRmDM68F5k2Yd/FRe9awdu3oC9zP3RAqcC5vT0HRzf4sKNp JzpBpK69yHhp86Fyx3Ugfbla40EDJ8qznCh6xPwXI4+bLspOANcEErQH+SS2h/qupygF DIaSlfq0nLUzXZctMidO/OLLJt4Yj51lUMRFarrvclMBlkCafXGgvvRt6R71DbCgSJ8W AuHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=a7pYE2aW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id bq17-20020a056a02045100b00573f9a427d9si10666398pgb.717.2023.11.27.06.48.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 06:48:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=a7pYE2aW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 2F558809FCB2; Mon, 27 Nov 2023 06:48:57 -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 S233504AbjK0Osq (ORCPT + 99 others); Mon, 27 Nov 2023 09:48:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233687AbjK0Oso (ORCPT ); Mon, 27 Nov 2023 09:48:44 -0500 Received: from mail-il1-x135.google.com (mail-il1-x135.google.com [IPv6:2607:f8b0:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4DDBA1 for ; Mon, 27 Nov 2023 06:48:50 -0800 (PST) Received: by mail-il1-x135.google.com with SMTP id e9e14a558f8ab-35cc155a467so4195595ab.0 for ; Mon, 27 Nov 2023 06:48:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701096530; x=1701701330; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=E3FLX3YynhvX8mGBDXZEVUPH4OcHBZ2EUZ4Lk2rEt1c=; b=a7pYE2aWifuoFRXSQ6zcnLuYt2Sy2I9bDprPt9EY4fq6088lhrMaYlFdNbO7UdURf7 svn+etxDHXIcX71dsZOmAVmFQI/zR8dEtVudgIu2SSouRSASnqUJKdMkyh1gVruPU4xV NyEX8r06w72PHkJnYM5wZ7EvMOsMlpmXH2KN0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701096530; x=1701701330; h=content-transfer-encoding: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=E3FLX3YynhvX8mGBDXZEVUPH4OcHBZ2EUZ4Lk2rEt1c=; b=W0afg9hjD+ZWQAB6ZAZMPSJbeiswLNlAALlbIUApK/zBVEsY8mtg9FkxEjkh+uwmo8 d7D4Q1nrkEqF/4zLEEE7/WNol2AlytWkug7OSRRMF8V/tDNz0aXjUhFek/XFF5XwCUto mfUirwjaUAlQ0T1zY0UNfpxQFyJjM4z/2vjfnmQddfhEXsyWoj5QLAtp8i7oy4OQD1I7 4lJD/lf4OsHxFu2Q4jwfGTgfWJtRGlVYIG/6mwNLznIbA7iCqExKF/UpJClipC016XJ6 Z/d+uej37bHM3RaY6Fb3fRefm3Q0nrJT2aZIR0FnDBc6sYG22fF22+nDUB3en9jKC/tL xubw== X-Gm-Message-State: AOJu0YyYM7/7yiBHJ/AQhq3eP5s4jpC+rIWHOpvWJhQL849Xr2Vf1CVk D0NpZQk1g2ndBtdI/kn2uTd8lDix4s+GA4Qj7gi4oA== X-Received: by 2002:a05:6e02:20eb:b0:35c:7b32:2425 with SMTP id q11-20020a056e0220eb00b0035c7b322425mr11231186ilv.8.1701096530125; Mon, 27 Nov 2023 06:48:50 -0800 (PST) MIME-Version: 1.0 References: <20231117095531.1693753-1-treapking@chromium.org> In-Reply-To: From: Pin-yen Lin Date: Mon, 27 Nov 2023 22:48:39 +0800 Message-ID: Subject: Re: [PATCH] mmc: mtk-sd: Increase the verbosity of msdc_track_cmd_data To: Ulf Hansson Cc: Chaotian Jing , Matthias Brugger , AngeloGioacchino Del Regno , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Chen-Yu Tsai , ot_shunxi.zhang@mediatek.corp-partner.google.com, linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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]); Mon, 27 Nov 2023 06:48:57 -0800 (PST) Hi Ulf, On Fri, Nov 24, 2023 at 1:13=E2=80=AFAM Ulf Hansson wrote: > > On Fri, 17 Nov 2023 at 10:55, 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 > > > > --- > > > > drivers/mmc/host/mtk-sd.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c > > index 97f7c3d4be6e..4469003f571e 100644 > > --- a/drivers/mmc/host/mtk-sd.c > > +++ b/drivers/mmc/host/mtk-sd.c > > @@ -1150,7 +1150,7 @@ static void msdc_recheck_sdio_irq(struct msdc_hos= t *host) > > static void msdc_track_cmd_data(struct msdc_host *host, struct mmc_com= mand *cmd) > > { > > if (host->error) > > - dev_dbg(host->dev, "%s: cmd=3D%d arg=3D%08X; host->erro= r=3D0x%08X\n", > > + dev_err(host->dev, "%s: cmd=3D%d arg=3D%08X; host->erro= r=3D0x%08X\n", > > __func__, cmd->opcode, cmd->arg, host->error); > > How critical is this? Should we perhaps use a dev_warn instead? After rechecking the driver, I agree that dev_warn() is probably enough as the driver tries to reset the hardware to recover from the bad state when this error happens. I'll wait a few days before sending out v2 to see if Mediatek people can confirm this. Thanks and regards, Pin-yen > > > } > > > > Kind regards > Uffe