Subject: Re: [PATCH v4] add the driver for Analog Devices Blackfin on-chip CAN controllers

From: Wolfgang Grandegger <[email-masked]>
Date: Fri, 11 Dec 2009 11:00:31 +0100

Barry Song wrote:
> Signed-off-by: Barry Song <[email-masked]>
> Signed-off-by: H.J. Oertel <[email-masked]>
> ---
>  -v4:
>  1. request and release interrupts in open/close instead of in module load/unload
>  2. use bfin_read16/write16 instead of common readw/writew
>  3. fix "line over 80 characters" checkpatch warning
>  4. fix other coding style issues required by Wolfgang Grandegger

David, here is my

Signed-off-by: Wolfgang Grandegger <[email-masked]>

for this driver. There is just some minor issue with the copyright
below. IIRC, the merge window is still open. It would be nice if this
driver gets accepted for 2.6.33 already. Thanks.

>  drivers/net/can/Kconfig    |    9 +
>  drivers/net/can/Makefile   |    1 +
>  drivers/net/can/bfin_can.c |  783 ++++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 793 insertions(+), 0 deletions(-)
>  create mode 100644 drivers/net/can/bfin_can.c
> 
> diff --git a/drivers/net/can/Kconfig b/drivers/net/can/Kconfig
> index bb803fa..8c485aa 100644
> --- a/drivers/net/can/Kconfig
> +++ b/drivers/net/can/Kconfig
> @@ -54,6 +54,15 @@ config CAN_MCP251X
>  	---help---
>  	  Driver for the Microchip MCP251x SPI CAN controllers.
>  
> +config CAN_BFIN
> +	depends on CAN_DEV && (BF534 || BF536 || BF537 || BF538 || BF539 || BF54x)
> +	tristate "Analog Devices Blackfin on-chip CAN"
> +	---help---
> +	  Driver for the Analog Devices Blackfin on-chip CAN controllers
> +
> +	  To compile this driver as a module, choose M here: the
> +	  module will be called bfin_can.
> +
>  source "drivers/net/can/mscan/Kconfig"
>  
>  source "drivers/net/can/sja1000/Kconfig"
> diff --git a/drivers/net/can/Makefile b/drivers/net/can/Makefile
> index 56899fe..7a702f2 100644
> --- a/drivers/net/can/Makefile
> +++ b/drivers/net/can/Makefile
> @@ -14,5 +14,6 @@ obj-$(CONFIG_CAN_MSCAN)		+= mscan/
>  obj-$(CONFIG_CAN_AT91)		+= at91_can.o
>  obj-$(CONFIG_CAN_TI_HECC)	+= ti_hecc.o
>  obj-$(CONFIG_CAN_MCP251X)	+= mcp251x.o
> +obj-$(CONFIG_CAN_BFIN)		+= bfin_can.o
>  
>  ccflags-$(CONFIG_CAN_DEBUG_DEVICES) := -DDEBUG
> diff --git a/drivers/net/can/bfin_can.c b/drivers/net/can/bfin_can.c
> new file mode 100644
> index 0000000..c7fc1de
> --- /dev/null
> +++ b/drivers/net/can/bfin_can.c
> @@ -0,0 +1,783 @@
> +/*
> + * Blackfin On-Chip CAN Driver
> + *
> + * Copyright 2004-2009 Analog Devices Inc.
> + *
> + * Enter bugs at http://blackfin.uclinux.org/
> + *
> + * Licensed under the GPL-2 or later.
> + */

David, is this a legal (acceptable) copyright note or is the usual
"GPL-2 or later" text required.

Barry, thanks for your contribution.

Wolfgang.