Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Sep 2016 10:46:12 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        Andriy Voskoboinyk <avos@freebsd.org>, Adrian Chadd <adrian@freebsd.org>
Cc:        "freebsd-wireless@freebsd.org" <freebsd-wireless@freebsd.org>, "freebsd-usb@freebsd.org" <freebsd-usb@freebsd.org>
Subject:   Re: Deadlock between device_detach() and usbd_do_request_flags()
Message-ID:  <55cff8ce-6132-53ec-3419-d27286dce622@selasky.org>
In-Reply-To: <4cf378ff-63e1-7cdc-6120-9578fceec20d@selasky.org>
References:  <op.ynaawb2n4dikkl@localhost> <4cf378ff-63e1-7cdc-6120-9578fceec20d@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 09/05/16 09:53, Hans Petter Selasky wrote:
>
> Hi,
>
> I think the right solution is to let usbd_do_request_flags() use its own
> SX lock for synchronization, instead of re-using the enumeration SX
> lock. What do you think about that?
>
> --HPS
>

Hi,

Another approach which will work is to setup your own USB control 
endpoint xfer, and use that. I'll have a look and see what can be done.

--HPS




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55cff8ce-6132-53ec-3419-d27286dce622>