dmaengine: dw-axi-dmac: PM cleanup and reset control support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest3 patches 0 repliesNew
- v42 patches 0 repliesSuperseded
- v32 patches 2 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 2 patches | 0 replies | Superseded | |
| v1 | 2 patches | 4 replies | Superseded |
Changes in v5 from the cover letter
* Fix smatch warnings about inconsistent indentation in dma_chan_pause() and axi_chan_resume() functions.
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | dmaengine: dw-axi-dmac: simplify PM functions and use modern macrosdrivers/ | +9 | 0 replies | |
| 2/3 | dmaengine: dw-axi-dmac: add reset control supportdrivers/ drivers/ | +43 | 0 replies | |
| 3/3 | dmaengine: dw-axi-dmac: fix inconsistent indentation in pause/resume functionsdrivers/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.
Cover letter [PATCH v5 0/3] dmaengine: dw-axi-dmac: PM cleanup and reset control support
Hello maintainers and reviewers,
This patch series improves the dw-axi-dmac driver in two areas:
Patch 1 simplifies the power management code by using modern kernel macros and removing redundant wrapper functions, making the code more maintainable and aligned with current kernel practices.
Patch 2 adds proper reset control support to ensure reliable initialization and power management, handling resets during probe, remove, and suspend/resume operations.
For debugging, I used dev_info from the suspend/resume functions. Before pushing, I removed dev_info from the driver.
Suspend:
echo 0 > /sys/module/printk/parameters/console_suspend echo mem > /sys/power/state
...
[ 195.339311] dw_axi_dmac_platform 100NDA00.NDA-axi-dma: drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c axi_dma_suspend [ 195.350274] dw_axi_dmac_platform 100NDA00.NDA-axi-dma: drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c axi_dma_suspend [ 195.361223] dw_axi_dmac_platform 100NDA00.NDA-axi-dma: drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c axi_dma_suspend
...
Resume:
...
[ 200.669945] dw_axi_dmac_platform 100NDA00.NDA-axi-dma: drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c axi_dma_resume [ 200.680975] dw_axi_dmac_platform 100NDA00.NDA-axi-dma: drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c axi_dma_resume [ 200.692108] dw_axi_dmac_platform 100NDA00.NDA-axi-dma: drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c axi_dma_resume
...
Patch 3 resolves the following smatch warnings:drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:1237 dma_chan_pause() warn: inconsistent indenting drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:1284 axi_chan_resume() warn: inconsistent indenting
To check the fix of the warnings:
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j$(nproc) C=2 \
CHECK="../smatch/smatch -p=kernel" \
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.o--
Best regards,
Artem Shimko
ChangeLog:
v1:
* https://lore.kernel.org/all/[email protected]/T/#t
v2:
* https://lore.kernel.org/all/[email protected]/T/#u
v3:
* https://lore.kernel.org/all/[email protected]/T/#t
v4:
* https://lore.kernel.org/all/[email protected]/T/#t
v5:
* Fix smatch warnings about inconsistent indentation in dma_chan_pause() and axi_chan_resume() functions.
Artem Shimko (3):
dmaengine: dw-axi-dmac: simplify PM functions and use modern macros
dmaengine: dw-axi-dmac: add reset control support
dmaengine: dw-axi-dmac: fix inconsistent indentation in pause/resume
functions
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c | 90 +++++++++++-------- drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 1 + 2 files changed, 52 insertions(+), 39 deletions(-)
Signature · 1 line
2.43.0