]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: cpsw: Push the request_irq function to the end of probe
authorKeerthy <j-keerthy@ti.com>
Thu, 20 Jul 2017 11:29:52 +0000 (16:59 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Jul 2017 22:28:54 +0000 (15:28 -0700)
commit95a1f60fb31bb3dae81c11f449cb10795ea2e00a
tree1a568073b6ce4688fe696550221d2f8493f01bc0
parent8f0466232dc3cee51be9fc99c23b01613806b4ff
net: ethernet: ti: cpsw: Push the request_irq function to the end of probe

Push the request_irq function to the end of probe so as
to ensure all the required fields are populated in the event
of an ISR getting executed right after requesting the irq.

Currently while loading the crash kernel a crash was seen as
soon as devm_request_threaded_irq was called. This was due to
n->poll being NULL which is called as part of net_rx_action
function.

Suggested-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c