]> git.baikalelectronics.ru Git - kernel.git/commit
net: systemport: avoid unbalanced enable_irq_wake calls
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 10 Oct 2014 17:51:54 +0000 (10:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Oct 2014 19:39:15 +0000 (15:39 -0400)
commit7c27c9258ca9faa656a946cda48fbff3708ba60e
tree755e1ac9da55cb85cdf1af2dbad21379019a1b03
parentf40c6d03caaca027e1834ca0cced4a41b47d4a58
net: systemport: avoid unbalanced enable_irq_wake calls

Multiple enable_irq_wake() calls will keep increasing the IRQ
wake_depth, which ultimately leads to the following types of
situation:

1) enable Wake-on-LAN interrupt w/o password
2) enable Wake-on-LAN interrupt w/ password
3) enable Wake-on-LAN interrupt w/o password
4) disable Wake-on-LAN interrupt

After step 4), SYSTEMPORT would always wake-up the system no matter what
wake-up device we use, which is not what we want. Fix this by making
sure there are no unbalanced enable_irq_wake() calls.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcmsysport.c