Summary: | cdce erroneously attaches to a combined RNDIS/CDCE Ethernet gadget | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Martin Birgmeier <d8zNeCFG> | ||||||
Component: | usb | Assignee: | Hans Petter Selasky <hselasky> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Only Me | CC: | hselasky, keiichi, ume | ||||||
Priority: | --- | ||||||||
Version: | CURRENT | ||||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Description
Martin Birgmeier
2021-03-16 19:12:57 UTC
Some additional info: - On attach, devd loads both the if_urndis and the if_cdce drivers. This is also strange given that only configuration 0 (RNDIS) should be active. - When attached, it is possible to use the ue interface attached to if_urndis, but not the one attached to if_cdce. -- Martin Created attachment 223338 [details]
part of devd.log showing RNDIS gadget attach and detach
For additional info attached is a part of /var/log/devd.log showing the actions taken when attaching and (5 minutes later) detaching the device.
-- Martin
Hi, It is because of these values that CDCE attaches: idVendor = 0x0525 idProduct = 0xa4a2 I think the vendor forgot to patch/update those values. Probably we can revert this patch from 2005: https://svnweb.freebsd.org/base/head/sys/dev/usb/if_cdce.c?r1=150700&r2=150701&pathrev=171005& -_HPS Ping - any updates? --HPS By whom - given the "we" in comment #3 and the assignee being "freebsd-usb (Nobody)"? ;-) -- Martin Did you try to revert the mentioned patch? --HPS After deleting this line cdce.ko does not attach to the device anymore. RNDIS still attaches and works o.k. -- Martin OK, I'll try to get the patch upstreamed. --HPS A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=d2c87140648f61a6f139a2ecdf831e6a08cc4de2 commit d2c87140648f61a6f139a2ecdf831e6a08cc4de2 Author: Hans Petter Selasky <hselasky@FreeBSD.org> AuthorDate: 2021-04-22 10:22:39 +0000 Commit: Hans Petter Selasky <hselasky@FreeBSD.org> CommitDate: 2021-04-22 10:23:36 +0000 Remove USB device ID added by SVN r150701 in the CDC USB ethernet driver. Since then, the FreeBSD USB stack has got proper USB RNDIS support. PR: 254345 MFC after: 1 week Sponsored by: Mellanox Technologies // NVIDIA Networking sys/dev/usb/net/if_cdce.c | 1 - 1 file changed, 1 deletion(-) A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=0d1e6e9413e9913c296d829d2712a07f816e3ce0 commit 0d1e6e9413e9913c296d829d2712a07f816e3ce0 Author: Hans Petter Selasky <hselasky@FreeBSD.org> AuthorDate: 2021-04-22 10:22:39 +0000 Commit: Hans Petter Selasky <hselasky@FreeBSD.org> CommitDate: 2021-05-10 14:11:19 +0000 Remove USB device ID added by SVN r150701 in the CDC USB ethernet driver. Since then, the FreeBSD USB stack has got proper USB RNDIS support. PR: 254345 Sponsored by: Mellanox Technologies // NVIDIA Networking (cherry picked from commit d2c87140648f61a6f139a2ecdf831e6a08cc4de2) sys/dev/usb/net/if_cdce.c | 1 - 1 file changed, 1 deletion(-) |