[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250317135340.382532-1-csokas.bence@prolan.hu>
Date: Mon, 17 Mar 2025 14:53:36 +0100
From: Bence Csókás <csokas.bence@...lan.hu>
To:
CC: Bence Csókás <csokas.bence@...lan.hu>, Mark Brown
<broonie@...nel.org>, Vinod Koul <vkoul@...nel.org>, "Rafael J . Wysocki"
<rafael@...nel.org>, Len Brown <len.brown@...el.com>, Pavel Machek
<pavel@....cz>, Greg Kroah-Hartman <gregkh@...uxfoundation.org>, "Nicolas
Ferre" <nicolas.ferre@...rochip.com>, Alexandre Belloni
<alexandre.belloni@...tlin.com>, Claudiu Beznea <claudiu.beznea@...on.dev>,
Tudor Ambarus <tudor.ambarus@...aro.org>, Varshini Rajendran
<varshini.rajendran@...rochip.com>, Alexander Dahl <ada@...rsis.com>,
<linux-spi@...r.kernel.org>, <linux-arm-kernel@...ts.infradead.org>,
<dmaengine@...r.kernel.org>, <linux-pm@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
Subject: [PATCH v4 0/2] Add `devm_dma_request_chan()` to simplify probe path in atmel-quadspi.c
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 adds the new
`devm_dma_request_chan()` function. Patch 2 then uses this APIs to
simplify the probe() function.
Change in v4:
* split PM imbalance fix [1] and DMA cleanup [this series]
This series is to be applied after the PM imbalance fix [1].
[1]
https://lore.kernel.org/linux-kernel/20250317093445.361821-1-csokas.bence@prolan.hu/
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/
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 | 44 ++++++++++---------------------------
include/linux/dmaengine.h | 7 ++++++
3 files changed, 48 insertions(+), 33 deletions(-)
--
2.48.1
Powered by blists - more mailing lists