I am having problem binding a SPI device LSM6DSO. Stepping through the code and found z_device_is_ready() return false because dev->state->init_res NOT equal to 0
bool z_device_is_ready(const struct device dev)
{
/
* if an invalid device pointer is passed as argument, this call
* reports the device as not ready for usage.
*/
if (dev == NULL) {
return false;
}
return dev->state->initialized && (dev->state->init_res == 0U);
dev->state->init_res = 5 as indicated in the following watch window
