From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@9fans.net From: Richard Miller <9fans@hamnavoe.com> Date: Wed, 14 Dec 2016 10:44:03 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] usb serial on raspberry pi (again) Topicbox-Message-UUID: b1068414-ead9-11e9-9d60-3106f5b1d025 > Maybe it's as simple > as having separate read and write QLocks. For normal endpoints it is that simple. Control endpoints, however, are bidirectional but effectively half-duplex, so reads and writes still need to be locked against each other. Today's version of /n/sources/contrib/miller/9/bcm/usbdwc.c should do the right things.