Code in drivers/scsi/qla2xxx/qla_init.c is directly manipulating the PCI ROMs. There is a kernel API for accessing these ROMs in drivers/pci/rom.c. This driver should be converted to use the common API. drivers/scsi/qla2xxx/qla_init.c: pci_read_config_dword(ha->pdev, PCI_ROM_ADDRESS, &d); drivers/scsi/qla2xxx/qla_init.c: d &= ~PCI_ROM_ADDRESS_ENABLE; drivers/scsi/qla2xxx/qla_init.c: pci_write_config_dword(ha->pdev, PCI_ROM_ADDRESS, d); drivers/scsi/qla2xxx/qla_init.c: pci_read_config_dword(ha->pdev, PCI_ROM_ADDRESS, &d); drivers/scsi/qla2xxx/qla_init.c: d &= ~PCI_ROM_ADDRESS_ENABLE; drivers/scsi/qla2xxx/qla_init.c: pci_write_config_dword(ha->pdev, PCI_ROM_ADDRESS, d); drivers/scsi/qla2xxx/qla_init.c: pci_read_config_dword(ha->pdev, PCI_ROM_ADDRESS, &d); drivers/scsi/qla2xxx/qla_init.c: d &= ~PCI_ROM_ADDRESS_ENABLE; drivers/scsi/qla2xxx/qla_init.c: pci_write_config_dword(ha->pdev, PCI_ROM_ADDRESS, d); drivers/scsi/qla2xxx/qla_init.c: pci_read_config_dword(ha->pdev, PCI_ROM_ADDRESS, &d); drivers/scsi/qla2xxx/qla_init.c: d &= ~PCI_ROM_ADDRESS_ENABLE; drivers/scsi/qla2xxx/qla_init.c: pci_write_config_dword(ha->pdev, PCI_ROM_ADDRESS, d);
Sure. We can queue patches which use pci_disable_rom() for the next merge window.
Patch queued