Commit 30c9dbf3 authored by Ioana Radulescu's avatar Ioana Radulescu Committed by Greg Kroah-Hartman
Browse files

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: default avatarIoana Radulescu <ruxandra.radulescu@nxp.com>
Acked-by: default avatarBogdan Purcareata <bogdan.purcareata@nxp.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 125178d1
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -260,7 +260,7 @@ 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,
		return qbman_swp_CDAN_set_context_enable(d->swp,
							 (u16)ctx->id,
							 ctx->qman64);
	return 0;