mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 16:44:58 +02:00
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 <schnelle@linux.ibm.com> Reviewed-by: Alexandra Winter <wintera@linux.ibm.com> Signed-off-by: Gerd Bayer <gbayer@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
This commit is contained in:
parent
5c02c74dd4
commit
564ebcae6a
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user