Cascoda / ca8210-linux

Linux kernel driver for direct SPI communication with Cascoda's CA-8210 IEEE 802.15.4 transceiver
BSD 3-Clause "New" or "Revised" License
5 stars 5 forks source link

Restructure IRQ to send to a workqueue #14

Closed CiaranWoodward closed 7 years ago

CiaranWoodward commented 7 years ago

There were a few things going on in the IRQ routine which are not supposed to occur in a context which can't sleep. Moving to a workqueue instead fixes this, and under test does seem to improve stability, although futher testing is needed.

Furthermore, in a context which can sleep, controlling resource access is simpler, so should be able to provide better stability in future.

Any comments or suggestions?