Re: [PATCH] NET: Add ezchip ethernet driver

From: Paul Bolle
Date: Wed Jun 10 2015 - 03:54:23 EST


Just a nit and a question.

On Tue, 2015-06-09 at 15:44 +0300, Noam Camus wrote:
> --- /dev/null
> +++ b/drivers/net/ethernet/ezchip/Kconfig

> +config NET_VENDOR_EZCHIP
> + bool "EZchip devices"
> + default y
> + ---help---
> + If you have a network (Ethernet) device belonging to this class, say Y
> + and read the Ethernet-HOWTO, available from
> + <http://www.tldp.org/docs.html#howto>.
> +
> + Note that the answer to this question doesn't directly affect the
> + kernel: saying N will just cause the configurator to skip all
> + the questions about EZchip devices. If you say Y, you will be asked for
> + your specific device in the following questions.
> +
> +if NET_VENDOR_EZCHIP
> +
> +config EZCHIP_NPS_LAN
> + tristate "EZchip NPS LAN support"
> + default y

It's not common for drivers to default to 'y'. Any specific reason to do
so here?

> + ---help---
> + Simple LAN device without multicast support.
> + Device performance is not high and may be used for
> + debug or management purposes.
> + Device supports interrupts for RX and TX(end).
> + Device does not support NAPI and also does not support DMA.
> +
> +endif

> --- /dev/null
> +++ b/drivers/net/ethernet/ezchip/nps_enet.c

> + * This program is free software; you can redistribute it and/or modify it
> + * under the terms and conditions of the GNU General Public License,
> + * version 2, as published by the Free Software Foundation.
> + *
> + * This program is distributed in the hope it will be useful, but WITHOUT
> + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
> + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
> + * more details.
> + *
> + * The full GNU General Public License is included in this distribution in
> + * the file called "COPYING".

This states the license is GPL v2.

> +MODULE_LICENSE("GPL");

And, according to include/linux/module.h, this states the license is GPL
v2 or later. So I think that either the comment at the top of this file
or the ident used in the MODULE_LICENSE() macro needs to change.


Paul Bolle

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/