Re: port of aggressive autosuspend from option to sierra

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

 



Am Freitag, 7. August 2009 22:50:16 schrieb Elina Pasheva:

> There might be a potential race condition in sierra_write() when it
> checks 'suspended' flag and sierra-resume()  being executed at the same
> time, a bit more synchronization is needed in that area.

Can you elaborate? Where exactly does it race?

> I am trying to find a way to 'backport' this patch all the way to
> kernel-2.6.23 (as part of our requirements), since some of the kernel
> calls are not present below 2.6.29  (e.g.
> usb_autopm_put_interface_async()).

This is not trivial.
You have to check

1. How much support for PM is present in generic usb serial in that old kernel
2. Decide whether to backport the async functions or do it with a workqueue
of your own like cdc-acm and cdc-wdm do.

> In the meantime I am planning to resubmit our modified  patch
> [PATCH002/002] where I removed the module parameter "support_autopm" and
> added proper device attribute removal function as advised). This patch can
> be  'backported' all the way back to kernel 2.6.23.

Let's see the code when it is ready.

	Regards
		Oliver

--
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