From nobody Fri Jun 11 20:31:58 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 9661D5D1A94 for ; Fri, 11 Jun 2021 20:32:01 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G1svh5hLjz4fk4 for ; Fri, 11 Jun 2021 20:32:00 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.16.1/8.16.1) with ESMTPS id 15BKVw8O012620 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Fri, 11 Jun 2021 13:31:58 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.16.1/8.16.1/Submit) id 15BKVwZw012619 for freebsd-hackers@freebsd.org; Fri, 11 Jun 2021 13:31:58 -0700 (PDT) (envelope-from sgk) Date: Fri, 11 Jun 2021 13:31:58 -0700 From: Steve Kargl To: freebsd-hackers@freebsd.org Subject: usb 4-port hub support? Message-ID: <20210611203158.GA12610@troutmask.apl.washington.edu> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 4G1svh5hLjz4fk4 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=washington.edu (policy=none); spf=none (mx1.freebsd.org: domain of sgk@troutmask.apl.washington.edu has no SPF policy when checking 128.95.76.21) smtp.mailfrom=sgk@troutmask.apl.washington.edu X-Spamd-Result: default: False [-0.56 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; ARC_NA(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[128.95.76.21:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; NEURAL_SPAM_MEDIUM(0.42)[0.422]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[128.95.76.21:from:127.0.2.255]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.982]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:73, ipnet:128.95.0.0/16, country:US]; MAILMAN_DEST(0.00)[freebsd-hackers]; DMARC_POLICY_SOFTFAIL(0.10)[washington.edu : No valid SPF, No valid DKIM,none] X-ThisMailContainsUnwantedMimeParts: N 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: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) ugen0.3: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA) ugen0.4: 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: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (100mA) ugen0.5: 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: 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: 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