Page MenuHomeFreeBSD

USBExperimental
ActivePublic

Details

Description

Groups related to USB stuff.

Recent Activity

Yesterday

adrian closed D56729: hidwacom: Add Wacom ExpressKey Remote driver.
Sun, Jul 12, 5:25 PM · USB
adrian accepted D56729: hidwacom: Add Wacom ExpressKey Remote driver.
Sun, Jul 12, 5:05 PM · USB
adrian added a comment to D56729: hidwacom: Add Wacom ExpressKey Remote driver.

It is fine as-is, we can rename it later if needs be.

Sun, Jul 12, 5:05 PM · USB

Sat, Jun 27

sanpei added a comment to D57566: aue(4): fix incorrect media detection.

I tested this patch with two BUFFALO LUA2-TX (aue(4)) dongles that show the exact same dmesg.

Sat, Jun 27, 12:05 AM · desktop, USB

Mon, Jun 22

aokblast closed D51759: libusb: implement zlp flag in libusb transfer.
Mon, Jun 22, 1:37 PM · USB

Sun, Jun 21

sanpei added a comment to D57566: aue(4): fix incorrect media detection.

@rkitover_gmail.com
Thank you for your effort.

Sun, Jun 21, 5:26 AM · desktop, USB

Fri, Jun 19

guest-seuros added a comment to D56729: hidwacom: Add Wacom ExpressKey Remote driver.

I would like to understand the technical reasoning behind rejecting hidwacom before doing a rename. The rename itself is mechanical, but I want to understand what makes the name problematic so I can apply the same logic to future drivers.

Fri, Jun 19, 6:51 AM · USB
kevans added a comment to D56729: hidwacom: Add Wacom ExpressKey Remote driver.

I think hidwacom is the better name here.

This is Wacom hardware, and it does not speak a generic "remote" protocol. It uses a Wacom-specific, undocumented HID report protocol. I decoded it from USB traffic captured against their Windows driver, and only later found that Linux already handles the same protocol in drivers/hid/wacom_wac.c under the hid-wacom driver.

If this were a published or vendor-neutral remote-control protocol, I would agree that hidremote would be a better name. But in this case, hidremote would make the driver look more generic than it really is.
The important part is not that the device is a remote, but that it is a Wacom HID device using Wacom-specific reports.

Linux also has support for multiple remotes and some additional quirks, but I cannot test those yet since I only have one ExpressKey Remote. I would rather land the tested base driver first and leave the untested multi-remote/quirk handling for future work.

Also, Wacom hardware is not limited to drawing tablets. Wacom EMR digitizers ship embedded in several laptops, including Lenovo ThinkPad X200t/X220t/X230t/Yoga models, and machines from HP, Dell, Asus, and Panasonic. Those are not drawing tablets either, but they still use Wacom-specific constants/protocol details. Samsung use it for their flagship phones and screens.

I will add the hidbus(4) xref.

Fri, Jun 19, 12:14 AM · USB

Thu, Jun 18

adrian accepted D51759: libusb: implement zlp flag in libusb transfer.
Thu, Jun 18, 5:12 AM · USB
adrian added a reviewer for D51759: libusb: implement zlp flag in libusb transfer: USB.
Thu, Jun 18, 5:11 AM · USB

Sun, Jun 14

adrian closed D57089: apple_bce/vhci: add T2 virtual USB host controller.
Sun, Jun 14, 8:58 PM · USB, drivers, apple (x86)
rkitover_gmail.com updated the diff for D56138: ure: lock MII bus operations.

Remove PHY checking, MII bus lock is sufficient

Sun, Jun 14, 5:19 AM · desktop, USB
rkitover_gmail.com added a comment to D55631: axge: fix spurious link down from MII, frozen TX.

Hi, I have a patch for media in aue that should work, can you test please:

Sun, Jun 14, 3:38 AM · USB, network
rkitover_gmail.com added a comment to D57566: aue(4): fix incorrect media detection.

MII bus lock patch is here:

Sun, Jun 14, 3:36 AM · desktop, USB
rkitover_gmail.com added projects to D57567: aue(4): fix link flaps from MII bus: USB, desktop.
Sun, Jun 14, 3:31 AM · desktop, USB
rkitover_gmail.com updated the diff for D57566: aue(4): fix incorrect media detection.

Add Differential Review to commit message

Sun, Jun 14, 3:28 AM · desktop, USB
rkitover_gmail.com added reviewers for D57566: aue(4): fix incorrect media detection: sanpei, zlei, bms, kevlo, pouria, adrian.
Sun, Jun 14, 3:25 AM · desktop, USB
rkitover_gmail.com added projects to D57566: aue(4): fix incorrect media detection: USB, desktop.
Sun, Jun 14, 3:21 AM · desktop, USB

Jun 6 2026

rkitover_gmail.com added a comment to D55631: axge: fix spurious link down from MII, frozen TX.

I've updated my patches to just use MII lock which is sufficient, as you found out, this one and:

Jun 6 2026, 2:10 PM · USB, network
rkitover_gmail.com added projects to D57489: muge(4): Lock MII bus to fix link flaps: USB, desktop.
Jun 6 2026, 2:03 PM · desktop, USB
rkitover_gmail.com updated the diff for D55925: axe: fix spurious link flaps from MII.

Keep only MII bus lock, it's enough.

Jun 6 2026, 12:24 AM · desktop, USB

Jun 5 2026

rkitover_gmail.com updated the diff for D56138: ure: lock MII bus operations.

Keep only MII bus lock, it's enough.

Jun 5 2026, 11:35 PM · desktop, USB
rkitover_gmail.com updated the diff for D55631: axge: fix spurious link down from MII, frozen TX.

Remove everything except MII bus lock, which is sufficient.

Jun 5 2026, 11:16 PM · USB, network

May 31 2026

aokblast added a comment to D54218: Introduce libusb20_dev_open_with_flags for shared vs. exclusive access..

Also, thanks for you patient and contribution. This patch makes some improvement for multiple devices case.

May 31 2026, 1:55 PM · USB
aokblast added a comment to D54218: Introduce libusb20_dev_open_with_flags for shared vs. exclusive access..

Plus these point. Should we add O_CLOEXEC in here as libusb opened program can panic and thus flock never unlock

May 31 2026, 1:51 PM · USB

May 30 2026

adrian accepted D57089: apple_bce/vhci: add T2 virtual USB host controller.
May 30 2026, 1:39 AM · USB, drivers, apple (x86)
adrian added a project to D57089: apple_bce/vhci: add T2 virtual USB host controller: USB.
May 30 2026, 1:39 AM · USB, drivers, apple (x86)

May 29 2026

aokblast added a reviewer for D57320: usb: Refactor functions need lock: adrian.
May 29 2026, 7:07 AM · USB

May 28 2026

aokblast closed D57293: usb: Add missing mtx lock and unlock in pushing dma queue.
May 28 2026, 2:38 PM · USB
aokblast added a comment to D57293: usb: Add missing mtx lock and unlock in pushing dma queue.

nice catch! Why's this not panicing though? I thought I saw a lock assertion in usb_command_wrapper() ?

May 28 2026, 2:31 PM · USB
adrian accepted D57293: usb: Add missing mtx lock and unlock in pushing dma queue.

nice catch! Why's this not panicing though? I thought I saw a lock assertion in usb_command_wrapper() ?

May 28 2026, 2:29 PM · USB
aokblast updated the summary of D57293: usb: Add missing mtx lock and unlock in pushing dma queue.
May 28 2026, 12:43 PM · USB
aokblast updated the diff for D57293: usb: Add missing mtx lock and unlock in pushing dma queue.

Refactor commit msg

May 28 2026, 12:43 PM · USB
aokblast added reviewers for D57293: usb: Add missing mtx lock and unlock in pushing dma queue: adrian, USB.
May 28 2026, 9:09 AM · USB

May 26 2026

olce added a watcher for USB: olce.
May 26 2026, 10:02 AM

May 25 2026

aokblast added a comment to D57194: usb: Add SSP and SSPx2 speed and move USB_*_MAX into enum.
In D57194#1311193, @bz wrote:

Fantasic! You are solving one of my local TODOs :)

Can you make all these USB changes belonging together a stack in Phabricator?
It's a bit hard to grasp which all are there or belong together.
I'd be happy to at least scroll through them even if I cannot review them all in detail most likely.

% git show 9dbb804f59533d7d539200367394e4013714b02c
commit 9dbb804f59533d7d539200367394e4013714b02c
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: Mon Feb 9 01:11:41 2026 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: Sun May 24 15:53:58 2026 +0000

    TODO usb: add USB_SPEED_SUPER_PLUS to enum usb_dev_speed
    
    While nothing in our native USB stack uses the USB 3.1 "SUPERSPEED+"
    setting yet, a LinuxKPI based wireless driver does check for it.
    
    TODO: The arrays in usbd_get_std_packet_size() likely need to be updated.
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      3 days

diff --git sys/dev/usb/usb.h sys/dev/usb/usb.h
index 3e972f876c6a..f07eb9adfe40 100644
--- sys/dev/usb/usb.h
+++ sys/dev/usb/usb.h
@@ -755,8 +755,9 @@ enum usb_dev_speed {
        USB_SPEED_FULL,
        USB_SPEED_HIGH,
        USB_SPEED_SUPER,
+       USB_SPEED_SUPER_PLUS,
 };
-#define        USB_SPEED_MAX   (USB_SPEED_SUPER+1)
+#define        USB_SPEED_MAX   (USB_SPEED_SUPER_PLUS+1)
 
 /*
  * The "USB_REV" macros defines all the supported USB revisions.
May 25 2026, 7:24 AM · USB
adrian added inline comments to D56970: usb: Refactor usb_proc_msg.
May 25 2026, 2:51 AM · USB
adrian added a comment to D56970: usb: Refactor usb_proc_msg.

ugh yeah you're right, our mwait() implementation does the same thing and has the same issues, doesn't it? I've come to increasingly not like that; code really needs to treat exiting the mwait() as "all state may have changed", and it's not really suitable for serialising stuff like usb state / transfers.

May 25 2026, 2:41 AM · USB

May 24 2026

bz added a comment to D57194: usb: Add SSP and SSPx2 speed and move USB_*_MAX into enum.

Fantasic! You are solving one of my local TODOs :)

May 24 2026, 11:05 PM · USB
aokblast added a comment to D56970: usb: Refactor usb_proc_msg.

So I'm starting to understand what you're trying to do here, however just a few things:

  • this code gets used or was used in some bootloader builds, right? So we need to make sure it runs in its standalone mode versus in the kernel
May 24 2026, 4:19 PM · USB

May 23 2026

adrian requested changes to D56970: usb: Refactor usb_proc_msg.

So I'm starting to understand what you're trying to do here, however just a few things:

May 23 2026, 4:44 PM · USB
aokblast added a comment to D52347: usb: support SSP and SSPx2 xHCI.

Just split the patch with multiple smaller one.

May 23 2026, 10:17 AM · USB
aokblast retitled D52347: usb: support SSP and SSPx2 xHCI from usb: support usb 3.1 (SuperSpeedPlus) and usb 3.2 (SuperSpeedPlus_x2) addressing and display for xhci. to usb: support SSP and SSPx2 xHCI.
May 23 2026, 10:16 AM · USB
aokblast added reviewers for D57204: usb: Add support for SSP and SSPx2 hubs: USB, adrian.
May 23 2026, 10:14 AM · USB
aokblast added reviewers for D57203: usb: Add SSPlus device capability descriptor: adrian, USB.
May 23 2026, 10:13 AM · USB
aokblast added reviewers for D57202: usb: Implement usbd_req_get_bos_descriptor helper: USB, adrian.
May 23 2026, 10:12 AM · USB
aokblast added reviewers for D57201: usb: Add get_ext_port_status helper function: adrian, USB.
May 23 2026, 10:11 AM · USB
aokblast added reviewers for D57200: usb: Add extended port status struct: USB, adrian.
May 23 2026, 10:10 AM · USB
aokblast added reviewers for D57199: usb: Add usb_bos_foreach helper: USB, adrian.
May 23 2026, 10:09 AM · USB
aokblast added reviewers for D57198: usb: support SSP/SSPx2 devices in all-speed consumers: USB, adrian.
May 23 2026, 10:08 AM · USB