Received: by 10.192.165.148 with SMTP id m20csp1341188imm; Thu, 10 May 2018 09:11:44 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoUtlKJnu7jYxdeKOu2iOhSmEl0lzGttCeDZfjSA+yPNIzr4pcUoulTxbSjhIibT9Wr+cEq X-Received: by 2002:a63:6ec6:: with SMTP id j189-v6mr92097pgc.71.1525968704916; Thu, 10 May 2018 09:11:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525968704; cv=none; d=google.com; s=arc-20160816; b=UzjEEWOxrzp+RvxXIsWUMGwS3gaH0leIevYstR4CSA2ePwui/Hd4z3MEDSpJTXm+u3 qPVQFFEagiK0YSYA6nwHqbTlV8tzfivnyLa+sif6nUp5lIzkFU3/YN1gBhQOMq+o68Pw ScTvQydc1T2jqPRpAYF9Wr6fafgwWe4DXrtXiCZ2mvkLEkdb1+0RwQYKLG3cBbNeo4o/ 3VnGCTlZxauw2eey2hADjywDpSDeQYwlUHfXqYsXiLgIpBDuN/eBDai4TydBrx6UcnUM UvzEUBuCUZ4N/szy/7V+wOSMyXnig+YVxLcKMI4AkygZRjyvZowbJsBcdR4GX11hoe7S cFJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=6jHl4PArWGT62OQTjIs1/jR+ziCp1Ank/4ivo/gNXM8=; b=w+dcW9qY8P6s1/72pKwN+/7qYJkW/ZporoscryjHlDglLeyztGs+moDCf6nvY+UCLp nDL1LFFey4bRH5Q+lEiq423BAQPvZVkRpXlB41dz/Wr8RaZ0nWBoBpZL2I29h2a1QrhJ M44nntZow4jdItvo0dDlN1ZIheSPibtlkKMihArPkEeeUrFtWZPOanBFb5UyuMKqY3uh 5tKAlk3rZgX/VJW/SdyyiwmijjVV9fQNK6yDBXqV/WDVjDJaEiCFK17eaRCMme+Oolkx lGu8tZ1t9TDny1MbeSh/DmaJ1esPwYy17QuDbvf9y8m9EXFIoiJ3GrUzw1PVb2cWjL0o VrUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=2Oh+25di; 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 y40-v6si1055758pla.470.2018.05.10.09.11.30; Thu, 10 May 2018 09:11:44 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=2Oh+25di; 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 S966479AbeEJQKE (ORCPT + 99 others); Thu, 10 May 2018 12:10:04 -0400 Received: from merlin.infradead.org ([205.233.59.134]:45236 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965030AbeEJQKB (ORCPT ); Thu, 10 May 2018 12:10:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=6jHl4PArWGT62OQTjIs1/jR+ziCp1Ank/4ivo/gNXM8=; b=2Oh+25did3RZqBlcmuJhvVfo9i mvG+h1GFXThEwSEcP+ofDJnx6weaU6PM48Il9FIryj31q59GfRJEFmYUavnGIHNy43BpUhJtkqQ+d 73uYyA2XUIL7tPqvbFH4SONUCoQV6FQx6yWboKEA9+OUXKnerzcA8km1vG05DbX3zm5tgRotg+Qpg nB4zSh6AMXawKi74cp9gFo1/ndbcka3Abh/17OtwCebHUAY4NYsot6c/1wyrOJ7UtfWHt81f5cYid dBXxqcIELsOb+37ioEQiOSSaR7TDKWF76PgQ1Oy9jkoOlb7ErOaTqJPE61NXuWNAhohYSc96bs56C nPcHXVsg==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=dragon.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fGo8d-0001Oo-90; Thu, 10 May 2018 16:09:51 +0000 Subject: Re: [patch v19 1/4] drivers: jtag: Add JTAG core driver To: Oleksandr Shamray , gregkh@linuxfoundation.org, arnd@arndb.de Cc: 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, Jiri Pirko References: <1525967064-10760-1-git-send-email-oleksandrs@mellanox.com> <1525967064-10760-2-git-send-email-oleksandrs@mellanox.com> From: Randy Dunlap Message-ID: Date: Thu, 10 May 2018 09:09:45 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1525967064-10760-2-git-send-email-oleksandrs@mellanox.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/10/2018 08:44 AM, Oleksandr Shamray wrote: > Initial patch for JTAG driver > JTAG class driver provide infrastructure to support hardware/software > JTAG platform drivers. It provide user layer API interface for flashing > and debugging external devices which equipped with JTAG interface > using standard transactions. > --- > Documentation/ioctl/ioctl-number.txt | 2 + > MAINTAINERS | 10 ++ > drivers/Kconfig | 2 + > drivers/Makefile | 1 + > drivers/jtag/Kconfig | 16 ++ > drivers/jtag/Makefile | 1 + > drivers/jtag/jtag.c | 273 ++++++++++++++++++++++++++++++++++ > include/linux/jtag.h | 41 +++++ > include/uapi/linux/jtag.h | 105 +++++++++++++ > 9 files changed, 451 insertions(+), 0 deletions(-) > create mode 100644 drivers/jtag/Kconfig > create mode 100644 drivers/jtag/Makefile > create mode 100644 drivers/jtag/jtag.c > create mode 100644 include/linux/jtag.h > create mode 100644 include/uapi/linux/jtag.h > > diff --git a/drivers/jtag/Kconfig b/drivers/jtag/Kconfig > new file mode 100644 > index 0000000..5e2c75b > --- /dev/null > +++ b/drivers/jtag/Kconfig > @@ -0,0 +1,16 @@ > +menuconfig JTAG > + tristate "JTAG support" > + help > + This provides basic core functionality support for jtag class devices JTAG class devices. > + Hardware equipped with JTAG microcontroller which can be built I'm having problems understanding the line above + first 1/2 of the line below. Maybe something like: Hardware that is equipped with a JTAG microcontroller can be supported by using this driver's interfaces. > + on top of this drivers. Driver exposes the set of IOCTL to the This driver exposes a set of IOCTLs to > + user space for: > + SIR (Scan Instruction Register, IEEE 1149.1 Data Register scan); ^^^^? Instruction? > + SDR (Scan Data Register, IEEE 1149.1 Instruction Register scan); ^^^^^^^^^^^? Data? > + RUNTEST (Forces IEEE 1149.1 bus to a run state for specified > + number of clocks). > + > + If you want this support, you should say Y here. > + > + To compile this driver as a module, choose M here: the module will > + be called jtag. -- ~Randy