]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390/zcrypt: Enable AUTOSEL_DOM for CCA serialnr sysfs attribute
authorHarald Freudenberger <freude@linux.ibm.com>
Fri, 27 Feb 2026 13:30:51 +0000 (14:30 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Sat, 7 Mar 2026 21:41:10 +0000 (22:41 +0100)
commit598bbefa8032cc58b564a81d1ad68bd815c8dc0f
tree5cfe010c67b1340b30361f746affe894bb4d7248
parent75aa996ea63f8656b668f8d9acb2c7a77c055e7f
s390/zcrypt: Enable AUTOSEL_DOM for CCA serialnr sysfs attribute

The serialnr sysfs attribute for CCA cards when queried always
used the default domain for sending the request down to the card.
If for any reason exactly this default domain is disabled then
the attribute code fails to retrieve the CCA info and the sysfs
entry shows an empty string. Works as designed but the serial
number is a card attribute and thus it does not matter which
domain is used for the query. So if there are other domains on
this card available, these could be used.

So extend the code to use AUTOSEL_DOM for the domain value to
address any online domain within the card for querying the cca
info and thus show the serialnr as long as there is one domain
usable regardless of the default domain setting.

Fixes: 8f291ebf3270 ("s390/zcrypt: enable card/domain autoselect on ep11 cprbs")
Suggested-by: Ingo Franzki <ifranzki@linux.ibm.com>
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Ingo Franzki <ifranzki@linux.ibm.com>
Cc: stable@vger.kernel.org
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/crypto/zcrypt_ccamisc.c
drivers/s390/crypto/zcrypt_cex4.c