s390/ap: enable sysfs attribute scans to force AP bus rescan
authorHarald Freudenberger <freude@linux.ibm.com>
Wed, 16 Feb 2022 11:30:34 +0000 (12:30 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 1 Mar 2022 20:05:10 +0000 (21:05 +0100)
commit8944d05f9bbf910c8b241e29a3de114900e31e42
treec1c9dfee71c7db152e456c9829c927a13bb60921
parent283915850a4455e8af40ce5b8d291dc79638cdae
s390/ap: enable sysfs attribute scans to force AP bus rescan

This patch switches the sysfs attribute /sys/bus/ap/scans
from read-only to read-write. If there is something written
to this attribute, an AP bus rescan is forced. If an AP
bus scan is triggered this way a debug feature entry line
reports this in /sys/kernel/debug/s390dbf/ap/sprintf.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Jakob Naucke <naucke@linux.ibm.com>
Reviewed-by: Juergen Christ <jchrist@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/crypto/ap_bus.c