fix: fix for kernel 6.19

This commit is contained in:
Shen Mintao
2026-02-27 14:20:43 +08:00
parent 3a0945bdcc
commit a16a8c47ed
2 changed files with 19 additions and 0 deletions
+4
View File
@@ -1636,7 +1636,11 @@ void reord_deinit_sta(struct aicwf_rx_priv* rx_priv, struct reord_ctrl_info *reo
reord_rxframe_free(&rx_priv->freeq_lock, &rx_priv->rxframes_freequeue, &req->rxframe_list);
}
#if (LINUX_VERSION_CODE <= KERNEL_VERSION(6, 18, 0))
AICWFDBG(LOGINFO, "reord dinit in_irq():%d in_atomic:%d in_softirq:%d\r\n", (int)in_irq()
#else
AICWFDBG(LOGINFO, "reord dinit in_irq():%d in_atomic:%d in_softirq:%d\r\n", (int)in_hardirq()
#endif
,(int)in_atomic(), (int)in_softirq());
spin_unlock_bh(&preorder_ctrl->reord_list_lock);
}
+15
View File
@@ -263,6 +263,21 @@ install_firmware() {
print_info "Copying firmware to $fw_dest..."
cp -r "$fw_source" "$fw_dest" >> "$LOG_FILE" 2>&1
# Install udev rules
local rules_source="${SCRIPT_DIR}/aic.rules"
local rules_dest="/usr/lib/udev/rules.d/aic.rules"
if [ -f "$rules_source" ]; then
print_info "Installing udev rules to $rules_dest..."
cp "$rules_source" "$rules_dest" >> "$LOG_FILE" 2>&1
# Reload udev rules
udevadm control --reload-rules >> "$LOG_FILE" 2>&1 || true
udevadm trigger >> "$LOG_FILE" 2>&1 || true
print_success "Udev rules installed successfully."
else
print_warning "Udev rules file not found: $rules_source"
fi
print_success "Firmware installed successfully."
}