Bug 12667 - Realtek USB lan adapter are not displayed in the setup
Summary: Realtek USB lan adapter are not displayed in the setup
Status: CLOSED FIXED
Alias: None
Product: IPFire
Classification: Unclassified
Component: --- (show other bugs)
Version: 2
Hardware: unspecified Unspecified
: - Unknown - - Unknown -
Assignee: Peter Müller
QA Contact:
URL:
Keywords:
: 11810 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-07-31 16:18 UTC by Arne.F
Modified: 2022-03-21 22:17 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arne.F 2021-07-31 16:18:44 UTC
Only "usb:    (mac)" is displayed.
Comment 1 Arne.F 2021-07-31 16:27:40 UTC
The realtek devices (8152 Fast Ethernet and 8153 GigaBit Ethernet) are also missing with lsusb. Others are listed.

[root@NanoPi-R1 ~]# lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 0b95:1790 ASIX Electronics Corp. AX88179 Gigabit Ethernet
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

But in tree mode the device is there

[root@NanoPi-R1 ~]# lsusb -t
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=ax88179_178a, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=r8152, 480M


This bug is introduced with core158.
Comment 2 Arne.F 2021-07-31 16:54:38 UTC
I have tracked down to the last libusb update

https://git.ipfire.org/?p=ipfire-2.x.git;a=commit;h=937d8dbcb19fcfbdfc0d914b769c93b5cffdba65
Comment 3 Michael Tremer 2021-08-02 18:45:46 UTC
What can we do here? Is there a bug fix for libusb available or do we need to downgrade?
Comment 4 Michael Tremer 2021-08-02 18:51:10 UTC
Archlinux has this patch:

> https://github.com/libusb/libusb/commit/f6d2cb561402c3b6d3627c0eb89e009b503d9067

Could we try it?
Comment 5 Michael Tremer 2021-08-02 18:55:19 UTC
Or this from Fedora:

> https://src.fedoraproject.org/rpms/libusb1/tree/rawhide
Comment 6 Peter Müller 2021-10-05 11:11:33 UTC
Resetting this back to ASSIGNED since nothing was merged, yet.

Since I already handed in a faulty libusb (or usbutils?) update in the past, I can also have a look at this one if that's fine with everybody.
Comment 7 Michael Tremer 2021-10-09 12:34:53 UTC
(In reply to Peter Müller from comment #6)
> Since I already handed in a faulty libusb (or usbutils?) update in the past,
> I can also have a look at this one if that's fine with everybody.

Yes, please.
Comment 8 Peter Müller 2022-01-14 16:17:31 UTC
These patches went into libusb 1.0.24 (https://github.com/libusb/libusb/releases); I will update that package.
Comment 10 Peter Müller 2022-01-14 20:46:38 UTC
https://git.ipfire.org/?p=people/pmueller/ipfire-2.x.git;a=commit;h=64ecba3f57f3ccce170edf8e5a80468d5390d54a

I took the liberty... :-)

Not bumping to MODIFIED, since this is only my personal temporary branch.
Comment 11 Arne.F 2022-01-27 11:11:57 UTC
This bug is again present in core164 next tree

IPFire v2.27 - www.ipfire.org
===============================
ipfire.localdomain running on Linux 5.15.16-ipfire aarch64
ipfire login: root
Password: 
No mail.
[root@ipfire ~]# lsusb
Bus 005 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[root@ipfire ~]# lsusb -t
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=r8152, 5000M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc2/1p, 480M
[root@ipfire ~]# 

Realtek 8152 and 8153 is not displayed by lsusb but found with lsusb -t

Other manufacturers like asix or moschip works.
Comment 12 Michael Tremer 2022-01-27 13:25:51 UTC
(In reply to Arne.F from comment #11)
> This bug is again present in core164 next tree

What do you suggest we do here? Ignore this and declare all those Realtek devices as "broken" or do we revert the update again?

No matter what way we chose, we should notify upstream about this.
Comment 13 Peter Müller 2022-01-27 17:27:27 UTC
In the RC for libusb 1.0.25, there are three commits that might be of interest for this problem:
- https://github.com/libusb/libusb/commit/f6d2cb561402c3b6d3627c0eb89e009b503d9067
- https://github.com/libusb/libusb/commit/c486d01297a366aae8dcd3f715d0bfd8b995949b
- https://github.com/libusb/libusb/commit/f38f09da98acc63966b65b72029b1f7f81166bef

The latter one is especially interesting, but was reported as a regression in version 1.0.24 - however, we face this problem since version 1.0.23, so it might be unrelated.

Not being a USB expert: Is there any sense in shipping these patches in advance?
Comment 14 Michael Tremer 2022-01-29 10:31:40 UTC
I think there is no harm in trying the RC.
Comment 16 Arne.F 2022-02-12 11:39:05 UTC
I can confirm that 1.0.25 fix the issue.
Comment 17 Michael Tremer 2022-02-15 12:59:54 UTC
Yay. Finally.
Comment 21 Peter Müller 2022-03-21 22:17:13 UTC
*** Bug 11810 has been marked as a duplicate of this bug. ***