Re: [PATCH v8 08/10] gpu: host1x: mipi: Keep MIPI clock enabled till calibration is done

From: Sowjanya Komatineni
Date: Thu Aug 06 2020 - 12:47:57 EST



On 8/6/20 9:37 AM, Dmitry Osipenko wrote:
06.08.2020 19:13, Dmitry Osipenko пишет:
06.08.2020 18:59, Sowjanya Komatineni пишет:
..
We cant use active status check for specific pads under calibration.
This is common bit for all pads.
I'm not sure why this is a problem.

IIUC, the start_calibration() should wait for the MIPI_CAL_STATUS_ACTIVE
and finish_calibration() should wait for MIPI_AUTO_CAL_DONE_CSIA/B.

As soon as START bit it set, FSM will set ACTIVE = 1

There is no added advantage of waiting for ACTIVE to be in start_calibration()