]> git.baikalelectronics.ru Git - kernel.git/commit
s390/zcrypt: introduce state machine for the AP bus
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 14 Sep 2015 15:01:23 +0000 (17:01 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 14 Oct 2015 12:32:23 +0000 (14:32 +0200)
commitee408a39a206da20b69359bc9053d10d4ea234ff
tree8d9f169271c95dc0d8460905d2ff3e153c981cac
parent74bd2d2fcfe20588d293123ab194b5ff32d4aa2d
s390/zcrypt: introduce state machine for the AP bus

Replace the two fields 'unregistered' and 'reset' with a device
state with 5 possible values. Introduce two events for the AP devices,
device poll and device timeout. With the state machine it is easier
to deal with device initialization and suspend/resume. Device polling
is simpler as well, the arkane 'flags' passing is gone.

Reviewd-by: Ingo Tuchscherer <ingo.tuchscherer@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/ap_bus.c
drivers/s390/crypto/ap_bus.h