]> git.baikalelectronics.ru Git - uboot.git/commit
virtio: pci: Make use of dm_pci_map_bar()
authorAndrew Scull <ascull@google.com>
Thu, 21 Apr 2022 16:11:15 +0000 (16:11 +0000)
committerTom Rini <trini@konsulko.com>
Tue, 3 May 2022 22:33:29 +0000 (18:33 -0400)
commit210b83c23711cf5c2a5dcb23112d3aa916fb38db
tree79aa6f8023135bf54ab3c8a2d25ca3f545342f8e
parent0d322192d2ace837ea6d8a61cb3550402e2ffe7a
virtio: pci: Make use of dm_pci_map_bar()

The virtio PCI capabilities describe regions of memory that should be
mapped. Map those with dm_pci_map_bar() which will ensure they are valid
PCI regions.

Signed-off-by: Andrew Scull <ascull@google.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/virtio/virtio_pci_modern.c