From patchwork Wed Apr 20 19:07:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Martin_Povi=C5=A1er?= X-Patchwork-Id: 12820720 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DC985C433EF for ; Wed, 20 Apr 2022 19:10:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=YobspRf+iHKykHgX0B6RLsbkhweChm0OYbE6eJmJ+tc=; b=HFeDh4z6l6iSF/ F+C972pVNP+3Bm1IjpG4yVYK+p9aX3JS4A8CQwBCErKegwEXS2vvWt2cw6aqGujVxJ8EkAcN3W0lc wjClF/VoFgRTpS3IBs+h0tok7mOOT+sOWXIOCfiuq5YqWdOeLlmRkVIJFeE/VUUHWE+gENNM4SH0U cJK8UxX68Y9zRIIAhHmXzEEjvSJgS6IamutE7ToVKv+lAq5aMmXVZi2W7ZA9L1tNzW+BFlDkikTAF kWVZzDi/myTj2p2GdUHbSaKcxIZMr1XYTY+TQypngEb2LQS0uH+p5D2N+yk1oSgmKu7dRWbGTjKek AHI6/IhbsKwpHXVkIpGA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhFhR-00A9li-VZ; Wed, 20 Apr 2022 19:09:14 +0000 Received: from hutie.ust.cz ([185.8.165.127]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhFhM-00A9i8-Us for linux-arm-kernel@lists.infradead.org; Wed, 20 Apr 2022 19:09:12 +0000 From: =?utf-8?q?Martin_Povi=C5=A1er?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cutebit.org; s=mail; t=1650481740; bh=2rmj+wmfZSnjCFeUKvJuxbNQ7c6I46bc3UeTdcboskE=; h=From:To:Cc:Subject:Date; b=RSDpgvPqCblpwwaRVu/YhZuUCEyMK8iiba3QK6gsPmzlt2Eff37ZbVbBBOZxtLi+b A5rjlWW4qc1XSaCA80+sto9kb+rPIdMMByj8kcc/T16xfFGM3HhDLZyY1YFrGjybOs rX8snslgAm8y8DWb2MR2CFGb0GN2wCyTogwtyw0Q= To: Hector Martin , Sven Peter , Vinod Koul , Rob Herring , Krzysztof Kozlowski Cc: Alyssa Rosenzweig , linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Kettenis , =?utf-8?q?Martin_Povi=C5=A1er?= Subject: [PATCH v3 0/2] Apple ADMAC driver Date: Wed, 20 Apr 2022 21:07:53 +0200 Message-Id: <20220420190755.76617-1-povik+lin@cutebit.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220420_120910_005575_898CBE5E X-CRM114-Status: GOOD ( 10.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi all, this is v3 of driver for Audio DMA Controller on recent Apple SoCs. Changes since v3: (link: https://lore.kernel.org/dmaengine/20220411222204.96860-1-povik+lin@cutebit.org/ ) - in binding, make 'interrupts' fixed length and add a comment - do not use devm allocation on descriptors - use platform_get_irq_optional to not log errors in the course of looking for an usable interrupt - make channel no. unsigned Changes since v1: (link: https://lore.kernel.org/dmaengine/20220330164458.93055-1-povik+lin@cutebit.org/ ) - in binding, drop 'apple,internal-irq-destination' in favor of prepending entries to 'interrupts' - drop admac_peek/poke helpers - use special versions of dev_err/WARN_ON where desirable, fix %pad formatter invocation - bring implementation of terminate_all up to dmaengine spec, add device_synchronize - minor fixes (comments, formatting) Thanks, Martin Martin PoviĊĦer (2): dt-bindings: dma: Add Apple ADMAC dmaengine: apple-admac: Add Apple ADMAC driver .../devicetree/bindings/dma/apple,admac.yaml | 75 ++ MAINTAINERS | 2 + drivers/dma/Kconfig | 8 + drivers/dma/Makefile | 1 + drivers/dma/apple-admac.c | 818 ++++++++++++++++++ 5 files changed, 904 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/apple,admac.yaml create mode 100644 drivers/dma/apple-admac.c