]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
s390/sclp: Allow user-space to provide PCI reports for optical modules
authorNiklas Schnelle <schnelle@linux.ibm.com>
Tue, 1 Oct 2024 13:07:27 +0000 (15:07 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Thu, 10 Oct 2024 13:32:43 +0000 (15:32 +0200)
The new SCLP action qualifier 3 is used by user-space code to provide
optical module monitoring data to the platform.

Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/char/sclp_pci.c

index a3e5a5fb0c1e736134c704fbe6f78faeec66d972..c3466a8c56bb5d1a1c62f5856f8ec152017fba02 100644 (file)
@@ -27,6 +27,7 @@
 #define SCLP_ERRNOTIFY_AQ_RESET                        0
 #define SCLP_ERRNOTIFY_AQ_REPAIR               1
 #define SCLP_ERRNOTIFY_AQ_INFO_LOG             2
+#define SCLP_ERRNOTIFY_AQ_OPTICS_DATA          3
 
 static DEFINE_MUTEX(sclp_pci_mutex);
 static struct sclp_register sclp_pci_event = {
@@ -116,6 +117,7 @@ static int sclp_pci_check_report(struct zpci_report_error_header *report)
        case SCLP_ERRNOTIFY_AQ_RESET:
        case SCLP_ERRNOTIFY_AQ_REPAIR:
        case SCLP_ERRNOTIFY_AQ_INFO_LOG:
+       case SCLP_ERRNOTIFY_AQ_OPTICS_DATA:
                break;
        default:
                return -EINVAL;