From patchwork Tue Apr 7 10:22:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 228154 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2A69CC2BB55 for ; Tue, 7 Apr 2020 10:28:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ED54B20644 for ; Tue, 7 Apr 2020 10:28:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586255289; bh=KN/RtJgBrXn5vFfRyb79eWSReJRlqg0mW2vgwy54kG8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=zzmkK7pVOb7y3ZJR+RE0W+I2leqwEj4NcB+IFmAzxPzumsGuXtAlGS4ySsOd24/Jg ZVaPPLFYdEsYxxcjmL5XiHc6SKG2Uuwag23wlbHsbCKkwcL+IGZMc8KUxt1tuo6FQZ p7NNVJsmpDnDbDkdFEVxwhlrjksXy0r/14C7p7hM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729047AbgDGKZw (ORCPT ); Tue, 7 Apr 2020 06:25:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:36620 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729045AbgDGKZw (ORCPT ); Tue, 7 Apr 2020 06:25:52 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7101A20771; Tue, 7 Apr 2020 10:25:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586255151; bh=KN/RtJgBrXn5vFfRyb79eWSReJRlqg0mW2vgwy54kG8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e3KvttlmP7fkaGFNrwPwacwI2ckQcbb0Il7awKLoJGDCmqEfaJjmbAEzS4FYn3nOB TXZh/iMWDiHJB5e4qBJ+maALQTc3NHOR764n+Ao2uGY7msLr0GBITabWnyVO6A2oll /wiobBnZHrR0d6S47jm5OU6Sa9g0aGTkIYgkWd0A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bibby Hsieh , CK Hu , Matthias Brugger Subject: [PATCH 5.5 33/46] soc: mediatek: knows_txdone needs to be set in Mediatek CMDQ helper Date: Tue, 7 Apr 2020 12:22:04 +0200 Message-Id: <20200407101503.033372873@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200407101459.502593074@linuxfoundation.org> References: <20200407101459.502593074@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Bibby Hsieh commit ce35e21d82bcac8b3fd5128888f9e233f8444293 upstream. Mediatek CMDQ driver have a mechanism to do TXDONE_BY_ACK, so we should set knows_txdone. Fixes:576f1b4bc802 ("soc: mediatek: Add Mediatek CMDQ helper") Cc: stable@vger.kernel.org # v5.0+ Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu Signed-off-by: Matthias Brugger Signed-off-by: Greg Kroah-Hartman --- drivers/soc/mediatek/mtk-cmdq-helper.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/soc/mediatek/mtk-cmdq-helper.c +++ b/drivers/soc/mediatek/mtk-cmdq-helper.c @@ -38,6 +38,7 @@ struct cmdq_client *cmdq_mbox_create(str client->pkt_cnt = 0; client->client.dev = dev; client->client.tx_block = false; + client->client.knows_txdone = true; client->chan = mbox_request_channel(&client->client, index); if (IS_ERR(client->chan)) {