Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6310660pxb; Mon, 14 Feb 2022 22:31:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJz4bzhvOmVNl89trm/9xKSljEnsKs5MguASOAYlTv6o59rkbgZN0VebJhuVvtICBNJOeEsa X-Received: by 2002:a17:906:549:: with SMTP id k9mr1765619eja.649.1644906682602; Mon, 14 Feb 2022 22:31:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644906682; cv=none; d=google.com; s=arc-20160816; b=PUCddGX4s1f6Ft5fIrSHz1+OeSzEG6s30OFa7ub39+Q+3p9n/+mbzRr7sP+Do6rmVb UZrg2d1BuT4wvgPJPU2euIny8uqxaopxh8Hn17ij2CUmy/880/9osLucuhxiZm6jbeXh n94yyRdX+EBia5y1ImQ8uAhoa8duHAnomC2thU5Bajse6K+FrTV7e7PmmAcStSschBp+ Ss13Ww3d472e7ak9FhorjqGkYL6lEaS2qutSoPRvlUgpubJG8pxxNjGEW8dI5VqndDl8 Fzo1El3iW65hAyyhak+/BA7bf3CYioDSNPmljiM9zA/jxS1p4ab9dx8o3xFBsthO6SKj HcVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=cscbZ7Of7ik0JUdp5AueLUkwQVQnWzMfZa+oyDa8h8A=; b=xBqksCnScT1pECMUqdDDaPFZrXzKxn79EKXlJ9YsKxurQ8vrnrNnkcx9z3vq0SRkiA NvRy8vzjl/oiYkfMo0AJHR6YlDOraPYgxpZvU18H99Y2jvtj8O81Cyqb87DxlL/w/P+E 41NLvdbFZ9ONK5JGLqtnYXMx+J34Zzghafsxvb1LfzKWXGIx6n3lF3D1UGLKya/cEuiY S0mufvcBM+qdkXOb7rh0mP2pCkareGggmj1hByjUlWfyukD6eAwhr7NRZTTrW/FY7RYi YGhtD5sDhiCp4F30SBFfPw6BzaA9w8EVnqWBZ6ieLhAk+i/HYuVd9/Rlt9SjYzt8qmSV 16hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fn9+lded; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j17si17444459edw.276.2022.02.14.22.30.59; Mon, 14 Feb 2022 22:31:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fn9+lded; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231423AbiBOElw (ORCPT + 99 others); Mon, 14 Feb 2022 23:41:52 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:54436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229658AbiBOElu (ORCPT ); Mon, 14 Feb 2022 23:41:50 -0500 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F157610D7; Mon, 14 Feb 2022 20:41:39 -0800 (PST) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 21F4fOjr014078; Mon, 14 Feb 2022 22:41:24 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1644900084; bh=cscbZ7Of7ik0JUdp5AueLUkwQVQnWzMfZa+oyDa8h8A=; h=From:To:CC:Subject:Date; b=fn9+ldedesTOkifeGM/4B8fVG8Q7JrKyjl/I+Mb9yA9Ilq1ow5dYKFdC7nyjA+V8b SQIoT0wVy4FIo7E5w9WKD5gvIcC1/nOiTTFF8VBJWNJAuQ/wTW7TAN/bCLviWnmTqN 7NpMdfjelY1ExBzdtHcF1YtHEny1ncZvMBuuuNpQ= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 21F4fOvx085770 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 14 Feb 2022 22:41:24 -0600 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Mon, 14 Feb 2022 22:41:24 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Mon, 14 Feb 2022 22:41:24 -0600 Received: from ula0132425.ent.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 21F4fLtI130239; Mon, 14 Feb 2022 22:41:22 -0600 From: Vignesh Raghavendra To: Peter Ujfalusi , Vinod Koul CC: , , Vignesh Raghavendra , Linux ARM Mailing List Subject: [PATCH] dmaengine: ti: k3-udma: Avoid false error msg on chan teardown Date: Tue, 15 Feb 2022 10:11:12 +0530 Message-ID: <20220215044112.161634-1-vigneshr@ti.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In cyclic mode, there is no additional descriptor pushed to collect outstanding data on channel teardown. Therefore no need to wait for this descriptor to come back. Without this terminating aplay cmd outputs false error msg like: [ 116.402800] ti-bcdma 485c0100.dma-controller: chan1 teardown timeout! Signed-off-by: Vignesh Raghavendra --- drivers/dma/ti/k3-udma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c index 9abb08d353ca0..c9a1b2f312603 100644 --- a/drivers/dma/ti/k3-udma.c +++ b/drivers/dma/ti/k3-udma.c @@ -3924,7 +3924,7 @@ static void udma_synchronize(struct dma_chan *chan) vchan_synchronize(&uc->vc); - if (uc->state == UDMA_CHAN_IS_TERMINATING) { + if (uc->state == UDMA_CHAN_IS_TERMINATING && !uc->cyclic) { timeout = wait_for_completion_timeout(&uc->teardown_completed, timeout); if (!timeout) { -- 2.35.1