mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
mailbox: imx: Forward the timeout/ error in imx_mu_generic_tx()
imx_mu_generic_tx() for the IMX_MU_TYPE_TXDB_V2 type polls on a register
which may timeout and is recognized as an error. This error is siltently
dropped and not dropped to the caller.
Forward the error to the caller.
Fixes: b5ef17917f ("mailbox: imx: fix TXDB_V2 channel race condition")
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
This commit is contained in:
parent
9b2ffcfb32
commit
82ef9a635d
|
|
@ -227,6 +227,7 @@ static int imx_mu_generic_tx(struct imx_mu_priv *priv,
|
|||
u32 val;
|
||||
int ret, count;
|
||||
|
||||
ret = 0;
|
||||
switch (cp->type) {
|
||||
case IMX_MU_TYPE_TX:
|
||||
imx_mu_write(priv, *arg, priv->dcfg->xTR + cp->idx * 4);
|
||||
|
|
@ -259,7 +260,7 @@ static int imx_mu_generic_tx(struct imx_mu_priv *priv,
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int imx_mu_generic_rx(struct imx_mu_priv *priv,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user