Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp1664916rwe; Sat, 15 Apr 2023 03:55:24 -0700 (PDT) X-Google-Smtp-Source: AKy350YDJz9q5zfaMrWVieiQ5THuxw2GmtwhdZ8aYlwQR89X7zUMMhCFvCHjaKJa8uXDUlAR3gj4 X-Received: by 2002:a17:902:d481:b0:1a2:8940:6da4 with SMTP id c1-20020a170902d48100b001a289406da4mr6945786plg.29.1681556124476; Sat, 15 Apr 2023 03:55:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681556124; cv=none; d=google.com; s=arc-20160816; b=TaSGkYCilzrsh3m+8pmzuAm1dADrvmZxMLKpfFkHtXdytHlUp/9gMh6A/gZaFvNxcU tgSII6h8JE/QALl2xN2WBpkIqQ99VDY0wNejOYaJX1MpkW9+2YoDuqvD4uL8QL56JnQ3 s5EqioyYW1mou6mxJp1tstmEjDew+AXdIZLrmLHXoLHf0OkUOkrmbvX6IN/XqXlK6ztJ +3AxZ4J/yDPkpjZoJakKU7H31pZzmveV1y278P5as1GmzF5rAQJr+pVmWStgntaGpqgP Jomofuh3w5b76ksygD/i5IeNdEEWdcN3uFb/u48sWN1aR8pACn9MSAJY5UCJ+eenVJfA CuRQ== 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=Hs0WWeo5Rw1/vBHv8aFO40rz8ga3wf3/QKJVuiRDY74=; b=MmYZiht8zNMZVFlNAZxu3nkytS7N6rQEt7tSOWIBoCjvHaM1N0E/ZcVfl0A/q6SFJQ U/O5Eso443GxI95YF2sb3mCXHmAOuhud9Nq2WChi9w/88twtr5CwuM1784ubZIr4ts/V 2aVAu5LoFSIdmyAa5BpO7X5LwgFgb5C2FMZUtpk6jiJZz/7vf7X2gXt4TSNQUWY7IkZL KDdNKxkDIcupNp1rONqTe0ifjINAnpJJgn7UxoYYKBZHFZ3rZ8tsQYKWdT/rkVmC+ULJ YGwWOmo5yyXj4UabTFTNMv8n+SDtqdIARkAyjxByKQ4op599KXoWVhZD2hW3cKzKEsSc Ht9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FVX+0WKx; 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 n21-20020a17090ac69500b0023f2e6a146bsi5537256pjt.41.2023.04.15.03.55.10; Sat, 15 Apr 2023 03:55:24 -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=FVX+0WKx; 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 S230337AbjDOKs2 (ORCPT + 99 others); Sat, 15 Apr 2023 06:48:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230339AbjDOKsW (ORCPT ); Sat, 15 Apr 2023 06:48:22 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48B60902A; Sat, 15 Apr 2023 03:47:43 -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 480FA60B6F; Sat, 15 Apr 2023 10:46:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0F25C433EF; Sat, 15 Apr 2023 10:46:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681555616; bh=rWgvMj5cYDZlqdP2y85l1teuyeWHxbR1ZrR2gsinzRs=; h=From:To:Cc:Subject:Date:From; b=FVX+0WKxgvThRShcyOQ6wRXDUduGLMIBCuEbF2TNjXDLfy+d8t31deRXVOddizlzr OrDSswiikIWDKDMHLH2Vb9Gbzw+LtRl+4PLNQcEz63RNvSwJmrgMjMTS7HmY1swrJd 2EKkII5clLrGMrggwa0q+fXdRJdmWNQF52T2DsM+qFkHON6i/SKL3L8N5kVzNbbTMH 51kj27UeU2PUfon5o0zTa1VU1sH4Ry1jTZDoTsSuee40lJGO6Ktk2HLJdmlWobN3Qi pzEiRphnu1T3awesZiZ+Dk9avSrSDBrYgY+V26u/02A6AXa7xjLa6EL87Yow8d/TVS lvTFZs+6noSdQ== From: Jisheng Zhang To: Eugeniy Paltsev , Vinod Koul Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 00/11] dmaengine: dw-axi_dmac: bug fix clean up and more features Date: Sat, 15 Apr 2023 18:35:50 +0800 Message-Id: <20230415103601.2979-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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 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.39.2