s390/zcrypt: add base code for cca crypto card info support
authorHarald Freudenberger <freude@linux.ibm.com>
Tue, 11 Jun 2019 12:10:47 +0000 (14:10 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 29 Jul 2019 16:14:17 +0000 (18:14 +0200)
commit94bbd34e51bc7809357e24e4011b169d321a8272
tree38682de5d0f5425f9f591f4698ba0fb4751c9788
parentefc598e6c8a93491868ef7dc7c6fd28508898af2
s390/zcrypt: add base code for cca crypto card info support

This patch widens the information held for cca crypto apqns.
Currently the current and old master key verification pattern
is used by the existing code. Now the new master key registers
mkvp, the 8 byte serial number and state info about each master
key register is part of the cca info cache.

In a next step this information will be used to provide some
additional attributes in sysfs for each CCA crypto adapter.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Ingo Franzki <ifranzki@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/crypto/zcrypt_ccamisc.c