Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 17767

Re: Preventing Cypress GPIO expander from going to sleep mode.

$
0
0

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, https://communities.intel.com/message/249257#249257.

 

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, https://communities.intel.com/message/251808#251808.

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


Viewing all articles
Browse latest Browse all 17767

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>