summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2020-05-22 00:09:08 +0200
committerArnd Bergmann <arnd@arndb.de>2020-05-22 00:09:09 +0200
commitccffeae7afa41c8ec6d9070d1b4ca1fb210f9f28 (patch)
treede91b0deb82ce6c4f25edc077d23886496ef70c9 /drivers
parentMerge tag 'imx-fixes-5.7-2' of git://git.kernel.org/pub/scm/linux/kernel/git/... (diff)
parentsoc: mediatek: cmdq: return send msg error code (diff)
downloadlinux-ccffeae7afa41c8ec6d9070d1b4ca1fb210f9f28.tar.xz
linux-ccffeae7afa41c8ec6d9070d1b4ca1fb210f9f28.zip
Merge branch 'v5.7-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux into arm/fixes
* 'v5.7-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux: soc: mediatek: cmdq: return send msg error code arm64: dts: mt8173: fix vcodec-enc clock Link: https://lore.kernel.org/r/33a0556a-e2a3-7f0b-b09b-4516642a4bfe@gmail.com Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/soc/mediatek/mtk-cmdq-helper.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/soc/mediatek/mtk-cmdq-helper.c b/drivers/soc/mediatek/mtk-cmdq-helper.c
index db37144ae98c..87ee9f767b7a 100644
--- a/drivers/soc/mediatek/mtk-cmdq-helper.c
+++ b/drivers/soc/mediatek/mtk-cmdq-helper.c
@@ -351,7 +351,9 @@ int cmdq_pkt_flush_async(struct cmdq_pkt *pkt, cmdq_async_flush_cb cb,
spin_unlock_irqrestore(&client->lock, flags);
}
- mbox_send_message(client->chan, pkt);
+ err = mbox_send_message(client->chan, pkt);
+ if (err < 0)
+ return err;
/* We can send next packet immediately, so just call txdone. */
mbox_client_txdone(client->chan, 0);