Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752792AbdLEN35 (ORCPT ); Tue, 5 Dec 2017 08:29:57 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:40714 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752149AbdLEN3y (ORCPT ); Tue, 5 Dec 2017 08:29:54 -0500 Date: Tue, 5 Dec 2017 14:30:02 +0100 From: Greg KH To: Dhaval Shah Cc: arnd@arndb.de, linux-kernel@vger.kernel.org, michal.simek@xilinx.com, hyunk@xilinx.com, Dhaval Shah Subject: Re: [PATCH] [linux][master][v1] misc: Add Xilinx ZYNQMP VCU logicoreIP init driver Message-ID: <20171205133002.GB13746@kroah.com> References: <1512474212-12803-1-git-send-email-dshah@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1512474212-12803-1-git-send-email-dshah@xilinx.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2433 Lines: 87 On Tue, Dec 05, 2017 at 03:43:32AM -0800, Dhaval Shah wrote: > Xilinx ZYNQMP VCU Init driver is based on the new LogiCoreIP design > created. This driver will provide the api which can be used > by the encoder and decoder driver to get the configured value. Your subject has a lot of [] in it, none of that is needed except the [PATCH] one :) > > Signed-off-by: Dhaval Shah > --- > drivers/misc/Kconfig | 6 + > drivers/misc/Makefile | 1 + > drivers/misc/xlnx_vcu.c | 664 ++++++++++++++++++++++++++++++++++++++++++++++++ > include/misc/xlnx_vcu.h | 18 ++ > 4 files changed, 689 insertions(+) > create mode 100644 drivers/misc/xlnx_vcu.c > create mode 100644 include/misc/xlnx_vcu.h > > diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig > index f1a5c23..3b7c796 100644 > --- a/drivers/misc/Kconfig > +++ b/drivers/misc/Kconfig > @@ -496,6 +496,12 @@ config PCI_ENDPOINT_TEST > Enable this configuration option to enable the host side test driver > for PCI Endpoint. > > +config XILINX_VCU > + tristate "Xilinx VCU Init" > + default n That's always the default, no need for this. > + help > + Driver for the Xilinx VCU Init based on the logicoreIP. You need a lot more help text here to explain what this driver is, what it is for, and who would need it. Also, why is this a misc driver? > --- /dev/null > +++ b/drivers/misc/xlnx_vcu.c > @@ -0,0 +1,664 @@ > +/* > + * Xilinx VCU Init > + * > + * Copyright (C) 2016 - 2017 Xilinx, Inc. > + * > + * Contacts Dhaval Shah > + * > + * SPDX-License-Identifier: GPL-2.0 That line goes at the top of the file with // in front of it. > + */ > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include Why do you need a .h file for a single driver? > +/** > + * xvcu_get_color_depth - read the color depth register > + * @xvcu: Pointer to the xvcu_device structure > + * > + * Return: Returns 32bit value > + * > + */ > +u32 xvcu_get_color_depth(struct xvcu_device *xvcu) > +{ > + return xvcu_read(xvcu->logicore_reg_ba, VCU_ENC_COLOR_DEPTH); > +} > +EXPORT_SYMBOL_GPL(xvcu_get_color_depth); Why is your driver exporting symbols that no one uses? This feels very odd... greg k-h