Linux kernel and device drivers for NXP i.MX platforms
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: Frank.Li@oss.nxp.com
Cc: Frank.Li@kernel.org, imx@lists.linux.dev
Subject: Re: [PATCH v2 1/2] spi: use dmaengine public API instead of raw ops
Date: Wed, 30 Sep 2026 14:10:18 +0000	[thread overview]
Message-ID: <20260930141018.C22091F0089E@smtp.kernel.org> (raw)
In-Reply-To: <20260930140257.490019-1-Frank.Li@oss.nxp.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dmaengine: commit message falsely claims dma_async_issue_pending provides locking and debug checks
--

commit c24ebb64bdaa5d560933be18b6d65ba2f18df08e
Author: Frank Li <Frank.Li@nxp.com>

spi: use dmaengine public API instead of raw ops

This patch replaces direct calls to the internal DMA device ops
with the public dma_async_issue_pending() wrapper in the at91-usart
and atmel SPI drivers.

> Replace direct calls to the internal DMA device ops
> device->device_issue_pending() with the proper public DMA engine wrappers:
> dma_async_issue_pending().
> 
> Drivers must not call device ops directly; the wrappers provide locking,
> debug checks, and a stable interface that hides internal implementation
> details of the DMA controller driver.

[Severity: Medium]
Is this description of the wrapper accurate?

Looking at the implementation of dma_async_issue_pending() in
include/linux/dmaengine.h, it appears to be a direct inline call:

static inline void dma_async_issue_pending(struct dma_chan *chan)
{
        chan->device->device_issue_pending(chan);
}

Since this function directly calls the device ops without taking any locks
or performing additional debug checks, could the commit message be updated
to accurately reflect the actual semantics of the wrapper?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260930140257.490019-1-Frank.Li@oss.nxp.com?part=1

  parent reply	other threads:[~2026-09-30 14:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-30 14:02 [PATCH v2 1/2] spi: use dmaengine public API instead of raw ops Frank.Li
2026-09-30 14:02 ` [PATCH v2 2/2] spi: use dmaengine_get_dma_device() instead of chan->device->dev Frank.Li
2026-09-30 14:10 ` sashiko-bot [this message]
2026-10-01 14:21 ` [PATCH v2 1/2] spi: use dmaengine public API instead of raw ops Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260930141018.C22091F0089E@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=Frank.Li@kernel.org \
    --cc=Frank.Li@oss.nxp.com \
    --cc=imx@lists.linux.dev \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox