mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
[S390] cio: allow enable_facility from outside init functions
Prepare chsc_enable_facility to be used from outside init functions. Use static memory for the chsc call and protect its access by a spinlock (although there is no concurrent usage). Cc: <stable@kernel.org> Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
committed by
Martin Schwidefsky
parent
6a5176c474
commit
818c272bd7
@@ -870,15 +870,10 @@ static int __init css_bus_init(void)
|
||||
|
||||
/* Try to enable MSS. */
|
||||
ret = chsc_enable_facility(CHSC_SDA_OC_MSS);
|
||||
switch (ret) {
|
||||
case 0: /* Success. */
|
||||
max_ssid = __MAX_SSID;
|
||||
break;
|
||||
case -ENOMEM:
|
||||
goto out;
|
||||
default:
|
||||
if (ret)
|
||||
max_ssid = 0;
|
||||
}
|
||||
else /* Success. */
|
||||
max_ssid = __MAX_SSID;
|
||||
|
||||
ret = slow_subchannel_init();
|
||||
if (ret)
|
||||
|
||||
Reference in New Issue
Block a user