From: Greg KH <gregkh@linuxfoundation.org>
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
Date: Mon, 23 Apr 2018 14:03:00 +0200 [thread overview]
Message-ID: <20180423120300.GC7951@kroah.com> (raw)
In-Reply-To: <1522182014-7338-4-git-send-email-richard.gong@linux.intel.com>
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
WARNING: multiple messages have this Message-ID (diff)
From: gregkh@linuxfoundation.org (Greg KH)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCHv3 3/7] driver, misc: add Intel Stratix10 service layer driver
Date: Mon, 23 Apr 2018 14:03:00 +0200 [thread overview]
Message-ID: <20180423120300.GC7951@kroah.com> (raw)
In-Reply-To: <1522182014-7338-4-git-send-email-richard.gong@linux.intel.com>
On Tue, Mar 27, 2018 at 03:20:10PM -0500, richard.gong at 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
next prev parent reply other threads:[~2018-04-23 12:03 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-27 20:20 [PATCHv3 0/7] Add Intel Stratix10 FPGA manager and service layer richard.gong
2018-03-27 20:20 ` richard.gong at linux.intel.com
2018-03-27 20:20 ` [PATCHv3 1/7] dt-bindings, firmware: add Intel Stratix10 service layer binding richard.gong
2018-03-27 20:20 ` richard.gong at linux.intel.com
2018-04-05 13:16 ` Rob Herring
2018-04-05 13:16 ` Rob Herring
2018-03-27 20:20 ` [PATCHv3 2/7] arm64: dts: stratix10: add service driver binding to base dtsi richard.gong
2018-03-27 20:20 ` richard.gong at linux.intel.com
2018-03-27 20:20 ` [PATCHv3 3/7] driver, misc: add Intel Stratix10 service layer driver richard.gong
2018-03-27 20:20 ` richard.gong at linux.intel.com
2018-04-23 12:03 ` Greg KH [this message]
2018-04-23 12:03 ` Greg KH
2018-04-24 11:24 ` David Laight
2018-04-24 11:24 ` David Laight
2018-03-27 20:20 ` [PATCHv3 4/7] dt-bindings: fpga: add Stratix10 SoC FPGA manager binding richard.gong
2018-03-27 20:20 ` richard.gong
2018-03-27 20:20 ` richard.gong at linux.intel.com
2018-03-29 21:12 ` Alan Tull
2018-03-29 21:12 ` Alan Tull
2018-03-27 20:20 ` [PATCHv3 5/7] arm64: dts: stratix10: add fpga manager and region richard.gong
2018-03-27 20:20 ` richard.gong at linux.intel.com
2018-03-27 20:20 ` [PATCHv3 6/7] fpga: add intel stratix10 soc fpga manager driver richard.gong
2018-03-27 20:20 ` richard.gong at linux.intel.com
2018-03-27 20:20 ` [PATCHv3 7/7] defconfig: enable fpga and service layer richard.gong
2018-03-27 20:20 ` richard.gong at linux.intel.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180423120300.GC7951@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=arnd@arndb.de \
--cc=atull@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=devicetree@vger.kernel.org \
--cc=dinguyen@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-fpga@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mdf@kernel.org \
--cc=richard.gong@intel.com \
--cc=richard.gong@linux.intel.com \
--cc=robh+dt@kernel.org \
--cc=will.deacon@arm.com \
--cc=yves.vandervennet@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.