Received: by 10.192.165.148 with SMTP id m20csp3342088imm; Mon, 23 Apr 2018 05:04:57 -0700 (PDT) X-Google-Smtp-Source: AIpwx49g00Hog5OeUMJqxJqW4gH5qx5NbYcbnIykXraPKkihNDWD11Qwu44XtynUEqbe08b4CAfS X-Received: by 10.99.0.4 with SMTP id 4mr16613197pga.107.1524485097185; Mon, 23 Apr 2018 05:04:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524485097; cv=none; d=google.com; s=arc-20160816; b=VG54DkHKiuEXP5H+foi9mIBD4Ls7g08TtvwFvfGHbU1QTIe1iWDCQPNr0kDXzwz103 8Rgw8uDCQqC2KOgO5pdOT7r4+80y7cggKMf+lym3jQGM88C3LUpUo4KPygmoEyAbkVnt AqaWcKfT9SXJ4p5GXkEh3lM17R+po5NS+c7WO7tCEIC6h2EeI8OQiqN1X+PHbfOiSerX UyRfdywqHiuLTjjsVBkNZ8yLStyk+m7qkDgxt72qZVnZ7ALAGPN3whWIKlSaRNs3t83h fJoiYLWn/+K0zDWxX3drw+fxvhLzMu89GIeFbms9O8wpIS0MWHcycae0eh7FhZmjGlpf to4w== 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:arc-authentication-results; bh=q3MP+fxWivpUzo2FKk6E00IkGjLe02GGPIsGEBQwKO4=; b=aKQZIbskN+E9BE7BJBbPtYerl9u/j2mrUDChtyjd6zG5SRCPP/nWzdQG7zwpNyleDN eH/60oahrbEqPBIlJZBYQCTLqO02oyx1zfKzcNwVwZA7pJon3Kkdh1yfIRZnDy9kFd9K tjcCLyeOj2BRQuIzpZRTH8XG7I4+UJJdfzMVYlyJgxG8KRAOPc03opzroqXHDK78y6op IKz+r5jbXVLXoIRSCvY5BDYC2dzLR62ytbtzYmORHLlFlO5ac1sva0O475z49JWutnpP a/wjE9Em+5DcKB2403OifUk+mPOnf7JOhE0Tn6l/h6Nr3+0lY+Z8cwdDZNLPMiuHxDzz DsmQ== ARC-Authentication-Results: i=1; mx.google.com; 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 a9si9382207pgf.259.2018.04.23.05.04.42; Mon, 23 Apr 2018 05:04: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; 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 S1754950AbeDWMDJ (ORCPT + 99 others); Mon, 23 Apr 2018 08:03:09 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:41844 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754766AbeDWMDG (ORCPT ); Mon, 23 Apr 2018 08:03:06 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id B1FBBDA8; Mon, 23 Apr 2018 12:03:05 +0000 (UTC) Date: Mon, 23 Apr 2018 14:03:00 +0200 From: Greg KH To: richard.gong@linux.intel.com Cc: catalin.marinas@arm.com, will.deacon@arm.com, dinguyen@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, atull@kernel.org, mdf@kernel.org, arnd@arndb.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-fpga@vger.kernel.org, yves.vandervennet@linux.intel.com, richard.gong@intel.com Subject: Re: [PATCHv3 3/7] driver, misc: add Intel Stratix10 service layer driver Message-ID: <20180423120300.GC7951@kroah.com> References: <1522182014-7338-1-git-send-email-richard.gong@linux.intel.com> <1522182014-7338-4-git-send-email-richard.gong@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1522182014-7338-4-git-send-email-richard.gong@linux.intel.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 27, 2018 at 03:20:10PM -0500, richard.gong@linux.intel.com wrote: > +config INTEL_SERVICE Naming is hard, but this is a _very_ generic name, don't you agree? > + tristate "Intel Service Layer" As is this. Can you make this a bit more specific to what hardware is being controlled here? > +++ b/drivers/misc/intel-service.c Same for the file name, why not stratix10.c? or intel_svc.c? That makes it a _bit_ more generic. Well, not really, but it does hide the "genericness" a bit more, right? > --- /dev/null > +++ b/include/linux/intel-service-client.h > @@ -0,0 +1,188 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * Copyright (C) 2017-2018, Intel Corporation > + */ > + > +#ifndef __INTEL_SERVICE_CLIENT_H > +#define __INTEL_SERVICE_CLIENT_H > + > +/* > + * Service layer driver supports client names > + * > + * fpga: for FPGA configuration > + * dummy: for integration/debug/trouble-shooting > + */ > +#define SVC_CLIENT_FPGA "fpga" > +#define SVC_CLIENT_DUMMY "dummy" > + > +/* > + * Status of the sent command, in bit number > + * > + * SVC_COMMAND_STATUS_RECONFIG_REQUEST_OK: > + * Secure firmware accepts the request of FPGA reconfiguration. > + * > + * SVC_STATUS_RECONFIG_BUFFER_SUBMITTED: > + * Service client successfully submits FPGA configuration > + * data buffer to secure firmware. > + * > + * SVC_COMMAND_STATUS_RECONFIG_BUFFER_DONE: > + * Secure firmware completes data process, ready to accept the > + * next WRITE transaction. > + * > + * SVC_COMMAND_STATUS_RECONFIG_COMPLETED: > + * Secure firmware completes FPGA configuration successfully, FPGA should > + * be in user mode. > + * > + * SVC_COMMAND_STATUS_RECONFIG_BUSY: > + * FPGA configuration is still in process. > + * > + * SVC_COMMAND_STATUS_RECONFIG_ERROR: > + * Error encountered during FPGA configuration. > + */ You have an odd mix of kernel-doc formatting and non-kernel-doc formatting in this file. Pick one and stick with it :) Also, if you use kernel-doc (as you should), please hook it up to the kernel documentation build process to take advantage of it. thanks, greg k-h