Re: PATCH: usb ehci debug port device gadget: [PATCH 2/2] EHCI Debug Port Device Gadget

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 29, 2010 at 11:14:42AM +0200, stephane duverger wrote:
> Signed-off-by: Stephane Duverger <stephane.duverger@xxxxxxxxx>
> ---
>  drivers/usb/gadget/Kconfig         |   28 +++
>  drivers/usb/gadget/Makefile        |    2 +
>  drivers/usb/gadget/dbgp.c          |  429 ++++++++++++++++++++++++++++++++++++
>  drivers/usb/musb/musb_gadget_ep0.c |    3 +
>  4 files changed, 462 insertions(+), 0 deletions(-)
>  create mode 100644 drivers/usb/gadget/dbgp.c
> 
> diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
> index 591ae9f..4f41a1d 100644
> --- a/drivers/usb/gadget/Kconfig
> +++ b/drivers/usb/gadget/Kconfig
> @@ -913,6 +913,34 @@ config USB_G_HID
>  	  Say "y" to link the driver statically, or "m" to build a
>  	  dynamically linked module called "g_hid".
>  
> +config USB_G_DBGP
> +        tristate "EHCI Debug Device Gadget"
> +        help
> +          This gadget emulates an EHCI Debug device. This is useful when you want
> +          to interact with an EHCI Debug Port.
> +
> +          Say "y" to link the driver statically, or "m" to build a
> +          dynamically linked module called "g_dbgp".
> +
> +if USB_G_DBGP
> +choice
> +	prompt "EHCI Debug Device mode"
> +	default USB_G_DBGP_SERIAL
> +
> +config USB_G_DBGP_PRINTK
> +	depends on USB_G_DBGP
> +	bool "printk"
> +	help
> +	  Directly printk() received data. No interaction.
> +
> +config USB_G_DBGP_SERIAL
> +	depends on USB_G_DBGP
> +	bool "serial"
> +	help
> +	  Userland can interact using /dev/ttyGSxxx.
> +endchoice
> +endif
> +
>  # put drivers that need isochronous transfer support (for audio
>  # or video class gadget drivers), or specific hardware, here.
>  config USB_G_WEBCAM
> diff --git a/drivers/usb/gadget/Makefile b/drivers/usb/gadget/Makefile
> index 9bcde11..379fe3c 100644
> --- a/drivers/usb/gadget/Makefile
> +++ b/drivers/usb/gadget/Makefile
> @@ -44,6 +44,7 @@ g_printer-objs			:= printer.o
>  g_cdc-objs			:= cdc2.o
>  g_multi-objs			:= multi.o
>  g_hid-objs			:= hid.o
> +g_dbgp-objs                     := dbgp.o
>  g_nokia-objs			:= nokia.o
>  g_webcam-objs			:= webcam.o
>  
> @@ -60,6 +61,7 @@ obj-$(CONFIG_USB_G_PRINTER)	+= g_printer.o
>  obj-$(CONFIG_USB_MIDI_GADGET)	+= g_midi.o
>  obj-$(CONFIG_USB_CDC_COMPOSITE) += g_cdc.o
>  obj-$(CONFIG_USB_G_HID)		+= g_hid.o
> +obj-$(CONFIG_USB_G_DBGP)        += g_dbgp.o
>  obj-$(CONFIG_USB_G_MULTI)	+= g_multi.o
>  obj-$(CONFIG_USB_G_NOKIA)	+= g_nokia.o
>  obj-$(CONFIG_USB_G_WEBCAM)	+= g_webcam.o
> diff --git a/drivers/usb/gadget/dbgp.c b/drivers/usb/gadget/dbgp.c
> new file mode 100644
> index 0000000..738b656
> --- /dev/null
> +++ b/drivers/usb/gadget/dbgp.c
> @@ -0,0 +1,429 @@
> +/*
> + * dbgp.c -- EHCI Debug Port device gadget
> + *
> + * Copyright (C) 2010 Stephane Duverger

You really should put at least a line about the gpl here.

Something like:
	Released under the GPLv2.
at the very least.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux