forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Always write Intel I210 ROM BAR on update to work around device defect (Bjorn Helgaas) * pci/resource: PCI: Work around Intel I210 ROM BAR overlap defect
- Loading branch information
Showing
3 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,12 +75,16 @@ static void pci_std_update_resource(struct pci_dev *dev, int resno) | |
* as zero when disabled, so don't update ROM BARs unless | ||
* they're enabled. See | ||
* https://lore.kernel.org/r/[email protected]/ | ||
* But we must update ROM BAR for buggy devices where even a | ||
* disabled ROM can conflict with other BARs. | ||
*/ | ||
if (!(res->flags & IORESOURCE_ROM_ENABLE)) | ||
if (!(res->flags & IORESOURCE_ROM_ENABLE) && | ||
!dev->rom_bar_overlap) | ||
return; | ||
|
||
reg = dev->rom_base_reg; | ||
new |= PCI_ROM_ADDRESS_ENABLE; | ||
if (res->flags & IORESOURCE_ROM_ENABLE) | ||
new |= PCI_ROM_ADDRESS_ENABLE; | ||
} else | ||
return; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters