Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2265999yba; Thu, 25 Apr 2019 13:27:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwEUMu8/z1RSygex1CtBF+IjKi9Rle7Eb8/TtkXbWTvIxj61XBhINNBL5LE3o9Bd44ZjI4 X-Received: by 2002:a63:6ac1:: with SMTP id f184mr40164202pgc.25.1556224046924; Thu, 25 Apr 2019 13:27:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556224046; cv=none; d=google.com; s=arc-20160816; b=MiZ2edeqi4HjZdFHIoR6zEWd/04nJ/hLDKVqkTQr8Zyqa82gt5A5Q2+IT8OgHJ4bac RUSYCjwvjW0vuVQ+SznMyRrysHmzSzpPXEOgJIMhZUJpaLyW6IXQv3RDJupFaQr0IncT aX7V3z2xh4C7qc5VfSVX0QuDXTTrZ1XPyb9rvWwWzYuqGO0HvTagggPHenxlTKflXKBI 7YO+A6qtcOGnXxRs/K6cFdZmWudvZAS64LDCiNqiTUGIJlV7kBiv5OYcW40N+F2H4ArE bMbtL8FK0QSq0E7II6nrWP4oaysGB6DVdf35Fn6NtfMaLmgf1JJ5dep+D5tOGUZEtk1j 6Cdg== 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; bh=T0a6S5+hAXqMjSmjNRyOIGwG4gjl3vdb0bp9tFXJQWg=; b=bo0lCZrnMpDuAIaN1C7BR2Wks70CJUsRboj7y8/vKstesUVZqGboPc+PVVBooQldhG keqwbbQoTGca3zeIlpKrrIhtNQ72Lc6xGDb+GTqytAZF6kb0E6TnuhFasDECfBD0/BGu iLta3w9hIxEEV/LjiKJTbyTW1tyTLBAgt+vLjHDcli+pk2FpKYmr75xqYHSr2er1Ntwn q5YRUjUc04lJde9k+RlGYjBcBmML0L4UbFz03LxZTNMOdZ5B78K/YfAZhRWpdfhsf6IG ZSlMUfIrn59KvGu7UNm10xIpR8nFiwOF2VtV1VtItCUFj6CqqbgTM4Rv5WfJ/WRJgpkh +vYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gH+NZYYM; 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 i8si17325772pgf.502.2019.04.25.13.27.07; Thu, 25 Apr 2019 13:27:26 -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=gH+NZYYM; 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 S1730874AbfDYUZ4 (ORCPT + 99 others); Thu, 25 Apr 2019 16:25:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:52732 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728011AbfDYUZ4 (ORCPT ); Thu, 25 Apr 2019 16:25:56 -0400 Received: from localhost (62-193-50-229.as16211.net [62.193.50.229]) (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 E4A1A206A3; Thu, 25 Apr 2019 20:25:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556223955; bh=cenwiA27vap1/VYbHNX5BoEz4uRg1JH/5Tglhr2eAFw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gH+NZYYMzgFjCtl6ti0T3gxc7VoXmbRmexwKU4UyULDrGRQchwyfg9WIVRRUx6Vfq 9KTpcRQh/YwgJzRdZf64IYskyrFQ6YtIobchgulOC526bFgpRJfgaARFTy3CNTczjG 5goqYkPSr7OjKpXnEixtb22P4exozkoUM1R1jyaw= Date: Thu, 25 Apr 2019 22:25:52 +0200 From: Greg KH To: Dragan Cvetic Cc: arnd@arndb.de, michal.simek@xilinx.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Derek Kiernan Subject: Re: [PATCH V2 02/12] misc: xilinx-sdfec: add core driver Message-ID: <20190425202552.GB22307@kroah.com> References: <1554804414-206099-1-git-send-email-dragan.cvetic@xilinx.com> <1554804414-206099-3-git-send-email-dragan.cvetic@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1554804414-206099-3-git-send-email-dragan.cvetic@xilinx.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 09, 2019 at 11:06:44AM +0100, Dragan Cvetic wrote: > +++ b/include/uapi/misc/xilinx_sdfec.h > @@ -0,0 +1,42 @@ > +/* SPDX-License-Identifier: GPL-2.0+ */ That is not the proper SPDX license for a UAPI kernel header file :( Please fix this up. Also, why do you need a uapi file at all? Who is using these values? > +/* > + * Xilinx SD-FEC > + * > + * Copyright (C) 2016 - 2017 Xilinx, Inc. > + * > + * Description: > + * This driver is developed for SDFEC16 IP. It provides a char device > + * in sysfs and supports file operations like open(), close() and ioctl(). > + */ > +#ifndef __XILINX_SDFEC_H__ > +#define __XILINX_SDFEC_H__ > + > +/** > + * enum xsdfec_state - State. > + * @XSDFEC_INIT: Driver is initialized. > + * @XSDFEC_STARTED: Driver is started. > + * @XSDFEC_STOPPED: Driver is stopped. > + * @XSDFEC_NEEDS_RESET: Driver needs to be reset. > + * @XSDFEC_PL_RECONFIGURE: Programmable Logic needs to be recofigured. > + * > + * This enum is used to indicate the state of the driver. > + */ > +enum xsdfec_state { > + XSDFEC_INIT = 0, > + XSDFEC_STARTED, > + XSDFEC_STOPPED, > + XSDFEC_NEEDS_RESET, > + XSDFEC_PL_RECONFIGURE, > +}; > + > +/** > + * struct xsdfec_config - Configuration of SD-FEC core. > + * @fec_id: ID of SD-FEC instance. ID is limited to the number of active > + * SD-FEC's in the FPGA and is related to the driver instance > + * Minor number. > + */ > +struct xsdfec_config { > + s32 fec_id; What is this structure for and why are you telling userspace about it? If you are telling userspace about it, you are using the wrong data type :( thanks, greg k-h