Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754687AbcDGBks (ORCPT ); Wed, 6 Apr 2016 21:40:48 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:38766 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752901AbcDGBkq (ORCPT ); Wed, 6 Apr 2016 21:40:46 -0400 X-AuditID: cbfee690-f79e56d0000012c4-68-5705ba9bed21 Message-id: <5705BA9A.6050300@samsung.com> Date: Thu, 07 Apr 2016 10:40:42 +0900 From: Jaehoon Chung User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-version: 1.0 To: Jisheng Zhang , Baolin Wang Cc: ulf.hansson@linaro.org, adrian.hunter@intel.com, rmk+kernel@arm.linux.org.uk, shawn.lin@rock-chips.com, dianders@chromium.org, david@protonic.nl, broonie@kernel.org, linus.walleij@linaro.org, takahiro.akashi@linaro.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org Subject: Re: [PATCH] mmc: Remove some redundant debug prints References: <5cddc2f870eccf8cf50d463c72d2908dad9e1017.1459942344.git.baolin.wang@linaro.org> <20160406195732.67430c96@xhacker> In-reply-to: <20160406195732.67430c96@xhacker> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCIsWRmVeSWpSXmKPExsWyRsSkQHf2LtZwg6lPxC1OPlnDZvGp4Qqz xdSHT9gslm3vZbc4u+wgm8W747tZLKb8Wc5kcXnXHDaLI//7GS02f3jJZnHnyXpWiz/7f7JY HF8b7sDr0dLcw+Yxu+Eii8fiPS+ZPDat6mTzuHNtD5vH5IUXmT1auvpYPf7O2s/i8XmTXABn FJdNSmpOZllqkb5dAldG25x7TAUN0hVPGvawNjBuFu1i5OSQEDCRWP9rHzuELSZx4d56ti5G Lg4hgRWMEv3HH7F2MXKAFfUsToSIz2KUuPbvMTOE8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wiQfr9rJC1AtK/Jh8jwXEFhHwlZh9+DnYUGaB+UwS P09fZgdJCAvYSExccIsFYlsTo8TT5Q/BJnEK6ElM7dvBCHIqM5B9/6IWSJhZQF5i85q3zBMY ge5E2DELoWoWkqoFjMyrGCVSC5ILipPSc43yUsv1ihNzi0vz0vWS83M3MYKTxzPpHYyHd7kf YhTgYFTi4bXoZA0XYk0sK67MPcQowcGsJMKrvwMoxJuSWFmVWpQfX1Sak1p8iNEUGAgTmaVE k/OBiS2vJN7Q2MTMyNLI3NDCyNhcSZz38f91YUIC6YklqdmpqQWpRTB9TBycUg2MvB/XcRkc qvM4Vtch6+34+pWSm4TrzSeGE45lPTNaXsQ9+VhJI7/27I/vb6y86qNue0t6sZ1JkcaEn8Ff b11hM5p5N8DAheuCs5//qfZJ6fMn+5yorJrrV7vgVvUHLt01LzcEXjD6efj4Rcl2J97F132m pNuFtO5k+uaYU3egP/7xv66HvrHLlFiKMxINtZiLihMBThvflzQDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3350 Lines: 104 On 04/06/2016 08:57 PM, Jisheng Zhang wrote: > > > On Wed, 6 Apr 2016 19:38:30 +0800 Baolin Wang wrote: > >> This patch removes some redundant debug prints, since we have added some >> tracepoints to help with performance analysis of MMC subsystem. > > I think the debug prints you removed are useful for debugging mmc err, how is > this purpose achieved by tracepoints? From another side, why should I enable > tracepoints to debug mmc err? I agreed Jisheng's opinion. tracepoint is helpful for analyzing performance and debugging something. But I think it's more easier to check the mmc error at booting time or some time. Best Regards, Jaehoon Chung > > Thanks > >> >> Signed-off-by: Baolin Wang >> --- >> drivers/mmc/core/core.c | 52 ----------------------------------------------- >> 1 file changed, 52 deletions(-) >> >> diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c >> index f80b3ab..3f1362a 100644 >> --- a/drivers/mmc/core/core.c >> +++ b/drivers/mmc/core/core.c >> @@ -157,33 +157,6 @@ void mmc_request_done(struct mmc_host *host, struct mmc_request *mrq) >> >> led_trigger_event(host->led, LED_OFF); >> >> - if (mrq->sbc) { >> - pr_debug("%s: req done : %d: %08x %08x %08x %08x\n", >> - mmc_hostname(host), mrq->sbc->opcode, >> - mrq->sbc->error, >> - mrq->sbc->resp[0], mrq->sbc->resp[1], >> - mrq->sbc->resp[2], mrq->sbc->resp[3]); >> - } >> - >> - pr_debug("%s: req done (CMD%u): %d: %08x %08x %08x %08x\n", >> - mmc_hostname(host), cmd->opcode, err, >> - cmd->resp[0], cmd->resp[1], >> - cmd->resp[2], cmd->resp[3]); >> - >> - if (mrq->data) { >> - pr_debug("%s: %d bytes transferred: %d\n", >> - mmc_hostname(host), >> - mrq->data->bytes_xfered, mrq->data->error); >> - } >> - >> - if (mrq->stop) { >> - pr_debug("%s: (CMD%u): %d: %08x %08x %08x %08x\n", >> - mmc_hostname(host), mrq->stop->opcode, >> - mrq->stop->error, >> - mrq->stop->resp[0], mrq->stop->resp[1], >> - mrq->stop->resp[2], mrq->stop->resp[3]); >> - } >> - >> if (mrq->done) >> mrq->done(mrq); >> } >> @@ -236,31 +209,6 @@ static int mmc_start_request(struct mmc_host *host, struct mmc_request *mrq) >> if (mmc_card_removed(host->card)) >> return -ENOMEDIUM; >> >> - if (mrq->sbc) { >> - pr_debug("<%s: starting CMD%u arg %08x flags %08x>\n", >> - mmc_hostname(host), mrq->sbc->opcode, >> - mrq->sbc->arg, mrq->sbc->flags); >> - } >> - >> - pr_debug("%s: starting CMD%u arg %08x flags %08x\n", >> - mmc_hostname(host), mrq->cmd->opcode, >> - mrq->cmd->arg, mrq->cmd->flags); >> - >> - if (mrq->data) { >> - pr_debug("%s: blksz %d blocks %d flags %08x " >> - "tsac %d ms nsac %d\n", >> - mmc_hostname(host), mrq->data->blksz, >> - mrq->data->blocks, mrq->data->flags, >> - mrq->data->timeout_ns / 1000000, >> - mrq->data->timeout_clks); >> - } >> - >> - if (mrq->stop) { >> - pr_debug("%s: CMD%u arg %08x flags %08x\n", >> - mmc_hostname(host), mrq->stop->opcode, >> - mrq->stop->arg, mrq->stop->flags); >> - } >> - >> WARN_ON(!host->claimed); >> >> mrq->cmd->error = 0; > > -- > To unsubscribe from this list: send the line "unsubscribe linux-mmc" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > >