]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
i3c: mipi-i3c-hci: Manage DMA deallocation via devres action
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 13 Jan 2026 07:26:48 +0000 (09:26 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 14 Jan 2026 16:21:09 +0000 (17:21 +0100)
commit29bf98a6346ad7a80136ba58116c2a0f8a3cb03f
tree6d64df7924af6efad69ddc97f0ddc815515aef44
parent11d17c2855bfc04550557017eae02e92f3eeab1c
i3c: mipi-i3c-hci: Manage DMA deallocation via devres action

The driver already uses devres for resource management, but the standard
resource-managed DMA allocation helpers cannot be used because they assume
the DMA device matches the managed device.

To address this, factor out the deallocation logic from hci_dma_cleanup()
into a new helper, hci_dma_free(), and register it as a devres action.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260113072702.16268-8-adrian.hunter@intel.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master/mipi-i3c-hci/dma.c