Commit 65e08c4
committed
media: bcm2835-unicam: Return early from stop_streaming() if stopped
clk_disable_unprepare() is called unconditionally in stop_streaming().
This is incorrect in the cases where start_streaming() fails, and
unprepares all clocks as part of the failure cleanup. To avoid this,
ensure that clk_disable_unprepare() is only called in stop_streaming()
if the clocks are in a prepared state.
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>1 parent 92d8835 commit 65e08c4
1 file changed
+9
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
| 429 | + | |
| 430 | + | |
429 | 431 | | |
430 | 432 | | |
431 | 433 | | |
| |||
1724 | 1726 | | |
1725 | 1727 | | |
1726 | 1728 | | |
| 1729 | + | |
1727 | 1730 | | |
1728 | 1731 | | |
1729 | 1732 | | |
| |||
1750 | 1753 | | |
1751 | 1754 | | |
1752 | 1755 | | |
1753 | | - | |
1754 | | - | |
1755 | 1756 | | |
1756 | 1757 | | |
1757 | 1758 | | |
| |||
1762 | 1763 | | |
1763 | 1764 | | |
1764 | 1765 | | |
1765 | | - | |
1766 | | - | |
1767 | | - | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
1768 | 1769 | | |
1769 | | - | |
1770 | | - | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
1771 | 1773 | | |
1772 | 1774 | | |
1773 | 1775 | | |
| |||
0 commit comments