31.07.2020 18:46, Sowjanya Komatineni ÐÐÑÐÑ:
On 7/31/20 4:39 AM, Dmitry Osipenko wrote:Could you please show how the full call chain looks like? It's not clear
31.07.2020 12:02, Sowjanya Komatineni ÐÐÑÐÑ:Nothing will happen as during stream enable csi receiver is kept ready.
...
@@ -249,13 +249,47 @@ static int tegra_csi_enable_stream(structWhat would happen if CSI stream is enabled and then immediately disabled
v4l2_subdev *subdev)
ÂÂÂÂÂÂÂÂÂ return ret;
ÂÂÂÂÂ }
 + if (csi_chan->mipi) {
+ÂÂÂÂÂÂÂ ret = tegra_mipi_enable(csi_chan->mipi);
+ÂÂÂÂÂÂÂ if (ret < 0) {
+ÂÂÂÂÂÂÂÂÂÂÂ dev_err(csi->dev,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ "failed to enable MIPI pads: %d\n", ret);
+ÂÂÂÂÂÂÂÂÂÂÂ goto rpm_put;
+ÂÂÂÂÂÂÂ }
+
+ÂÂÂÂÂÂÂ /*
+ÂÂÂÂÂÂÂÂ * CSI MIPI pads PULLUP, PULLDN and TERM impedances need to
+ÂÂÂÂÂÂÂÂ * be calibrated after power on.
+ÂÂÂÂÂÂÂÂ * So, trigger the calibration start here and results will
+ÂÂÂÂÂÂÂÂ * be latched and applied to the pads when link is in LP11
+ÂÂÂÂÂÂÂÂ * state during start of sensor streaming.
+ÂÂÂÂÂÂÂÂ */
+ÂÂÂÂÂÂÂ ret = tegra_mipi_start_calibration(csi_chan->mipi);
+ÂÂÂÂÂÂÂ if (ret < 0) {
+ÂÂÂÂÂÂÂÂÂÂÂ dev_err(csi->dev,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ "failed to start MIPI calibration: %d\n", ret);
+ÂÂÂÂÂÂÂÂÂÂÂ goto disable_mipi;
+ÂÂÂÂÂÂÂ }
without enabling camera sensor?
But actual capture will not happen during that point.
to me what keeps CSI stream "ready".