Re: [PATCH] usbmouse: random freeze/hangup; synchronize irq completion

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

 



On Mon, Feb 14, 2011 at 09:51:00AM +0100, Jordi Pujol wrote:
> Hello,
> 
> usbmouse: synchonize the irq completion for each urb.
> 
> Without this patch the mouse was a bit erratic and when
> using the mouse the system gets freezed/hangup randomly (one or two times a 
> day).
> 
> Jordi Pujol
> 
> Live never ending Tale
> GNU/Linux Live forever!
> http://livenet.selfip.com

>  usbmouse: synchonize the irq completion
> 
> Signed-off-by: Jordi Pujol <jordipujolp AT gmail DOT com>
> 
> --- linux-2.6.37-old/include/linux/usb.h	2011-01-05 01:50:19.000000000 +0100
> +++ linux-2.6.37/include/linux/usb.h	2011-02-10 09:31:30.098752709 +0100
> @@ -1214,6 +1214,7 @@ struct urb {
>  	int error_count;		/* (return) number of ISO errors */
>  	void *context;			/* (in) context for completion */
>  	usb_complete_t complete;	/* (in) completion routine */
> +	struct mutex		complete_mutex;		/* synchronize completion */

Ick, no, this should never be needed.

Please explain why the existing procedure for this isn't working for
you?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-input" 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 Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux