Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #82570

Bug#1071903: hw-detect: USB wireless adapter r8712u needs physical disconnect and reconnect for firmware to work

From Cyril Brulebois <kibi@debian.org>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel, linux.debian.maint.boot
Subject Bug#1071903: hw-detect: USB wireless adapter r8712u needs physical disconnect and reconnect for firmware to work
Date 2024-05-25 23:40 +0200
Message-ID <II7hn-fNWE-13@gated-at.bofh.it> (permalink)
References <II7hn-fNWE-15@gated-at.bofh.it> <II7hn-fNWE-15@gated-at.bofh.it>
Organization Debian

Cross-posted to 3 groups.

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hoi,

Roland Clobus <rclobus@rclobus.nl> (2024-05-25):
> Source: hw-detect
> Version: 1.160
> Severity: normal
> Tags: patch d-i

Just to confirm, which linux version was this tested against?

> I have an USB wireless adapter that uses the r8712u kernel module and
> that requires firmware from non-free-firmware.
> 
> When I run the Debian installer, the missing firmware file is
> correctly identified and installed by 'check-missing-firmware.sh'.
> However, the kernel module is mis-identified as 'usb'.

As you found out, having 'usb' is rather widespread, hence the existence
of the function you patched. What seems weird to my (not at all expert
in the kernel area) eyes is the unbound thing that led you to introduce
that special case.

I see that's a module from staging, maybe it's not behaving like it
should? At least differently from other modules…

I spotted 1422b526fba994cf05fd288a152106563b875fce that fixed a race
condition regarding firmware loading (fix available in v6.6-rc1 and
v6.1.52), maybe there are other similar issues?

> When I disconnect the adapter and reconnect it, the installer is able
> to use the adapter properly.
> 
> Attached is a patch that allows the module to be identified correctly.
> If desired, I can send the patch instead as a merge request on Salsa.
> 
> However, using 'modprobe -r r8712u' and 'modprobe r8712u' is not sufficient
> to enable the adapter, it still needs a physical reconnect.
> In the attached screenshot from the installer (sid) the result of the patch
> is shown. Also in the QEMU environment, I need to disconnect and reconnect
> the USB device from the host.
> 
> I tried several options, but could not get them to work: bind/unbind [1]
> authorized, usbreset [2]
> Do you know a solution (apart from a physical reconnect)?

I'd suggest a search in upstream bugzilla and mailing lists.

I'm adding the kernel maintainers in copy, in case they have better
ideas.


Cheers,
-- 
Cyril Brulebois (kibi@debian.org)            <https://debamax.com/>
D-I release manager -- Release team member -- Freelance Consultant

Back to linux.debian.kernel | Previous | Next | Find similar | Unroll thread


Thread

Bug#1071903: hw-detect: USB wireless adapter r8712u needs physical disconnect and reconnect for firmware to work Cyril Brulebois <kibi@debian.org> - 2024-05-25 23:40 +0200

csiph-web