> > Assuming that recover_bus is not called on BUS_BUSY but on TIMEOUTs,,
> > this should work?
> How do you differentiate these two? You're machine boots and sees sda
> being low. How long should it wait for action on sda or scl until it can
> diagnose a timeout?

Timeout value. I consider I2C a static bus with no hotplugging. So,
either we have seen a START bit and know we are inside a transaction or
SDA is low because a slave is in an unknown state.

> > This scl check should not depend on skip_sda_polling, or?
> Well right. But note this might also just be a slave doing clock
> streching.

Which is a good reason to exit recovery.

Thanks,

   Wolfram

-- 
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

Attachment: signature.asc
Description: Digital signature

Reply via email to