Commit ba9ea6b
committed
ASoC: mediatek: mt8183: Fix probe resource cleanup
Cássio Gabriel <cassiogabrielcontato@gmail.com> says:
The MT8183 AFE probe has two cleanup gaps that match issues
recently fixed in newer MediaTek AFE drivers.
First, reserved memory assigned with of_reserved_mem_device_init()
is never released on driver removal or later probe failures.
Second, the probe-time runtime PM resume used before reinitializing
the regmap cache is unchecked, and a regmap_reinit_cache() failure
skips the temporary PM put.
Fix both issues with a devm reserved-memory release action and
checked runtime PM resume handling.
Link: https://patch.msgid.link/20260527-asoc-mt8183-probe-cleanup-v1-0-4f4f5593c8d1@gmail.com1 file changed
Lines changed: 19 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
766 | 766 | | |
767 | 767 | | |
768 | 768 | | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
769 | 774 | | |
770 | 775 | | |
771 | 776 | | |
| |||
794 | 799 | | |
795 | 800 | | |
796 | 801 | | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
797 | 808 | | |
798 | 809 | | |
799 | 810 | | |
| |||
833 | 844 | | |
834 | 845 | | |
835 | 846 | | |
836 | | - | |
837 | | - | |
838 | | - | |
| 847 | + | |
839 | 848 | | |
840 | | - | |
| 849 | + | |
841 | 850 | | |
842 | 851 | | |
843 | 852 | | |
| 853 | + | |
844 | 854 | | |
845 | 855 | | |
846 | 856 | | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
847 | 862 | | |
848 | 863 | | |
849 | 864 | | |
| |||
0 commit comments