commit | 97fed795e70d97fb89ebd8c3efc30b33aa4ac1fa | [log] [tgz] |
---|---|---|
author | Alexander Aring <alex.aring@gmail.com> | Tue Oct 07 10:38:32 2014 +0200 |
committer | Marcel Holtmann <marcel@holtmann.org> | Sat Oct 25 07:56:23 2014 +0200 |
tree | 7a8549a6f79f4ae5870445b2edba86982590a218 | |
parent | 35e92a8e1b9058a5f7da271a7a60264a4888f4b9 [diff] |
at86rf230: fix enable_irq handling on async spi Sometimes the async state function is call in an context where the spi irq is diabled. This patch fix the handling to enable the irq when spi_async failed in the async state change calling chain. We do this by a context parameter irq_enable and evaluate this parameter when spi_async failed instead of returning spi_async errno. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>