[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190402133130.GA14646@archbook>
Date: Tue, 2 Apr 2019 06:31:30 -0700
From: Moritz Fischer <mdf@...nel.org>
To: Nava kishore Manne <nava.manne@...inx.com>
Cc: atull@...nel.org, mdf@...nel.org, robh+dt@...nel.org,
mark.rutland@....com, michal.simek@...inx.com, rajanv@...inx.com,
jollys@...inx.com, linux-fpga@...r.kernel.org,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, chinnikishore369@...il.com
Subject: Re: [PATCH v4 3/3] fpga manager: Adding FPGA Manager support for
Xilinx zynqmp
Hi Nava,
looks mostly good to me. One minor nit below:
On Tue, Apr 02, 2019 at 06:01:23PM +0530, Nava kishore Manne wrote:
[..]
> diff --git a/drivers/fpga/zynqmp-fpga.c b/drivers/fpga/zynqmp-fpga.c
> new file mode 100644
> index 000000000000..f6e35fe95adb
> --- /dev/null
> +++ b/drivers/fpga/zynqmp-fpga.c
> @@ -0,0 +1,159 @@
> +// SPDX-License-Identifier: GPL-2.0+
> +/*
> + * Copyright (C) 2019 Xilinx, Inc.
> + */
> +
> +#include <linux/dma-mapping.h>
> +#include <linux/fpga/fpga-mgr.h>
> +#include <linux/io.h>
> +#include <linux/kernel.h>
> +#include <linux/module.h>
> +#include <linux/of_address.h>
> +#include <linux/string.h>
> +#include <linux/firmware/xlnx-zynqmp.h>
> +
> +/* Constant Definitions */
> +#define IXR_FPGA_DONE_MASK 0X00000008U
You could use the BIT(x) macro here.
> +
> +/**
> + * struct zynqmp_fpga_priv - Private data structure
> + * @dev: Device data structure
> + * @flags: flags which is used to identify the bitfile type
> + */
> +struct zynqmp_fpga_priv {
> + struct device *dev;
> + u32 flags;
> +};
> +
[..]
Reviewed-by: Moritz Fischer <mdf@...nel.org>
Thanks,
Moritz
Powered by blists - more mailing lists