Re: [PATCH 1/1] cadence: csi2rx: Fix csi2rx_start error handling

2018-05-11 Thread Maxime Ripard
On Wed, May 09, 2018 at 11:31:30PM +0300, Sakari Ailus wrote: > The clocks enabled by csi2rx_start function are intended to be disabled in > an error path but there are two issues: > > 1) the loop condition is always true and > > 2) the first clock disabled is the the one enabling of which failed

[PATCH 1/1] cadence: csi2rx: Fix csi2rx_start error handling

2018-05-09 Thread Sakari Ailus
The clocks enabled by csi2rx_start function are intended to be disabled in an error path but there are two issues: 1) the loop condition is always true and 2) the first clock disabled is the the one enabling of which failed. Fix these two bugs by changing the loop condition as well as only disab