Commit dcd33b23 authored by Sebastian Ott's avatar Sebastian Ott Committed by Heiko Carstens

s390/pci: fix assignment of bus resources

Adjust bus resources depending on the usage of MIO instructions.

Fixes: 71ba41c9 ("s390/pci: provide support for MIO instructions")
Signed-off-by: default avatarSebastian Ott <sebott@linux.ibm.com>
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
parent 1354b38b
......@@ -528,6 +528,9 @@ static int zpci_setup_bus_resources(struct zpci_dev *zdev,
if (zdev->bars[i].val & 4)
flags |= IORESOURCE_MEM_64;
if (static_branch_likely(&have_mio))
addr = (unsigned long) zdev->bars[i].mio_wb;
else
addr = ZPCI_ADDR(entry);
size = 1UL << zdev->bars[i].size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment