Hi @VincasD,
I hope you are doing well
Please look into the below information.
The "resource temporarily unavailable" error can be caused due to several reasons.
->It may mean some exact resource or process tries to access that pin. Please check the device tree if the same IO expander pin has been assigned to any other resource or not.
->The fault may be caused due to the bandwidth, power, or a buggy driver. Please check the power/voltage sufficiently configured. Please try with the latest kernel as well.
->Any dependency i.e. module, driver, library, etc. has been removed.
->The "resource temporarily unavailable" error is related to error -11(EAGAIN) which can occur if attempted for a non-blocking read. As this error is coming randomly, to debug the cause of the error one can use Strace.
I hope this information helps you.
Thanks & Regards,
Sanket Parekh