diff options
| author | Ioana Radulescu <[email protected]> | 2017-06-15 03:55:06 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-06-23 18:41:33 +0200 |
| commit | 30c9dbf3174e75e8c721aa2c7d47bf8fcd40d8cb (patch) | |
| tree | efc9201cf96b5cf92ac1d5aff89f18e5328db29b | |
| parent | 125178d1ebd6d76a5fb152cfb3cd50a3316cf3ba (diff) | |
staging: fsl-mc/dpio: Propagate error code
dpaa2_io_service_register() returns zero even if
qbman_swp_CDAN_set() encountered an error. Fix this
by propagating the error code so the caller is informed
data availability notifications are not properly set
for a channel.
Signed-off-by: Ioana Radulescu <[email protected]>
Acked-by: Bogdan Purcareata <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
| -rw-r--r-- | drivers/staging/fsl-mc/bus/dpio/dpio-service.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/fsl-mc/bus/dpio/dpio-service.c b/drivers/staging/fsl-mc/bus/dpio/dpio-service.c index 8c45f817c472..f8096828f5b7 100644 --- a/drivers/staging/fsl-mc/bus/dpio/dpio-service.c +++ b/drivers/staging/fsl-mc/bus/dpio/dpio-service.c @@ -260,9 +260,9 @@ int dpaa2_io_service_register(struct dpaa2_io *d, /* Enable the generation of CDAN notifications */ if (ctx->is_cdan) - qbman_swp_CDAN_set_context_enable(d->swp, - (u16)ctx->id, - ctx->qman64); + return qbman_swp_CDAN_set_context_enable(d->swp, + (u16)ctx->id, + ctx->qman64); return 0; } EXPORT_SYMBOL(dpaa2_io_service_register); |