ibmvnic: simplify and improve driver probe function
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Wed, 6 Jul 2016 20:35:17 +0000 (15:35 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 Jul 2016 21:42:10 +0000 (17:42 -0400)
commitea22d51a7831b062978fcf07c3c5ac7ecbb6cbeb
tree795cdfad488a8a09a17b0c32c836395f7817fdf3
parent88eb98a0178219e1d6e9037b71d293f19b89eef2
ibmvnic: simplify and improve driver probe function

This patch creates a function that handles sub-CRQ IRQ creation
separately from sub-CRQ initialization. Another function is then needed
to release sub-CRQ resources prior to sub-CRQ IRQ creation.

These additions allow the driver probe function to be simplified,
specifically during the VNIC Server login process. A timeout is also
included while waiting for completion of the login process in case
the VNIC Server is not available or some other error occurs.

Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c