From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755521AbcEaR7G (ORCPT ); Tue, 31 May 2016 13:59:06 -0400 Received: from smtprelay0157.hostedemail.com ([216.40.44.157]:50817 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755259AbcEaR7B (ORCPT ); Tue, 31 May 2016 13:59:01 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::,RULES_HIT:41:355:379:541:599:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2198:2199:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3872:3874:4321:5007:6119:7904:10004:10400:10848:11026:11232:11473:11658:11914:12043:12296:12517:12519:12679:12740:13069:13161:13184:13229:13311:13357:13439:13894:14659:14721:21080:21212:21324:21433:21434:30012:30046:30054:30070:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:3,LUA_SUMMARY:none X-HE-Tag: edge61_4e572dcb81115 X-Filterd-Recvd-Size: 2175 Message-ID: <1464717537.14627.39.camel@perches.com> Subject: Re: [PATCH 4/5] coresight: Add better messages for coresight_timeout From: Joe Perches To: Suzuki K Poulose , linux-arm-kernel@lists.infradead.org Cc: mathieu.poirier@linaro.org, linux-kernel@vger.kernel.org Date: Tue, 31 May 2016 10:58:57 -0700 In-Reply-To: <1464695858-29284-5-git-send-email-suzuki.poulose@arm.com> References: <1464695858-29284-1-git-send-email-suzuki.poulose@arm.com> <1464695858-29284-5-git-send-email-suzuki.poulose@arm.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.2-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2016-05-31 at 12:57 +0100, Suzuki K Poulose wrote: > When we encounter a timeout waiting for a status change via > coresight_timeout, the caller always print the offset which > was tried. This is pretty much useless as it doesn't specify > the bit position we wait for. Also, one needs to lookup the > TRM to figure out, what was wrong. This patch changes all > such error messages to print something more meaningful. trivia: Perhaps consistently using dev_err(dev, "timeout while waiting for %s\n", ""); could make the object code a bit smaller. > diff --git a/drivers/hwtracing/coresight/coresight-etb10.c b/drivers/hwtracing/coresight/coresight-etb10.c [] > @@ -184,8 +184,7 @@ static void etb_disable_hw(struct etb_drvdata *drvdata) >   >   if (coresight_timeout(drvdata->base, ETB_FFCR, ETB_FFCR_BIT, 0)) { >   dev_err(drvdata->dev, > - "timeout observed when probing at offset %#x\n", > - ETB_FFCR); > + "timeout while waiting for completion of Manual Flush\n"); ie: dev_err(drvdata->dev, "timeout while waiting for %s\n", "completion of Manual Flush"); but that depends on how many of these coresight files are compiled and linked. There is a while/when usage difference in some of the output messages.