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)
commit070f9c658a59f9a736b1c040001d37b0952e778e
tree1a568073b6ce4688fe696550221d2f8493f01bc0
parent8799a221f5944a7d74516ecf46d58c28ec1d1f75
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