Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3373177imm; Tue, 29 May 2018 06:14:06 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo4lAdyze4XEAbbkJCa6NJA9BSf412fybaPzeTY1PB+mQcjGLl399omdZVvnypRsHGea8fW X-Received: by 2002:a17:902:8647:: with SMTP id y7-v6mr17340454plt.86.1527599646076; Tue, 29 May 2018 06:14:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527599646; cv=none; d=google.com; s=arc-20160816; b=khTSrtnkgGBqEBNgKv0Zuv6i8ZBgrBs9dtSE8pAOC0NDYWnKRaRe4CxvSYg8+5aCpO G+DPnIOKpAUEkVuHt7sNJ32HhGf6gkoUwd/VyoIwo26Z6NdUvqo4sQwELnVdLYKgTmNi jxs/H87egQjXpYu8kkPzz8SVzUWJvpWyhvVzcQFBszzV4MgrUT/RVWgAoyl+FM4BMLvI I1L+0ycyq7yX0+QOWfMA855RoJLoglh4XJsjy6GWPXrVT6r8u0en4aWRtWUonk03QvX7 cA6J2JJu0H8yUo43Jo/SaKZj6gPusMuXpua+HcycmCUgLrvtl0AWJlwwyZplNkCUC3or BD1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=omEbUwtkKxeXojUIiWvYzfvoWrxt8+W215f910IJQlM=; b=szir8ol3Kz4NEhYLhCJDOFUt2oZ1HNl1I1/e1Pg7CbCQVK2+2N6QL7X2PM10Rtvxpa nX5fmWkTtP4JoLWM5ibLSMsFPLxep4Opkitlw9rXwW7ZCyBQMlJBNgeJLs9gIi3w6hcJ KgHSXDrgO29IMh+pK7KNOnyM3OBGVZ9Vx3ZnX2A2clZWIe9JOip7c2hdVP1mxKCgukZ6 czvi5g5Tks/PY/NblxxgHWGjC8AdeOKJk859WCI/j9vyU1wSD14PmD39L4gB8ELlO6sp R/q7VDj3QZ46CSLyh573ruKqYNBgpl+sWtZZwFnmsnmVfCjCczLZil1jvoaCeSb+kqNH D3Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=exCQ03jF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h68-v6si10276834pgc.429.2018.05.29.06.13.22; Tue, 29 May 2018 06:14:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=exCQ03jF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934281AbeE2NLh (ORCPT + 99 others); Tue, 29 May 2018 09:11:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:45736 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933756AbeE2NLa (ORCPT ); Tue, 29 May 2018 09:11:30 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1E90520880; Tue, 29 May 2018 13:11:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527599489; bh=xVsgwsocI0Ky6Tyo99vJYIaJhVuUB28zGdD9y0VP5RI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=exCQ03jFSu4Al7T2TrK+SUCMtPPQxoemHWRSOtBg/eFabe6zxxwJ2HGo4oyYvsH4S VG8GKtl9MUwYo5FDlM+PXC7SPMGMhLSr804Zx121yTbLp4mjRuPStnnTHldiGXQYK3 CvgUzKI1/935Vy//LxooAGzUGlSOwXxejXhx6qIM= Date: Tue, 29 May 2018 15:11:09 +0200 From: Greg KH To: Oleksandr Shamray Cc: arnd@arndb.de, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, openbmc@lists.ozlabs.org, joel@jms.id.au, jiri@resnulli.us, tklauser@distanz.ch, linux-serial@vger.kernel.org, vadimp@mellanox.com, system-sw-low-level@mellanox.com, robh+dt@kernel.org, openocd-devel-owner@lists.sourceforge.net, linux-api@vger.kernel.org, davem@davemloft.net, mchehab@kernel.org Subject: Re: [patch v23 2/4] drivers: jtag: Add Aspeed SoC 24xx and 25xx families JTAG master driver Message-ID: <20180529131109.GD30119@kroah.com> References: <1527594545-19870-1-git-send-email-oleksandrs@mellanox.com> <1527594545-19870-3-git-send-email-oleksandrs@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1527594545-19870-3-git-send-email-oleksandrs@mellanox.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 29, 2018 at 02:49:03PM +0300, Oleksandr Shamray wrote: > +static int aspeed_jtag_idle(struct jtag *jtag, > + struct jtag_run_test_idle *runtest) > +{ > + struct aspeed_jtag *aspeed_jtag = jtag_priv(jtag); > + > + dev_dbg(aspeed_jtag->dev, "runtest, status:%d, mode:%s, state:%s, reset:%d, tck:%d\n", > + aspeed_jtag->status, > + aspeed_jtag->mode & JTAG_XFER_HW_MODE ? "HW" : "SW", > + end_status_str[runtest->endstate], runtest->reset, > + runtest->tck); You have dev_dbg() lines all over the place. They can all be removed now, right? ftrace works well, and if you really want to do this properly, use tracepoints in the jtag core code so that you can get the information for all devices as needed. But don't put them all over the driver, now that it's all working, there's no need, right? > +static void aspeed_jtag_xfer_push_data_last(struct aspeed_jtag *aspeed_jtag, > + enum jtag_xfer_type type, > + u32 shift_bits, > + enum jtag_endstate endstate) > +{ > + if (endstate == JTAG_STATE_IDLE) { > + if (type == JTAG_SIR_XFER) { > + dev_dbg(aspeed_jtag->dev, "IR Keep Pause\n"); Like this, doesn't provide much info, does it? thanks, greg k-h