Commit ce35e21d authored by Bibby Hsieh's avatar Bibby Hsieh Committed by Matthias Brugger

soc: mediatek: knows_txdone needs to be set in Mediatek CMDQ helper

Mediatek CMDQ driver have a mechanism to do TXDONE_BY_ACK,
so we should set knows_txdone.

Fixes:576f1b4b ("soc: mediatek: Add Mediatek CMDQ helper")

Cc: stable@vger.kernel.org # v5.0+
Signed-off-by: default avatarBibby Hsieh <bibby.hsieh@mediatek.com>
Reviewed-by: default avatarCK Hu <ck.hu@mediatek.com>
Signed-off-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
parent bb6d3fb3
...@@ -78,6 +78,7 @@ struct cmdq_client *cmdq_mbox_create(struct device *dev, int index, u32 timeout) ...@@ -78,6 +78,7 @@ struct cmdq_client *cmdq_mbox_create(struct device *dev, int index, u32 timeout)
client->pkt_cnt = 0; client->pkt_cnt = 0;
client->client.dev = dev; client->client.dev = dev;
client->client.tx_block = false; client->client.tx_block = false;
client->client.knows_txdone = true;
client->chan = mbox_request_channel(&client->client, index); client->chan = mbox_request_channel(&client->client, index);
if (IS_ERR(client->chan)) { if (IS_ERR(client->chan)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment