From patchwork Wed Nov 4 06:25:58 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 3854 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mxe881.netcup.net (Postfix) with ESMTPS id 51C691C7205 for ; Wed, 4 Nov 2026 07:26:09 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=gmail.com; spf=pass (sender IP is 104.64.211.4) smtp.mailfrom=linux-sunxi+bounces-27165-noreply=patchwork.local@lists.linux.dev smtp.helo=sin.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 104.64.211.4 as permitted sender) client-ip=104.64.211.4; envelope-from=linux-sunxi+bounces-27165-noreply=patchwork.local@lists.linux.dev; helo=sin.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id 05BEA2420E for ; Wed, 4 Nov 2026 06:26:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1793773563; b=3oNRmE90vbPDG1u2g7J9ed5iU3Bodvu2osE/Mgk68J81PlxgoKZhoE8M0cmFS2fOo0cX DZycSfNk5wiWdC4ZHsMpAidh0I2M3afOyZFWiV1zEhGPWwA7thAU5pHywLk7sM9bCaWxL 0Mt5BZ+7xwehXAKPqWOly3tyal7fTKqWfCEIhjRslZbpIkP51OU+ar13BPDxbewCZPN9D 0H9aCqSFUsm78fN3htN3SSm/BN5IVShfzJMTyycH1BrDddRqIRvm3ocQRZkW1T2PbaENv 4PzJ3hd6VvzkRGXwbuyUo9vqZR5Lmwf2xqUqT+4YWLINcBprZSlP0fG67xfQhnLIYew== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793773563; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature: X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State: X-Gm-Gg:X-Received:Received:From:Date:Subject:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding: Message-Id:X-B4-Tracking:X-Change-ID:To:Cc:X-Mailer; bh=lYAY31DLg1K8Ctq3iMNb+HOdz/jkumjLa2+Nxs3EUCs=; b=ZEh2/wQIvNNkPZLl/+wFEsoRvVga3xTlwJH/I1epYGLbNIcnlx/idXNx51SyiZ1ZsIYt CeEzAbdiqEmBS/TCRA+kBawSnj5orwFMIV3+m00EDtR3wseki9tPR7vq+KIUrWnhsR0f+ MoHkR6jkpe6ah5NPzjaKJUvV+IxL/eK+AF/2Bc8JHmGKLTu7yGiqyk7Ut4/9eYT6YXCZG QyWbgMSCqxfMeOsNNjuw0wQ0J8Dk2wM4hRVBlc3M4kQ0REXYjJEHSCfVKHJujYs180J5d T1O0mBDn5VqXz9egA0vDRkn78qJDBYN6yXsA6gshqZ9bN+PgWaMjbl7DCSLCObudNiA== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=NP1vY86b; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2371B606A332; Wed, 4 Nov 2026 06:26:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=NP1vY86b X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.167.173 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793773563; b=LoM0vdgkFECve/y7M/jfLMxhAFNpg0D+WEBrgCfIq4VrLQM25tHd09HbcunMPC+YFUZr U1kWG5NnnE/0cZMTT27li9uyT/iCkAjUCGNQ8HdLq7RK+M+6+UZzFIRlvSntJJzn9YIfF HwPoBtROxYlrT811znVOR9e5TWs0+P1GyfkbI3aLB3DumfaPYWgqTT0UmlikilNPjzaox L2ns3q91jhMFBc3MXJNvNKfog+N8488AybLnp/mbDFRAqbewZtxrwKfuxX+pM+Hiv40kR 6zY3cWu6uPFbyibplngmo82wmEONP/Zlumu/xQrdjIm08iipB5dHRzlsqrPY9Ow3+Nw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793773563; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:Date:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding: Message-Id:X-B4-Tracking:X-Change-ID:To:Cc:X-Mailer; bh=lYAY31DLg1K8Ctq3iMNb+HOdz/jkumjLa2+Nxs3EUCs=; b=pEf49uTBsIcYFldprhVgxJqp+NiFAsVvvjlumXoaoSn3tliF7Pwh56BiBeMdeIb4tXdD sB1R16kQL9GQuS6fwhVysfJMTLXSJSCfrxrcAE10RAi2TWxTSs4jAdpYQ4kMbyKizzqCN GyQkaIZrdl3tJk3ZpWC0UOWm/dzglxwsWBM63lpzUY3YudxNjQvERycrlO2jf5UHy7qyb mfgcPRp2UF0xx6n7xblTxhU8hwiJShWT4vhbsoumOd9uYBcNT2cWMMewO3aqCPfpk7ete cs0y5evN421j/bKB02epjIobgRQIofYxBtrzxIDk+yZePBkZzXxOPey4LGnjdYNo0Qw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=NP1vY86b; arc=none smtp.remote-ip=209.85.167.173 Received: from mail-oi1-f173.google.com (mail-oi1-f173.google.com [209.85.167.173]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9EA93606A32F for ; Wed, 4 Nov 2026 06:26:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9EA93606A32F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oi1-f173.google.com with SMTP id 5614622812f47-56431524c22so134912b6e.0 for ; Tue, 03 Nov 2026 22:26:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1793773561; x=1794378361; darn=lists.linux.dev; h=cc:to:message-id:content-transfer-encoding:content-type :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=lYAY31DLg1K8Ctq3iMNb+HOdz/jkumjLa2+Nxs3EUCs=; b=NP1vY86bps1qCNrUo1WGvqX4GBjIyNtpfRo0AXfuRmpB8gQ7Rvd5ZWI3T9qYGK2Qfr AGi+h9h3TO4989PsYNe4VuqUykKPGTjz5HfX1nszukgqkRlp6UlQsWgVd3viy0P+kcwI V744tj0X8A5uTHGjmRyl55YZtyGgo0EGmhrYhq0qtwKhMizPWQQXpgKmTx/orPldz/rz 69XfD0vC5mfVaKBp8+52X3e3eY6+WVTY7ouSxfOqEOypXTfy1q1xKRgf14zDPi9CoRom BvmFmE0cy1+ZhysMpVXPaX5jS9qeA6tNfU6u06Bv/GADk10zN9nnmMcfBrW390rquYbj SwvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793773561; x=1794378361; h=cc:to:message-id:content-transfer-encoding:content-type :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=lYAY31DLg1K8Ctq3iMNb+HOdz/jkumjLa2+Nxs3EUCs=; b=DKa1sduN72q5KZ17zYZYTrysqwzbs5AeaXueq3G549LaV2j2jQ9HRY0ps7KZwRf47f Paw3BCxcO2ezH3YJXItTQ7/YSW397yruG4MIKVMMnBMDIuPySk5W4DdTxnbtNEUcZGoI LkfuBq10hIXYvjGvtLiRbbolGZgVnzxU9cwZWtC9yPDKoR0grIcvXYo0ISc5mJEIDgQk 33liDLKTIwLCcvd+FNDxx77j4WV+ffHPPzbLoXEpyqEsYWuGOB1eztrYBOmS2spMClW9 PGr1vHybQZG+7WWPnoyx0zIbBIWJXjPrgeh9dit3iED1a/unjIKkxx56xSYzRk15wXzq g4dA== X-Forwarded-Encrypted: i=1; AKwUvBwnYWSoWLe3P51x7rw2RZ9ujhuVmW/YxZ3ulMljLrDCU/js8ncq2iw59TObodlpDc2itIBwCPsMpEb+Jw==@lists.linux.dev X-Gm-Message-State: APuU4Z9ClVr0D9aNvLOV0GfaZjqfH39wjD4UFRRg6fgz2qZisLlQHBSU CIJF4cGFqlb3rxpn6HMVybAkM0gXpvO5CwfortYu7Wm2Oak+J8gmdnw9 X-Gm-Gg: AYBFou04CVMoyto4HUmaqm1MbTT42wVqQVgs2TlL6Krkwyuy5LAVG5efdF1PEas2MXe DaxhPjtjc1K5Be+3IpgC0NcmjEliH/uX3bNcltba+R+fonBTyUUlWBkFewp50yjXnFwcL8KpplE SxSvyooIHiAqPfcKSi8ga2suY57n/seV+/QOaLj9TpJesGxYj3hJ/mprM6oEolEtk+x/1lod/gF jZdij6Uv8ckoHzhL4C9xthhehH9+xY1LqixYB5NML89ZvJC0fvm0JG6UvVqazPr+EIYYEUr75TG hL/HFA8GE+BOtbm66aJnVfrRe5vDiWkVD98Mc3WlpEHcToXd2IR297ibyCZMXyJm5JzUvc2jZ4i zpD0uXPZ+A8RUO9kDwKzhrcB+EfL3ureZsdPyplAfzY2O+oacGdWkFrzthRyCkqKYD2TTkHqKu2 URbNHIqcpdARkz4kf1O7eoOp54P52908yRPS8grwAffRYoY9QLtLS09IuUMj4yTiEXL0lcnmSHH nT6iw66AvtnxpBqh1wQm3p5C3AjBlbN/6Ud5UDjz9rJyEHz7xhXTWid3JVZ29b6NeibEoFzy+wj yrgGdQBDoFhM2LKL5m/BI1OLnhjuoM2D7X0AZx88ygq0FwOfMkZdXgDG8wlAMjkIgjqEMtzp5cj appuDuhnWw5RHlc+ylchcaBmCmAZtVZZ+EgBmgUrVDSc0xmztVAgqZ18V6SvWLyFLSUcd3KIdRT tc2GC4sTrjWwy/SpajONh7O+glkbTjFmhDaMRX9m8TFb7JiXqc5Fbb X-Received: by 2002:a05:6808:4fcc:b0:4e7:c6f2:75a6 with SMTP id 5614622812f47-5640deafdb6mr12232306b6e.68.1793773561572; Tue, 03 Nov 2026 22:26:01 -0800 (PST) Received: from [127.0.1.1] (174-29-1-49.hlrn.qwest.net. [174.29.1.49]) by smtp.gmail.com with ESMTPSA id 5614622812f47-567a9ef58b1sm956795b6e.3.2026.11.03.22.26.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Nov 2026 22:26:01 -0800 (PST) From: James Hilliard Date: Tue, 03 Nov 2026 23:25:58 -0700 Subject: [PATCH] dmaengine: sun4i: retain cyclic descriptors until callbacks drain X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261103-submit-sun4i-dma-callback-lifetime-v1-v1-1-4c5a0653104f@gmail.com> X-B4-Tracking: v=1; b=H4sIAAAAAAAC/yXNQQ7CIBCF4as0s3YSBg1Gr2JcAB10FNAANiZN7 16qq5dv878ZKhfhCudhhsKTVHnlDtoN4O823xhl7AattCFSe6wfl6T1yQfBMVn0NkZn/ROjBG6 SGCdCZ+iklVHuaAL01rtwkO/v53L9u4ce7NsWh2VZAXMhtUGJAAAA X-Change-ID: 20261103-submit-sun4i-dma-callback-lifetime-v1-b6192060b76f To: Vinod Koul , Frank Li , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Hans de Goede , =?utf-8?q?Emilio_L=C3=B3pez?= , Maxime Ripard Cc: dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, James Hilliard X-Mailer: b4 0.15.2 X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [-1.19 / 15.00]; BAYES_HAM(-5.50)[100.00%]; RBL_SENDERSCORE(2.00)[104.64.211.4:from]; SUSPICIOUS_RECIPS(1.50)[]; DMARC_POLICY_SOFTFAIL(1.00)[gmail.com : SPF not aligned (relaxed), No valid DKIM,none]; MAILLIST(-0.18)[generic]; MIME_GOOD(-0.10)[text/plain]; BAD_REP_POLICIES(0.10)[]; HAS_LIST_UNSUB(-0.01)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[sin.lore.kernel.org:helo,sin.lore.kernel.org:rdns]; FORGED_SENDER_MAILLIST(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; RCPT_COUNT_TWELVE(0.00)[13]; FROM_HAS_DN(0.00)[]; FREEMAIL_CC(0.00)[vger.kernel.org,lists.infradead.org,lists.linux.dev,gmail.com]; TAGGED_RCPT(0.00)[]; FROM_NEQ_ENVFROM(0.00)[jameshilliard1@gmail.com,linux-sunxi@lists.linux.dev]; ASN(0.00)[asn:63949, ipnet:104.64.192.0/19, country:SG]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[100.77.114.92:received,174.29.1.49:received,209.85.167.173:received]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[104.64.211.4:from]; TAGGED_FROM(0.00)[bounces-27165-noreply=patchwork.local]; R_SPF_ALLOW(0.00)[+ip4:104.64.211.4]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; ARC_ALLOW(0.00)[subspace.kernel.org:s=arc20261015:i=2]; FREEMAIL_TO(0.00)[kernel.org,gmail.com,sholland.org,elopez.com.ar]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 51C691C7205 X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX A cyclic IRQ queues a virt-dma tasklet with a pointer to the active descriptor. sun4i_dma_terminate_all() frees it without clearing the queued cyclic callback or waiting for one which has already started. The tasklet can subsequently access the freed descriptor. There is no device_synchronize callback to let clients drain these callbacks before releasing their own resources either. Serialize both half-transfer and end-transfer IRQ handling with termination under the virtual-channel lock. Recheck the physical-channel association after acquiring that lock so an IRQ which looked up the channel before termination cannot use its detached transfer state. Move terminated cyclic descriptors to the virt-dma terminated list. This clears any pending cyclic callback. Retain them until a new synchronize callback has waited for the IRQ handler and drained the tasklet. Drain callbacks before freeing channel resources as well. Termination itself remains usable from atomic context and from a completion callback. Keep freeing other collected descriptors immediately: an in-flight non-cyclic callback owns its descriptor on the tasklet's private list. Fixes: b096c1377d1e ("dmaengine: sun4i: Add support for the DMA engine on sun[457]i SoCs") Signed-off-by: James Hilliard --- drivers/dma/sun4i-dma.c | 46 +++++++++++++++++++++++++++++++++++----------- 1 file changed, 35 insertions(+), 11 deletions(-) --- base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4 change-id: 20261103-submit-sun4i-dma-callback-lifetime-v1-b6192060b76f Best regards, -- James Hilliard diff --git a/drivers/dma/sun4i-dma.c b/drivers/dma/sun4i-dma.c index 225e4a53502b..b92cd9c8676e 100644 --- a/drivers/dma/sun4i-dma.c +++ b/drivers/dma/sun4i-dma.c @@ -293,10 +293,20 @@ static int convert_buswidth(enum dma_slave_buswidth addr_width) return (addr_width >> 1); } +static void sun4i_dma_synchronize(struct dma_chan *chan) +{ + struct sun4i_dma_dev *priv = to_sun4i_dma_dev(chan->device); + struct sun4i_dma_vchan *vchan = to_sun4i_dma_vchan(chan); + + synchronize_irq(priv->irq); + vchan_synchronize(&vchan->vc); +} + static void sun4i_dma_free_chan_resources(struct dma_chan *chan) { struct sun4i_dma_vchan *vchan = to_sun4i_dma_vchan(chan); + sun4i_dma_synchronize(chan); vchan_free_chan_resources(&vchan->vc); } @@ -322,7 +332,7 @@ static struct sun4i_dma_pchan *find_and_use_pchan(struct sun4i_dma_dev *priv, spin_lock_irqsave(&priv->lock, flags); for_each_clear_bit_from(i, priv->pchans_used, max) { pchan = &pchans[i]; - pchan->vchan = vchan; + WRITE_ONCE(pchan->vchan, vchan); set_bit(i, priv->pchans_used); break; } @@ -339,7 +349,7 @@ static void release_pchan(struct sun4i_dma_dev *priv, spin_lock_irqsave(&priv->lock, flags); - pchan->vchan = NULL; + WRITE_ONCE(pchan->vchan, NULL); clear_bit(nr, priv->pchans_used); spin_unlock_irqrestore(&priv->lock, flags); @@ -970,13 +980,13 @@ static int sun4i_dma_terminate_all(struct dma_chan *chan) { struct sun4i_dma_dev *priv = to_sun4i_dma_dev(chan->device); struct sun4i_dma_vchan *vchan = to_sun4i_dma_vchan(chan); - struct sun4i_dma_pchan *pchan = vchan->pchan; + struct sun4i_dma_pchan *pchan; + struct virt_dma_desc *vd, *tmp; LIST_HEAD(head); unsigned long flags; spin_lock_irqsave(&vchan->vc.lock, flags); - vchan_get_all_descriptors(&vchan->vc, &head); - spin_unlock_irqrestore(&vchan->vc.lock, flags); + pchan = vchan->pchan; /* * Clearing the configuration register will halt the pchan. Interrupts @@ -991,10 +1001,20 @@ static int sun4i_dma_terminate_all(struct dma_chan *chan) release_pchan(priv, pchan); } - spin_lock_irqsave(&vchan->vc.lock, flags); /* Clear these so the vchan is usable again */ vchan->processing = NULL; vchan->pchan = NULL; + vchan->contract = NULL; + + /* A tasklet may already be using the active cyclic descriptor. */ + vchan_get_all_descriptors(&vchan->vc, &head); + list_for_each_entry_safe(vd, tmp, &head, node) { + if (!to_sun4i_dma_contract(vd)->is_cyclic) + continue; + + list_del(&vd->node); + vchan_terminate_vdesc(vd); + } spin_unlock_irqrestore(&vchan->vc.lock, flags); vchan_dma_desc_free_list(&vchan->vc, &head); @@ -1128,9 +1148,15 @@ static irqreturn_t sun4i_dma_interrupt(int irq, void *dev_id) for_each_set_bit(bit, &pendirq, 32) { pchan = &pchans[bit >> 1]; - vchan = pchan->vchan; + vchan = READ_ONCE(pchan->vchan); if (!vchan) /* a terminated channel may still interrupt */ continue; + + spin_lock(&vchan->vc.lock); + if (vchan->pchan != pchan || !vchan->processing) { + spin_unlock(&vchan->vc.lock); + continue; + } contract = vchan->contract; /* @@ -1138,8 +1164,6 @@ static irqreturn_t sun4i_dma_interrupt(int irq, void *dev_id) * interrupt (odd bit) */ if (bit & 1) { - spin_lock(&vchan->vc.lock); - /* * Move the promise into the completed list now that * we're done with it @@ -1173,8 +1197,6 @@ static irqreturn_t sun4i_dma_interrupt(int irq, void *dev_id) disableirqs |= BIT(bit); release_pchan(priv, pchan); } - - spin_unlock(&vchan->vc.lock); } else { /* Half done interrupt */ if (contract->is_cyclic) @@ -1182,6 +1204,7 @@ static irqreturn_t sun4i_dma_interrupt(int irq, void *dev_id) else disableirqs |= BIT(bit); } + spin_unlock(&vchan->vc.lock); } /* Disable the IRQs for events we handled */ @@ -1276,6 +1299,7 @@ static int sun4i_dma_probe(struct platform_device *pdev) priv->slave.device_prep_dma_cyclic = sun4i_dma_prep_dma_cyclic; priv->slave.device_config = sun4i_dma_config; priv->slave.device_terminate_all = sun4i_dma_terminate_all; + priv->slave.device_synchronize = sun4i_dma_synchronize; priv->slave.copy_align = 2; priv->slave.src_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_1_BYTE) | BIT(DMA_SLAVE_BUSWIDTH_2_BYTES) |