Commit 411efa1
committed
drm/vc4: hdmi: Move the HSM clock enable to runtime_pm
In order to access the HDMI controller, we need to make sure the HSM
clock is enabled. If we were to access it with the clock disabled, the
CPU would completely hang, resulting in an hard crash.
Since we have different code path that would require it, let's move that
clock enable / disable to runtime_pm that will take care of the
reference counting for us.
Fixes: 4f6e3d6 ("drm/vc4: Add runtime PM support to the HDMI encoder driver")
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210525091059.234116-3-maxime@cerno.tech1 parent c336a5e commit 411efa1
1 file changed
+30
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
476 | | - | |
477 | 476 | | |
478 | 477 | | |
479 | 478 | | |
| |||
784 | 783 | | |
785 | 784 | | |
786 | 785 | | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | 786 | | |
795 | 787 | | |
796 | 788 | | |
| |||
801 | 793 | | |
802 | 794 | | |
803 | 795 | | |
804 | | - | |
805 | 796 | | |
806 | 797 | | |
807 | 798 | | |
808 | 799 | | |
809 | 800 | | |
810 | 801 | | |
811 | 802 | | |
812 | | - | |
813 | 803 | | |
814 | 804 | | |
815 | 805 | | |
| |||
1929 | 1919 | | |
1930 | 1920 | | |
1931 | 1921 | | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
1932 | 1945 | | |
1933 | 1946 | | |
1934 | 1947 | | |
| |||
2165 | 2178 | | |
2166 | 2179 | | |
2167 | 2180 | | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
2168 | 2187 | | |
2169 | 2188 | | |
2170 | 2189 | | |
2171 | 2190 | | |
2172 | 2191 | | |
2173 | 2192 | | |
| 2193 | + | |
2174 | 2194 | | |
2175 | 2195 | | |
0 commit comments