Add P46b fix for ac97d mutable pcid_handle borrow

P46 migrated ac97d to pci_allocate_interrupt_vector but missed
adding  to the pcid_handle parameter. This caused build
failure: cannot borrow pcid_handle as mutable.
This commit is contained in:
2026-05-20 23:31:48 +03:00
parent 7c03b6dcc6
commit 4d914a0321
3 changed files with 8 additions and 0 deletions
@@ -0,0 +1,5 @@
--- a/drivers/audio/ac97d/src/main.rs
+++ b/drivers/audio/ac97d/src/main.rs
@@ -20 +20 @@ fn main() {
-fn daemon(daemon: daemon::Daemon, pcid_handle: PciFunctionHandle) -> ! {
+fn daemon(daemon: daemon::Daemon, mut pcid_handle: PciFunctionHandle) -> ! {
+1
View File
@@ -0,0 +1 @@
../../../local/patches/base/P46b-ac97d-mutable-fix.patch
+2
View File
@@ -95,6 +95,8 @@ patches = [
"P45-net-msix-adoption.patch",
# P46: Migrate ahcid and ac97d to MSI-X via pci_allocate_interrupt_vector
"P46-storage-audio-msix.patch",
# P46b: Fix ac97d mutable borrow of pcid_handle (required by pci_allocate_interrupt_vector)
"P46b-ac97d-mutable-fix.patch",
# P47: Update thermald to read from P44 thermal zones and coretempd
"P47-thermald-backend.patch",
# P48: Add ACPI fan device discovery and status exposure