From patchwork Wed Mar 30 16:44:56 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: 12796104 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 99F84C433EF for ; Wed, 30 Mar 2022 16:46:39 +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=sc4ZGbV2rHydFPbd4ON4h1gq8LMay3IkpX6Hyo1sY5o=; b=0Lchj5j5bCFROT +0dHhgY4UUGFS/1OMZhbhx9v5o2H0XN03nXGYA63UfwLP5TvDXPqLM0j4vU2SPNdPc6srG5SJa//v UASieWniuNEot7777j93xe1SKRRibnGict4I0sUbPaMBLo5xpqvudz8QHnfQQNqAshZjmAVKbpDA/ BFHa9fA0nsuQa7vbm/YK4ilrl8MWhGoZLvzIUNkCpzhPkhhpwiJzx8khCwxIsbyFJPrbavK/Gi/FB 4oiLJmqSwWgM/xlR7ALYfO0t1BwPaosuaKXkWuclZ74PivKXc0xlFjcv0c0KLL5VHukeJZXrqORUm gZN0HFhnfJBQSW7hKStw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nZbRi-00Grmg-R8; Wed, 30 Mar 2022 16:45:22 +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 1nZbRe-00Grkm-Gx for linux-arm-kernel@lists.infradead.org; Wed, 30 Mar 2022 16:45:20 +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=1648658714; bh=FcWw9Uk/r4WaK0fxaOvlIHfQF0QAszv5h5nSfagPCsc=; h=From:To:Cc:Subject:Date; b=N2nBqTBORZ9g3fKPtDc13YTkCa69C5+lS47eKXJAoKn3fkY51SzpD0SEYaEqhyL2B lTFaR9l/qMCfEd8CgOjN1KbuP+KAE9OZbdGljkCy8aWsPL1UUWaofLO2GUJ29i1D2K aK5Gmz+Ts221PkrI+63GWDz3cUsDS55sFQH5kPk0= 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 0/2] Apple ADMAC driver Date: Wed, 30 Mar 2022 18:44:56 +0200 Message-Id: <20220330164458.93055-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-20220330_094519_231229_3AA113D3 X-CRM114-Status: UNSURE ( 9.66 ) X-CRM114-Notice: Please train this message. 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, for your review I am submitting a driver for Audio DMA Controller on recent Apple SoCs. One note I want to leave: The docs appear to be wrong on the residue semantics of device_tx_status. They say "In the case of a cyclic transfer, it should only take into account the current period." But e.g. ALSA expects the residue to be of the full buffer. Martin Martin PoviĊĦer (2): dt-bindings: dma: Add apple,admac binding dmaengine: apple-admac: Add Apple ADMAC driver .../devicetree/bindings/dma/apple,admac.yaml | 73 ++ MAINTAINERS | 2 + drivers/dma/Kconfig | 8 + drivers/dma/Makefile | 1 + drivers/dma/apple-admac.c | 799 ++++++++++++++++++ 5 files changed, 883 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/apple,admac.yaml create mode 100644 drivers/dma/apple-admac.c