From: Gerd Bayer Date: Tue, 21 Oct 2025 08:57:16 +0000 (+0200) Subject: s390/pci: Highlight failure to enable PCI function X-Git-Tag: v6.19-rc1~206^2~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=564ebcae6a0b4a69de79cd40c04ccd1d572e6ecf;p=thirdparty%2Flinux.git s390/pci: Highlight failure to enable PCI function Emit an error log when a PCI function cannot be enabled for use, despite being reported as configured to the system. This brings to attention situations where functions might go missing without notice. Going unnoticed is less likely when functions are added to the system through hotplug, but will produce the same error log. Reviewed-by: Niklas Schnelle Reviewed-by: Alexandra Winter Signed-off-by: Gerd Bayer Signed-off-by: Heiko Carstens --- diff --git a/arch/s390/pci/pci_bus.c b/arch/s390/pci/pci_bus.c index 45a1c36c5a54e..be8c697fea0cc 100644 --- a/arch/s390/pci/pci_bus.c +++ b/arch/s390/pci/pci_bus.c @@ -45,8 +45,10 @@ static int zpci_bus_prepare_device(struct zpci_dev *zdev) if (!zdev_enabled(zdev)) { rc = zpci_enable_device(zdev); - if (rc) + if (rc) { + pr_err("Enabling PCI function %08x failed\n", zdev->fid); return rc; + } } if (!zdev->has_resources) {