drivers/dma/dmaengine.c | 30 +++++++++++++++++++++++ drivers/spi/atmel-quadspi.c | 48 ++++++++++--------------------------- include/linux/dmaengine.h | 7 ++++++ 3 files changed, 50 insertions(+), 35 deletions(-)
The probe function of the atmel-quadspi driver got quite convoluted, especially since the addition of SAMA7G5 support, that was forward-ported from an older vendor kernel. To alleivate this - and similar problems in the future - an effort was made to migrate as many functions as possible, to their devm_ managed counterparts. Patch 1/2 adds the new `devm_dma_request_chan()` function. Patch 2/2 then uses this APIs to simplify the probe() function. Change in v4: * split PM imbalance fix (now merged) and DMA cleanup (this series) Change in v6: * rebase to spi/for-next Change in v7: * rebase to dma/next [1] commit 3c018bf5a0ee ("dmaengine: idxd: Remove unused pointer and macro") Links to previous versions: pre-series: https://lore.kernel.org/linux-kernel/20241222141427.819222-1-csokas.bence@prolan.hu/ https://lore.kernel.org/linux-kernel/20250114222851.1023194-1-csokas.bence@prolan.hu/ v1: https://lore.kernel.org/linux-kernel/20250115160244.1102881-1-csokas.bence@prolan.hu/ v2: https://lore.kernel.org/linux-kernel/20250124085221.766303-8-csokas.bence@prolan.hu/ v3: https://lore.kernel.org/linux-kernel/20250207124802.165408-1-csokas.bence@prolan.hu/ v4: https://lore.kernel.org/lkml/20250317135340.382532-1-csokas.bence@prolan.hu/ v5: https://lore.kernel.org/lkml/20250505184936.312274-1-csokas.bence@prolan.hu v6: https://lore.kernel.org/lkml/20250515083132.255410-1-csokas.bence@prolan.hu Bence Csókás (2): dma: Add devm_dma_request_chan() spi: atmel-quadspi: Use `devm_dma_request_chan()` drivers/dma/dmaengine.c | 30 +++++++++++++++++++++++ drivers/spi/atmel-quadspi.c | 48 ++++++++++--------------------------- include/linux/dmaengine.h | 7 ++++++ 3 files changed, 50 insertions(+), 35 deletions(-) base-commit: 19272b37aa4f83ca52bdf9c16d5d81bdd1354494 -- 2.43.0
On Tue, 10 Jun 2025 10:22:52 +0200, Bence Csókás wrote: > The probe function of the atmel-quadspi driver got quite convoluted, > especially since the addition of SAMA7G5 support, that was forward-ported > from an older vendor kernel. To alleivate this - and similar problems in > the future - an effort was made to migrate as many functions as possible, > to their devm_ managed counterparts. Patch 1/2 adds the new > `devm_dma_request_chan()` function. Patch 2/2 then uses this APIs to > simplify the probe() function. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [1/2] dma: Add devm_dma_request_chan() (no commit info) [2/2] spi: atmel-quadspi: Use `devm_dma_request_chan()` commit: 2555691165a0285a4617230fed859f20dcc51608 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark
On Tue, 10 Jun 2025 10:22:52 +0200, Bence Csókás wrote: > The probe function of the atmel-quadspi driver got quite convoluted, > especially since the addition of SAMA7G5 support, that was forward-ported > from an older vendor kernel. To alleivate this - and similar problems in > the future - an effort was made to migrate as many functions as possible, > to their devm_ managed counterparts. Patch 1/2 adds the new > `devm_dma_request_chan()` function. Patch 2/2 then uses this APIs to > simplify the probe() function. > > [...] Applied, thanks! [1/2] dma: Add devm_dma_request_chan() commit: 08bf1663c21a3e815eda28fa242d84c945ca3b94 [2/2] spi: atmel-quadspi: Use `devm_dma_request_chan()` (no commit info) Best regards, -- ~Vinod
On Tue, Jun 10, 2025 at 10:22:52AM +0200, Bence Csókás wrote: > to their devm_ managed counterparts. Patch 1/2 adds the new > `devm_dma_request_chan()` function. Patch 2/2 then uses this APIs to > simplify the probe() function. I'm not copied on patch 1, please let me know if/when there's some progress there.
On 10-06-25, 12:49, Mark Brown wrote: > On Tue, Jun 10, 2025 at 10:22:52AM +0200, Bence Csókás wrote: > > > to their devm_ managed counterparts. Patch 1/2 adds the new > > `devm_dma_request_chan()` function. Patch 2/2 then uses this APIs to > > simplify the probe() function. > > I'm not copied on patch 1, please let me know if/when there's some > progress there. You can pull in this tag for the dependency The following changes since commit 19272b37aa4f83ca52bdf9c16d5d81bdd1354494: Linux 6.16-rc1 (2025-06-08 13:44:43 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git tags/dmaengine_devm_api for you to fetch changes up to 08bf1663c21a3e815eda28fa242d84c945ca3b94: dmaengine: Add devm_dma_request_chan() (2025-06-26 15:18:04 -0700) ---------------------------------------------------------------- dmaengine: tag for devm api ---------------------------------------------------------------- Bence Csókás (1): dmaengine: Add devm_dma_request_chan() drivers/dma/dmaengine.c | 30 ++++++++++++++++++++++++++++++ include/linux/dmaengine.h | 7 +++++++ 2 files changed, 37 insertions(+) Thanks -- ~Vinod
On Tue, 10 Jun 2025 10:22:52 +0200, Bence Csókás wrote: > The probe function of the atmel-quadspi driver got quite convoluted, > especially since the addition of SAMA7G5 support, that was forward-ported > from an older vendor kernel. To alleivate this - and similar problems in > the future - an effort was made to migrate as many functions as possible, > to their devm_ managed counterparts. Patch 1/2 adds the new > `devm_dma_request_chan()` function. Patch 2/2 then uses this APIs to > simplify the probe() function. > > [...] Applied, thanks! [1/2] dma: Add devm_dma_request_chan() commit: 56137a53f8ebb400f4098ca26ef18934e9a4de45 Best regards, -- ~Vinod
© 2016 - 2025 Red Hat, Inc.