Commit 0ac9c3d
dmaengine: qcom: bam_dma: fix runtime PM underflow
Commit dbad41e ("dmaengine: qcom: bam_dma: check if the runtime pm enabled")
caused unbalanced pm_runtime_get/put() calls when the bam is
controlled remotely. This commit reverts it and just enables pm_runtime
in all cases, the clk_* functions already just nop when the clock is NULL.
Also clean up a bit by removing unnecessary bamclk null checks.
Suggested-by: Stephan Gerhold <stephan@gerhold.net>
Fixes: dbad41e ("dmaengine: qcom: bam_dma: check if the runtime pm enabled")
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
Link: https://lore.kernel.org/r/20220629140559.118537-1-caleb.connolly@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>1 parent a7cd3cf commit 0ac9c3d
1 file changed
Lines changed: 11 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | | - | |
569 | 561 | | |
570 | 562 | | |
571 | 563 | | |
| |||
581 | 573 | | |
582 | 574 | | |
583 | 575 | | |
584 | | - | |
| 576 | + | |
585 | 577 | | |
586 | 578 | | |
587 | 579 | | |
| |||
784 | 776 | | |
785 | 777 | | |
786 | 778 | | |
787 | | - | |
| 779 | + | |
788 | 780 | | |
789 | 781 | | |
790 | 782 | | |
| |||
810 | 802 | | |
811 | 803 | | |
812 | 804 | | |
813 | | - | |
| 805 | + | |
814 | 806 | | |
815 | 807 | | |
816 | 808 | | |
| |||
919 | 911 | | |
920 | 912 | | |
921 | 913 | | |
922 | | - | |
| 914 | + | |
923 | 915 | | |
924 | 916 | | |
925 | 917 | | |
| |||
1037 | 1029 | | |
1038 | 1030 | | |
1039 | 1031 | | |
1040 | | - | |
| 1032 | + | |
1041 | 1033 | | |
1042 | 1034 | | |
1043 | 1035 | | |
| |||
1374 | 1366 | | |
1375 | 1367 | | |
1376 | 1368 | | |
1377 | | - | |
1378 | | - | |
1379 | | - | |
1380 | | - | |
1381 | | - | |
1382 | 1369 | | |
1383 | 1370 | | |
1384 | 1371 | | |
| |||
1462 | 1449 | | |
1463 | 1450 | | |
1464 | 1451 | | |
1465 | | - | |
1466 | | - | |
1467 | | - | |
1468 | | - | |
| 1452 | + | |
| 1453 | + | |
1469 | 1454 | | |
1470 | 1455 | | |
1471 | 1456 | | |
| |||
1475 | 1460 | | |
1476 | 1461 | | |
1477 | 1462 | | |
1478 | | - | |
1479 | | - | |
1480 | | - | |
1481 | | - | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
1482 | 1466 | | |
1483 | | - | |
1484 | | - | |
| 1467 | + | |
1485 | 1468 | | |
1486 | 1469 | | |
1487 | 1470 | | |
| |||
0 commit comments