Hi Diego,
Thanks a lot. Yes I tried it, It gives a kernel warning, if gpio_set_value() is used, instead requires use of gpio_set_value_cansleep().
This issue was reported in the following thread,
.
If I clear the can_sleep flag in the cy8c9540a_probe() the kernel is not throwing any warning for gpio_set_value(), but I am not able to verify as I am facing SPI read problems as listed here,
.Once SPI read error is fixed I can go ahead with this issue.
My concern is, Is clearing the flag sufficient, It's there to prevent other drivers from using non sleep mode. It wont prevent the [i2c or mux ] driver from going to sleep.
I want to prevent the IC from sleeping so that, I can still use gpio_set_value() function. The external hardware interfaced [AD7606] requires this instead of gpio_set_value_cansleep() for Buffered data acquisition. The Analog Devices team reported that buffered capture won't work with can sleep option.
If I use can sleep API the timing between the 2 captured data will not be consistent.
Regards
Simba