From patchwork Tue Oct 25 09:02:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 10603 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp891573wru; Tue, 25 Oct 2022 02:07:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6E0tUec0gOXemj8vP8yPsAqKnT3gDle0ZF+RFXPlqx5jNdn6xhBV7GazuSdKdvQD1Q2EFf X-Received: by 2002:a17:906:5ac2:b0:78d:3358:7694 with SMTP id x2-20020a1709065ac200b0078d33587694mr31516208ejs.276.1666688831457; Tue, 25 Oct 2022 02:07:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666688831; cv=none; d=google.com; s=arc-20160816; b=ceL/0vv0ffmK6n6vfcvO9eIfbdHrBvrWOXzFrXsWqSFzemCcHO7E9jIqIdx3tQTCe+ YowOY93eEbLHYuRYVjy7PqtMMVacbakKSIqmaXXD5pAr9nPprF60a+38b+KmmpbMhLrk /3IjeUKjEtfbi5kV9UY+0XWgGIliEfKDKQGyvYPqOEdyOwOZ24bK1l+9BoHMlT34V0Pw VXlLb/lXYesk8wADyB14WEZk4HPRlL/KgNCccKwtBZj4U5NPMfxChhrLpTjJuaqNY4bz YnCgblXsQeNI64p41PuFMey6eV4uL9uTn8fYq0x+rDoQ0GtVjcnSf4AzdRy1m9JRJ1l0 FF2g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=beF6bMeoY1D8lRsbzLFvVJYFCkzJBENbODSpb3H9D/0=; b=VrisF1HoSy1skWWlgK2j4s0XCraa3TJYR4M2ADbCiIEqVf4UihvZ7Kpxjo2LRgGBZ5 5xkSyg0Em2x5SEf2Nv0RkJ0I1hPhXmAMcXrB/lcTmXdrwi7u+S1CcwB0eBvnV/+jWo4F I7Bu3H8iXM0f6k6ajdzhF8HrJP9wS2j8iUp+VdYWnNLGPwWAkanrRBRXLNff67LnvIFv Qs5QhIdqyVvde91hVuignxQ+n29E2PjsKX4XdL/7K7VhUAa0qins73knHKlpYPZC8mGj luJwlTgTajWehbkfurcq112EWve+AatxpU3GTAlHOMNunTfftZKEiiswwmHKwWk5l/wQ DPeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=YAsSgPex; 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=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rh19-20020a17090720f300b0073beb58e98dsi1859095ejb.276.2022.10.25.02.06.46; Tue, 25 Oct 2022 02:07:11 -0700 (PDT) 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=@microchip.com header.s=mchp header.b=YAsSgPex; 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=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231639AbiJYJDe (ORCPT + 99 others); Tue, 25 Oct 2022 05:03:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231883AbiJYJDZ (ORCPT ); Tue, 25 Oct 2022 05:03:25 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EA69159D56; Tue, 25 Oct 2022 02:03:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1666688604; x=1698224604; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=n7m5a560kz8pazJBqnW28hj2rqVi6MtTE1dS+y8uJO4=; b=YAsSgPexE4DqixVrhZyXSXC1WUjwzJnMKhvenI1eSVaS72VFjNOUfvPh rD14uXjTpltpWlaHT/n+qvVshXWcOmRzESGI4O9gVMFwPqNsD+6o6Fg/J kmx2i9YzSF2jWFycQToqOhnfCJUZ6VkKrhsvyPdbS6tMWgET9OeGWfdPw jSV2Gu5SiTTTF/182w4dOuIvjP2Pknc1RoifiIf4gIL7DqiLnNSxmd0hY /syUteC3aWxowNLeg3QvOVA0FV0jHxA6ts0m5GKpuKEb0kjxBm7+cv6q1 qNein/P2up14GhZdmDvomVhBhNu2I6rl2X4echRuJhVHVUTny2g5oA9qQ w==; X-IronPort-AV: E=Sophos;i="5.95,211,1661842800"; d="scan'208";a="183777316" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 25 Oct 2022 02:03:23 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Tue, 25 Oct 2022 02:03:21 -0700 Received: from ROB-ULT-M18064N.mchp-main.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Tue, 25 Oct 2022 02:03:18 -0700 From: Tudor Ambarus To: , , CC: , , , , , , , "Tudor Ambarus" , Subject: [PATCH v2 03/32] dmaengine: at_hdmac: Start transfer for cyclic channels in issue_pending Date: Tue, 25 Oct 2022 12:02:37 +0300 Message-ID: <20221025090306.297886-4-tudor.ambarus@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221025090306.297886-1-tudor.ambarus@microchip.com> References: <20221025090306.297886-1-tudor.ambarus@microchip.com> MIME-Version: 1.0 X-Spam-Status: No, score=-4.9 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_PASS,SPF_PASS,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747649908084599965?= X-GMAIL-MSGID: =?utf-8?q?1747649908084599965?= Cyclic channels must too call issue_pending in order to start a transfer. Start the transfer in issue_pending regardless of the type of channel. This wrongly worked before, because in the past the transfer was started at tx_submit level when only a desc in the transfer list. Fixes: 53830cc75974 ("dmaengine: at_hdmac: add cyclic DMA operation support") Reported-by: Peter Rosin Signed-off-by: Tudor Ambarus Cc: stable@vger.kernel.org Link: https://lore.kernel.org/lkml/13c6c9a2-6db5-c3bf-349b-4c127ad3496a@axentia.se/ --- drivers/dma/at_hdmac.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/dma/at_hdmac.c b/drivers/dma/at_hdmac.c index 3f71f4d2f467..e9d0c3632868 100644 --- a/drivers/dma/at_hdmac.c +++ b/drivers/dma/at_hdmac.c @@ -1536,10 +1536,6 @@ static void atc_issue_pending(struct dma_chan *chan) dev_vdbg(chan2dev(chan), "issue_pending\n"); - /* Not needed for cyclic transfers */ - if (atc_chan_is_cyclic(atchan)) - return; - atc_advance_work(atchan); }