Index | Thread | Search

From:
Kevin Lo <kevlo@kevlo.org>
Subject:
Re: mtw(4) open bulk pipes once
To:
James Hastings <moosetek4@gmail.com>
Cc:
tech@openbsd.org
Date:
Thu, 27 Mar 2025 12:51:51 +0800

Download raw body.

Thread
On Wed, Mar 26, 2025 at 08:16:24PM -0400, James Hastings wrote:
>
> Rework the mtw(4) pipe handling and open the usb(4) pipes once for the lifetime
> of the device.
>
> This allows us to send MCU commands over bulk pipes while interface is down.
>
> note: When freeing tx/rx rings be sure to call usbd_abort_pipe() to clear out
> any xfers still in-flight.
>
> ok?

Looks good.  ok kevlo@

Tested:
mtw0 at uhub0 port 4 configuration 1 interface 0 "MediaTek MI WLAN Adapter" rev 2.01/0.00 addr 4
mtw0: MAC/BBP MT7601 (rev 0x0500), RF MT7601 (MIMO 1T1R), address 64:09:80:xx:xx:xx