s390/ipl: Fix detection of has_secure attribute
authorPhilipp Rudo <prudo@linux.ibm.com>
Fri, 28 Jun 2019 15:38:05 +0000 (17:38 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 11 Jul 2019 18:40:02 +0000 (20:40 +0200)
commit1b2be2071aca9aab22e3f902bcb0fca46a1d3b00
tree8cf36af21ed691cd3fc2d4168837150b9bdb2725
parent5c4c2126fb69812e6e62a7d8bfaac308a3ddeec7
s390/ipl: Fix detection of has_secure attribute

Use the correct bit for detection of the machine capability associated
with the has_secure attribute. It is expected that the underlying
platform (including hypervisors) unsets the bit when they don't provide
secure ipl for their guests.

Fixes: c9896acc7851 ("s390/ipl: Provide has_secure sysfs attribute")
Cc: stable@vger.kernel.org # 5.2
Signed-off-by: Philipp Rudo <prudo@linux.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/sclp.h
arch/s390/kernel/ipl.c
drivers/s390/char/sclp_early.c