Skip to content

Commit

Permalink
libertas_spi: Use workqueue in hw_host_to_card
Browse files Browse the repository at this point in the history
Use workqueue to perform SPI xfers, it's necessary to fix
nasty "BUG: scheduling while atomic", because
spu_write() calls spi_sync() and spi_sync() may sleep, but
hw_host_to_card() callback can be called from atomic context.
Remove kthread completely, workqueue now does its job.
Restore intermediate buffers which were removed in commit
86c34fe that introduced
mentioned bug.

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Vasily Khoruzhick authored and John W. Linville committed Feb 3, 2011
1 parent dbd9830 commit 16f775b
Showing 1 changed file with 239 additions and 129 deletions.
Loading

0 comments on commit 16f775b

Please sign in to comment.