]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: w5100: enable to support sleepable register access interface
authorAkinobu Mita <akinobu.mita@gmail.com>
Thu, 14 Apr 2016 15:11:31 +0000 (00:11 +0900)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 Apr 2016 22:30:27 +0000 (18:30 -0400)
commitbf2c6b90b385c163ad9c48fe97f5dc6af0091de6
treefa21649a3ea3205ab5234710275b8bbcc24d4c8a
parent850576cfede986f0683bed25e34bc15712ffb463
net: w5100: enable to support sleepable register access interface

SPI transfer routines are callable only from contexts that can sleep.

This adds ability to tell the core driver that the interface mode
cannot access w5100 register on atomic contexts.  In this case,
workqueue and threaded irq are required.

This also corrects timeout period waiting for command register to be
automatically cleared because the latency of the register access with
SPI transfer can be interfered by other contexts.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Mike Sinkovsky <msink@permonline.ru>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/wiznet/w5100.c
drivers/net/ethernet/wiznet/w5100.h