techpack: camera: add a retry mechanism to pacify gyro initial

The camera sensor power up sequence is too close(1 ms) to cause
the camera gyro sensor initialization failed which is writing
the first address to initialize gyro related settings.
We didn’t add the delay of time to pacify the initial of gyro settings
after the camera I/O powered on because this change will impact
the camera launch time. It may be a reason that we can’t correctly
write the first data into the gyro sensor.

In most cases, this design is unlikely to go wrong and not easy to
reproduce this issue. But actually we do see such corner cases in some bugs.

Add a retry mechanism for gyro sensor first addr writing to
avoid the initial failed issue.

And we should treat the original ACQUIRE camera
process as an existing and reasonable process.

Bug: 163850320
Test: CTS/ITS
Change-Id: I11001c81f5cf871ca9bef866ec34397112016d6b
Signed-off-by: Nick Chung <nickchung@google.com>
1 file changed
tree: 15183678ffd2f731cd2d13d75361edae66f7bb85
  1. config/
  2. drivers/
  3. include/
  4. Makefile