]> 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)
commit7e29f5f65342a618e1d2b8e6272c13b7a139019f
tree1a568073b6ce4688fe696550221d2f8493f01bc0
parenta046b5eb3e49e184c6c95bd556c9012d21627141
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