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)
commit3f3007afda8bb731a3422430752ca91ddc102e4d
tree8d9f169271c95dc0d8460905d2ff3e153c981cac
parentf58fe336009f451748c1c337f35130a320ef923d
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
This page took 0.025204 seconds and 5 git commands to generate.