]> git.karo-electronics.de Git - karo-tx-linux.git/commit
8139cp: set intr mask after its handler is registered
authorJason Wang <jasowang@redhat.com>
Wed, 11 Apr 2012 22:10:54 +0000 (22:10 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Apr 2012 16:51:20 +0000 (09:51 -0700)
commit68b80be09c226e303e94241880b4a80248ee62ef
treefa6acfaf78633c470e483e67b8b74522bf607740
parentbb2f6102c815c14572642205191eb0fa883d8723
8139cp: set intr mask after its handler is registered

[ Upstream commit a8c9cb106fe79c28d6b7f1397652cadd228715ff ]

We set intr mask before its handler is registered, this does not work well when
8139cp is sharing irq line with other devices. As the irq could be enabled by
the device before 8139cp's hander is registered which may lead unhandled
irq. Fix this by introducing an helper cp_irq_enable() and call it after
request_irq().

Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/8139cp.c