public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: "J. German Rivera" <German.Rivera@freescale.com>,
	gregkh@linuxfoundation.org, arnd@arndb.de,
	linux-kernel@vger.kernel.org
Cc: stuart.yoder@freescale.com, Kim.Phillips@freescale.com,
	scottwood@freescale.com, bhamciu1@freescale.com,
	R89243@freescale.com, Geoff.Thorpe@freescale.com,
	bhupesh.sharma@freescale.com, nir.erez@freescale.com,
	richard.schmitt@freescale.com
Subject: Re: [PATCH v7 1/3] drivers/bus: Added Freescale Management Complex APIs
Date: Thu, 26 Feb 2015 13:55:39 +0100	[thread overview]
Message-ID: <54EF17CB.7070803@suse.de> (raw)
In-Reply-To: <1424816514-26369-2-git-send-email-German.Rivera@freescale.com>



On 24.02.15 23:21, J. German Rivera wrote:
> APIs to access the Management Complex (MC) hardware
> module of Freescale LS2 SoCs. This patch includes
> APIs to check the MC firmware version and to manipulate
> DPRC objects in the MC.
> 
> Signed-off-by: J. German Rivera <German.Rivera@freescale.com>
> Signed-off-by: Stuart Yoder <stuart.yoder@freescale.com>

Only 2 minor nits.

[...]

> +int mc_get_version(struct fsl_mc_io *mc_io, struct mc_version *mc_ver_info)
> +{
> +	struct mc_command cmd = { 0 };
> +	int err;
> +
> +	/* prepare command */
> +	cmd.header = mc_encode_cmd_header(DPMNG_CMDID_GET_VERSION,
> +					  MC_CMD_PRI_LOW, 0);
> +
> +	/* send command to mc*/

Either my mail client is broken or this is a copy&paste error throughout
the file :).

> +	err = mc_send_command(mc_io, &cmd);
> +	if (err)
> +		return err;
> +
> +	/* retrieve response parameters */
> +	mc_ver_info->revision = mc_dec(cmd.params[0], 0, 32);
> +	mc_ver_info->major = mc_dec(cmd.params[0], 32, 32);
> +	mc_ver_info->minor = mc_dec(cmd.params[1], 0, 32);
> +
> +	return 0;
> +}

[...]

> +
> +struct mc_command {
> +	uint64_t header;
> +	uint64_t params[MC_CMD_NUM_OF_PARAMS];
> +};
> +
> +enum mc_cmd_status {
> +	MC_CMD_STATUS_OK = 0x0, /*!< Completed successfully */

What is /*!< supposed to be? Can't this just be /*?

> +	MC_CMD_STATUS_READY = 0x1, /*!< Ready to be processed */
> +	MC_CMD_STATUS_AUTH_ERR = 0x3, /*!< Authentication error */
> +	MC_CMD_STATUS_NO_PRIVILEGE = 0x4, /*!< No privilege */
> +	MC_CMD_STATUS_DMA_ERR = 0x5, /*!< DMA or I/O error */
> +	MC_CMD_STATUS_CONFIG_ERR = 0x6, /*!< Configuration error */
> +	MC_CMD_STATUS_TIMEOUT = 0x7, /*!< Operation timed out */
> +	MC_CMD_STATUS_NO_RESOURCE = 0x8, /*!< No resources */
> +	MC_CMD_STATUS_NO_MEMORY = 0x9, /*!< No memory available */
> +	MC_CMD_STATUS_BUSY = 0xA, /*!< Device is busy */
> +	MC_CMD_STATUS_UNSUPPORTED_OP = 0xB, /*!< Unsupported operation */
> +	MC_CMD_STATUS_INVALID_STATE = 0xC /*!< Invalid state */
> +};


Alex

  reply	other threads:[~2015-02-26 12:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-24 22:21 [PATCH v7 0/3] drivers/bus: Freescale Management Complex bus driver patch series J. German Rivera
2015-02-24 22:21 ` [PATCH v7 1/3] drivers/bus: Added Freescale Management Complex APIs J. German Rivera
2015-02-26 12:55   ` Alexander Graf [this message]
2015-02-24 22:21 ` [PATCH v7 2/3] drivers/bus: Freescale Management Complex (fsl-mc) bus driver J. German Rivera
2015-02-26 14:02   ` Alexander Graf
2015-02-24 22:21 ` [PATCH v7 3/3] drivers/bus: Device driver for FSL-MC DPRC devices J. German Rivera
2015-02-26 14:08   ` Alexander Graf

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=54EF17CB.7070803@suse.de \
    --to=agraf@suse.de \
    --cc=Geoff.Thorpe@freescale.com \
    --cc=German.Rivera@freescale.com \
    --cc=Kim.Phillips@freescale.com \
    --cc=R89243@freescale.com \
    --cc=arnd@arndb.de \
    --cc=bhamciu1@freescale.com \
    --cc=bhupesh.sharma@freescale.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nir.erez@freescale.com \
    --cc=richard.schmitt@freescale.com \
    --cc=scottwood@freescale.com \
    --cc=stuart.yoder@freescale.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox