Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1744705rwd; Sun, 21 May 2023 05:33:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4+Vhj/XJD4riHU4SseEQ5CXa1CdnzkJgfDUM6EUqXKVXZHxdXji59x8wsPTi73XvIL2POT X-Received: by 2002:a05:6a20:8e05:b0:ee:f290:5b5e with SMTP id y5-20020a056a208e0500b000eef2905b5emr9245305pzj.43.1684672433721; Sun, 21 May 2023 05:33:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684672433; cv=none; d=google.com; s=arc-20160816; b=k5kSr3t08fabD1zOUBXQnD87vM50Hgz7InhbfUeFuhhlvVZ5bAbzZzjJD0tv2lCAaM 6mO3J6yu5wJbIbZx24QRHGwRQ27F/fH7C0L4p0Cz61XPuoqDF7+CRB4ck16rROONYbPj ZUydyWSkWR/g3RivSIvYrChOFfI5VIf5JZAAbfpGAnrmXUrLr4uAbXTfGjBdDWHLwQ47 +xOiliHt+rPugCCOoHj5+72WhrCE9R2Y8Sbv/aJHjcruZZHeFcs3vSmT94RYKOWsrQvp 0CeA4U4aTWkALD9XAXhQzAaQC4RKh0TCEbBFm4sm+r9/5Sl0PbWUYgQIg51mh+Wt3C+j dZ0w== 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=LbTwbHZq1afiC2cT9K8NBltstDu7jaXCbPfOGFwgAlg=; b=BaiMTu2XoJ5SK1Q0zRC+QN1Fev9h3Zq0LA4JbSNTvsscDTRpNNqjeqWgUZ9x/EkgXR RTVj7UPw6Dx6iqmeH8ne94xwOZ8IPfprq00GNpGcCzCYndcZ4GTh/LM4O+yeSHlPmcTq Fl/3rxi6uowi0jWeGwjuwpEnZ2H869KpwwZL0ebUH+I1B3718wQaMiKAXrsLtABxwznY a3Usjci7yDOf5QmpphzLGiRlV0V0bxbojbAYSp1JG0C7Ks9qahoO6/WK9px7gPDd/iNL PijLgRyZOD5FuTLrDrNa2AOiTSkkUqj75l3OR+bRg2NkZvvpgeJ9+VpqAgCeTX2s1ApI uhAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jZt0FhSE; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i2-20020a633c42000000b00535a71508f3si3079169pgn.77.2023.05.21.05.33.41; Sun, 21 May 2023 05:33:53 -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=@kernel.org header.s=k20201202 header.b=jZt0FhSE; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230372AbjEULtZ (ORCPT + 99 others); Sun, 21 May 2023 07:49:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230440AbjEUK1S (ORCPT ); Sun, 21 May 2023 06:27:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E637C10DE; Sun, 21 May 2023 03:23:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7B483611F6; Sun, 21 May 2023 10:23:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EEC10C433EF; Sun, 21 May 2023 10:23:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684664605; bh=kfAplaWGiLjpl33bNpDu0hiyLlbkQbmXnbsBObQrxeQ=; h=From:To:Cc:Subject:Date:From; b=jZt0FhSEgOaO1gw9Cd/PhqENwIHqg922GvuwfmDlsSdUiBEUk1ybTmVYtiRN1gCqy wV+yIxBDYebpBXTWKNFHV9Ln1qwmhCsF/xzNPxFLYrZiJkZT0B75Zr2n+eYZ2BH6Or St4sh/ZmGzs40jRTsCeNe3YjpoGnaGpErupYHaiSrZAkOuRO1xOjJSeKduhaD1nbns dprRdtLN6xMxkxkBUILYdCPNCfeq9BTXBOsx1hYeGuc+pusKTTqlELjLRoYmn/ibi/ qJS6GBH72FS5qlEqN1ONxQIm/bwXFl9+QkfqK6BaPmxUEZhay78QTBU/q4E6YkAe85 6w1eOqJw6U/lQ== From: Jisheng Zhang To: Eugeniy Paltsev , Vinod Koul Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 00/11] dmaengine: dw-axi_dmac: bug fix clean up and more features Date: Sun, 21 May 2023 18:12:05 +0800 Message-Id: <20230521101216.4084-1-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 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 This series first fix a bug related with runtime pm. Then do three clean up. After that, we add three new features: per channel irq support, dma-channel-mask support and polled mode support. Since v3: - rebase on the latest rc1 Since v2 - fix typo - add reason why we need to runtime resume before reading reg in commit msg Hi Vinod, I still kept patch2 in v2, because I think the irq has been disabled from the dw-axi-dma side, so the irq won't be fired any more. If you prefer to keep the devm_free_irq() just ignore patch2. Thanks a lot. Jisheng Zhang (11): dmaengine: dw-axi-dmac: fix reading register when runtime suspended dmaengine: dw-axi-dmac: remove unnecessary devm_free_irq() calling dmaengine: dw-axi-dmac: remove unnecessary axi_dma_enable() calling dmaengine: dw-axi-dmac: remove redundant axi_dma_disable() calling dmaengine: dw-axi-dmac: delay irq getting until request_irq dmaengine: dw-axi-dmac: move ch irq handling into common routine dmaengine: dw-axi-dmac: support per channel irq dmaengine: dw-axi-dmac: support dma-channel-mask dmaengine: dw-axi-dmac: try best to get residue when tx is running dmaengine: dw-axi-dmac: move dma_chan_tx_status() dmaengine: dw-axi-dmac: support polled mode .../dma/dw-axi-dmac/dw-axi-dmac-platform.c | 207 ++++++++++++------ drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 4 + 2 files changed, 147 insertions(+), 64 deletions(-) -- 2.40.0