Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jun 2021 13:31:58 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        freebsd-hackers@freebsd.org
Subject:   usb 4-port hub support?
Message-ID:  <20210611203158.GA12610@troutmask.apl.washington.edu>

next in thread | raw e-mail | index | archive | help
Tried sending this to freebsd-usb, but it was denied
as I'm not subscribed to that list.  Other lists hold
non-subscriber messages for moderation. 

I have a Dell XPS 13 laptop with a USB 3 type-c connector on the
right and a thunderbolt 3 type-c connector on the left.  The wireless
chip in the laptop is currently not supported (Qualcomm Atheros 6174).
There is an out-of-tree ath10k device for this chip, but I've never
been able to get it work.  So, I have a tp-link archer t2u nano usb
dongle that I plug into the port, which of course uses up my available
usb ports.  With the dongle attached, I see

% usbconfig list
ugen0.1: <0x8086 XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen0.2: <CN0FFMHCLOG00873B2A9A01 IntegratedWebcamHD> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
ugen0.3: <HTMicroelectronics Goodix Fingerprint Device> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)
ugen0.4: <Realtek 802.11ac WLAN Adapter> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)

and wlan0 and wpa_supplicant work with the tp-link device.

I've acquired an Aluratek 4-port USB 3.1 type-c hub. If I remove the dongle
and insert the hub, I see (where I've omitted ugen0.1, 0.2, and 0.3)

% usbconfig list
...
ugen0.4: <GenesysLogic USB2.1 Hub> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (100mA)
ugen0.5: <GenesysLogic USB3.1 Hub> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)

If I now plugin in a SanDisk thumbdrive I see

% usbconfig list
...
ugen0.6: <USB SanDisk 3.2Gen1> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (224mA)

% ls /dev/da0*
/dev/da0        /dev/da0p1      /dev/da0p2
% mount /dev/da0p2 /mnt
% ls /mnt
.snap/          boot/           lib/            mnt/            rescue/         tmp/
.sujournal      dev/            libexec/        net/            root/           usr/
bin/            etc/            media/          proc/           sbin/           var/

Adding a second thumbdrive shows

% usbconfig list
...
ugen0.7: <Kingston DataTraveler 3.0> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (74mA)

I see the da1 devices and can mount the filesystem.

Now, for the issue, if I insert the tp-link dongle into the hub
it is not detected.  usbconfig shows no information of any kind.
I've read the if_rtwn_usb(4) and usb(4) manuals, but have no clue 
where to start to get the tp-link dongle recognized.  Any suggestions?

PS: inserting a logitech usb mouse receiver is also undetected.

-- 
Steve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210611203158.GA12610>