Commit 448406e
committed
drm/etnaviv: avoid runtime PM usage in etnaviv_gpu_bind
Nothing in this callpath actually touches the GPU, so there is no reason
to get it out of suspend state here. Only if runtime PM isn't enabled at
all we must make sure to enable the clocks, so the GPU init routine can
access the GPU later on.
This also removes the need to guard against the state where the driver
isn't fully initialized yet in the runtime PM resume handler.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>1 parent 7cb5449 commit 448406e
1 file changed
Lines changed: 5 additions & 10 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1743 | 1743 | | |
1744 | 1744 | | |
1745 | 1745 | | |
1746 | | - | |
1747 | | - | |
1748 | | - | |
| 1746 | + | |
1749 | 1747 | | |
1750 | | - | |
1751 | | - | |
1752 | | - | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
1753 | 1751 | | |
1754 | 1752 | | |
1755 | 1753 | | |
| |||
1761 | 1759 | | |
1762 | 1760 | | |
1763 | 1761 | | |
1764 | | - | |
1765 | | - | |
1766 | | - | |
1767 | 1762 | | |
1768 | 1763 | | |
1769 | 1764 | | |
| |||
1944 | 1939 | | |
1945 | 1940 | | |
1946 | 1941 | | |
1947 | | - | |
| 1942 | + | |
1948 | 1943 | | |
1949 | 1944 | | |
1950 | 1945 | | |
| |||
0 commit comments