Re: IIC locking when shutting down

2020-12-05 Thread Michael van Elst
j...@coris.org.uk (Julian Coleman) writes: >It looks like every call to iic_acquire_bus() will need to handle the error >return. We seem to do this in a few drivers, but not all of them. However, >is there a simple solution that I'm missing? Since iic_acquire_bus was changed to allow failures,

IIC locking when shutting down

2020-12-05 Thread Julian Coleman
Hi all, When testing some iic changes, we saw this panic on shutdown (on a 4 CPU system): [ 356534.4468099] Skipping crash dump on recursive panic [ 356534.5093055] panic: lock error: Mutex: mutex_vector_exit,747: assertion failed: MUTEX_OWNER(mtx->mtx_owner) == curthread: lock 0x1037806c8 c