Hoi, Roland Clobus <rclo...@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 (k...@debian.org) <https://debamax.com/> D-I release manager -- Release team member -- Freelance Consultant
signature.asc
Description: PGP signature