aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorMiquel Raynal <[email protected]>2023-07-31 12:14:39 +0200
committerVinod Koul <[email protected]>2023-08-07 00:01:41 +0530
commit96891e90d1256b569b1c183e7c9a0cfc568fa3b0 (patch)
tree1f32e1a5da7c2cee28ba11533924d1233d6f9b9c /tools/perf/scripts/python/task-analyzer.py
parent74d7221c1f9c9f3a8c316a3557ca7dca8b99d14c (diff)
dmaengine: xilinx: xdma: Fix interrupt vector setting
A couple of hardware registers need to be set to reflect which interrupts have been allocated to the device. Each register is 32-bit wide and can receive four 8-bit values. If we provide any other interrupt number than four, the irq_num variable will never be 0 within the while check and the while block will loop forever. There is an easy way to prevent this: just break the for loop when we reach "irq_num == 0", which anyway means all interrupts have been processed. Cc: [email protected] Fixes: 17ce252266c7 ("dmaengine: xilinx: xdma: Add xilinx xdma driver") Signed-off-by: Miquel Raynal <[email protected]> Acked-by: Lizhi Hou <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions