summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorShengzhuo Wei <me@cherr.cc>2026-08-27 23:43:02 +0800
committerAndi Shyti <andi.shyti@kernel.org>2026-09-20 09:40:28 +0200
commite9f03b9625e2eeaca357b065c92d5b14064a1583 (patch)
tree1ee69a3d3d614f3c7651264b7943333b02bb421f /tools/perf/scripts/python/bin
parentf7eeb1af8537b05953fb1c88ab8b59d94059a381 (diff)
downloadlinux-next-e9f03b9625e2eeaca357b065c92d5b14064a1583.tar.gz
linux-next-e9f03b9625e2eeaca357b065c92d5b14064a1583.zip
i2c: imx: release DMA channels on probe error
i2c_imx_dma_request() acquires exclusive tx/rx DMA channels and is optional: on errors other than -EPROBE_DEFER the driver falls back to PIO mode and probe continues. If i2c_add_numbered_adapter() then fails, probe returns through clk_notifier_unregister without releasing the channels, because the remove callback is not invoked after a failed probe. Release the channels on the probe error path, mirroring i2c_imx_remove(). Fixes: ce1a78840ff7 ("i2c: imx: add DMA support for freescale i2c driver") Assisted-by: GLM:5.3 Signed-off-by: Shengzhuo Wei <me@cherr.cc> Cc: <stable@vger.kernel.org> # v3.19+ Reviewed-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Andi Shyti <andi.shyti@kernel.org> Link: https://patch.msgid.link/20260827-i2c-dma-channel-leak-v1-2-271d4adc03a0@cherr.cc
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions