]> www.infradead.org Git - users/jedix/linux-maple.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)
committerJoe Jin <joe.jin@oracle.com>
Fri, 18 May 2012 03:39:50 +0000 (11:39 +0800)
commit6da06df9937efa3eb11cc74484fe4945a8f542e4
treebe301ea835740d21fc796aabce7f62cfe6476dd3
parentbc0640b826488895370d9558719692ff631ef3ba
8139cp: set intr mask after its handler is registered

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().

(cherry picked from commit a8c9cb106fe79c28d6b7f1397652cadd228715ff)
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: Joe Jin <joe.jin@oracle.com>
drivers/net/8139cp.c