Commit 1db30813 authored by Tomasz Wlostowski's avatar Tomasz Wlostowski Committed by Alessandro Rubini

kernel/wr-nic-eth: bugfix: leave irq inactive at remove time

This is not really a problem if we have edge-triggered interrupts as
input to the Gennum, but will lock the computer on unload when
experimenting with level-triggered interrupts.
parent 4d8935ed
......@@ -107,7 +107,9 @@ static void wrn_vic_exit(struct fmc_device *fmc)
struct VIC_WB *vic = (typeof(vic))drvdata->vic_base;
writel(0xff, &vic->IDR);
writel(0, &vic->CTL);
/* Interrupt line is !POL when EN == 0, so leave polarity bit on */
writel(VIC_CTL_POL, &vic->CTL);
}
struct wrn_core {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment