我正在为linux编写一个SPI驱动程序。一些相关文件是http://www.mjmwired.net/kernel/Documentation/spi/spi-summary和http://ww2.cs.fsu.edu/~rosentha/linux/2.6.26.5/docs/DocBook/kernel-api/ch25.html。SPI完成回调处理程序
大部分时间传输成功执行,我的完成回调被调用。当我访问消息的status
时,我总是看到零(表示)。 actual_length
是112(我的传输长度)根据需要。
但是,经过一段时间后,可能会发生与actual_length == 0
的回调。所有后续调用甚至有actual_length == 224
。在关闭spi设备之后,回调仍然会被调用,消息长度会迅速上升(每次调用,它会增加112),尽管我没有再打spi_async
。
任何人都可以提供一个提示什么可能会导致此行为?
非常感谢!