Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3370980imm; Tue, 29 May 2018 06:11:57 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJlPqjB6jKQ8xpWF6EodGFvSXI2xW+9Hr7vKLTxgPnhZeVWstOZoLahAdaXcdO2LgXhegV0 X-Received: by 2002:a62:4141:: with SMTP id o62-v6mr4445393pfa.111.1527599517183; Tue, 29 May 2018 06:11:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527599517; cv=none; d=google.com; s=arc-20160816; b=shVwavSFP2MdPRD2UuYzCLCWu9cDgoMlibsiNoe+RbnIxzNWQZMWjELXtK+WXBlZOK jlNv+FF0wQq6HTH1+532JR4p8Hg8ucl7fbQ1DL4qeatO/J3A3PUm3O0y3HNSzKVOG17O Ks9UOCgYffHjlQpjytkqCy8GmBOx4oguyNBJd6BWIC2ykHinaaOo5YdcCzlkMkvRn1gQ 3h5iMfNHcMAQ5t/ztmSvIo2934fyBe0BqjYu4EpwKN/iQCvp5NMPNizo+v+6lOYEJcvk UTpkSQZ33NGDuGZgXNV3yTf3WCf/g2Dt+ss7FcjNVi+Y7ooBJBQZC8Irs9+s+rBHx7Be GYyw== 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=3OepbobPA2dvVOw5SjHuyCh1fqcnS4RV8N4iEd97+R4=; b=zCh5hrhMwEOkPFF8pI9EtMY/5BaBRR8dN0QLdrdxIuMA36lCWSVSsMLmE6SqsrA7fw 8izUEDGs66NCzkJG718ipt3KE0UBRgI2dLqs85N57Mol+pQSF0nGEZhIbK7qf7g7yUij ysTZahdw3YaJkmF8LXvPN9qfQgKJ1m1yPwrvpz0hqFJWsanR5KWJMeKEbPQAR4rBxf/6 lcD3lNJPahmfsuL0VNJ182zJ1eWVLUWVjTgHi9P1hBpD93pwRIUGT29Owt04vh8B9Gsc JJoia06ZXThdEHKxsDI/EQG+5qFsxe92SgihlfpkWkufKwOoYY8slq3fyEySTwIJfFQx 7vew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mJl1EUzP; 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 e26-v6si32645894pfb.185.2018.05.29.06.11.43; Tue, 29 May 2018 06:11:57 -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=mJl1EUzP; 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 S934442AbeE2NKO (ORCPT + 99 others); Tue, 29 May 2018 09:10:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:45174 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934378AbeE2NKJ (ORCPT ); Tue, 29 May 2018 09:10:09 -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 EF41320883; Tue, 29 May 2018 13:10:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527599408; bh=/eW3J3f6Vv9asOG9JE09CJvnzJ9BmtDOdmJL/NUDZaI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mJl1EUzPntspP1zJusKDXNxKvLW+UF6tqhswwkOxb6PVa2DCwnUavN2pgQAV7w67z tEkbijo4F2PH35dcDGg+ea7946djiFo8ZjVt+woMO3lSgw03cQbWMaUYmfihfPem2a 0/5AIL7JaGaO+Y04y3+b14XQFkmrfM/LyLbunpBE= Date: Tue, 29 May 2018 15:09:48 +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 1/4] drivers: jtag: Add JTAG core driver Message-ID: <20180529130948.GC30119@kroah.com> References: <1527594545-19870-1-git-send-email-oleksandrs@mellanox.com> <1527594545-19870-2-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-2-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:02PM +0300, Oleksandr Shamray wrote: > +static int jtag_release(struct inode *inode, struct file *file) > +{ > + return 0; > +} If you do not do anything, then there is no need to have this callback at all, right? > +/** > + * enum jtag_endstate: > + * > + * @JTAG_STATE_IDLE: JTAG state machine IDLE state > + * @JTAG_STATE_PAUSEIR: JTAG state machine PAUSE_IR state > + * @JTAG_STATE_PAUSEDR: JTAG state machine PAUSE_DR state > + */ > +enum jtag_endstate { > + JTAG_STATE_IDLE, > + JTAG_STATE_PAUSEIR, > + JTAG_STATE_PAUSEDR, Be specific with these enums, set them to a value so you know all is good. Userspace C compilers can be funny at times. Otherwise, looks really good, nice work. greg k-h