Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media: bcm2835-unicam: Correctly handle error states on stream on/off
On a failure in start_streaming(), the error code would not propagate to the calling function on all conditions. This would cause the userland caller to not know of the failure. Additionally, clk_disable_unprepare() was 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. 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>
- Loading branch information