summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/farch.c
diff options
context:
space:
mode:
authorJon Cooper <jcooper@solarflare.com>2013-04-15 18:51:54 +0100
committerBen Hutchings <bhutchings@solarflare.com>2013-08-29 18:12:08 +0100
commit261e4d96b45476fa7386130a309bc15af9eca2e0 (patch)
tree51f4a3d2a08085c5ea2ec2fc5c39c46bf4568cda /drivers/net/ethernet/sfc/farch.c
parentb883d0bd4ae91059242fd2f8c2a70f308ef63dc1 (diff)
downloadop-kernel-dev-261e4d96b45476fa7386130a309bc15af9eca2e0.zip
op-kernel-dev-261e4d96b45476fa7386130a309bc15af9eca2e0.tar.gz
sfc: Allow event queue initialisation to fail
On EF10, event queue initialisation requires an MCDI request which may return failure. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/farch.c')
-rw-r--r--drivers/net/ethernet/sfc/farch.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/farch.c b/drivers/net/ethernet/sfc/farch.c
index d21483d..904af5c 100644
--- a/drivers/net/ethernet/sfc/farch.c
+++ b/drivers/net/ethernet/sfc/farch.c
@@ -1325,7 +1325,7 @@ int efx_farch_ev_probe(struct efx_channel *channel)
entries * sizeof(efx_qword_t));
}
-void efx_farch_ev_init(struct efx_channel *channel)
+int efx_farch_ev_init(struct efx_channel *channel)
{
efx_oword_t reg;
struct efx_nic *efx = channel->efx;
@@ -1358,6 +1358,8 @@ void efx_farch_ev_init(struct efx_channel *channel)
channel->channel);
efx->type->push_irq_moderation(channel);
+
+ return 0;
}
void efx_farch_ev_fini(struct efx_channel *channel)
OpenPOWER on IntegriCloud