Re: [RFC PATCH v1 3/5] media: tegra-video: Move PM runtime handle to streaming

From: Dmitry Osipenko
Date: Tue Apr 28 2020 - 10:05:43 EST


28.04.2020 07:20, Sowjanya Komatineni ÐÐÑÐÑ:
> + ret = csi->ops->csi_streaming(csi_chan, chan->pg_mode, enable);
>
> - return csi->ops->csi_streaming(csi_chan, chan->pg_mode, enable);
> + if ((ret < 0 || !enable) && atomic_dec_and_test(&csi->clk_refcnt))
> + pm_runtime_put_sync(csi->dev);

There shouldn't be a need to sync the RPM here, hence just
pm_runtime_put(csi->dev). Same for the VI.