u-boot/drivers/virtio
Dmitry Baryshkov 3098115155 virtio: fix get_config / set_config for legacy VirtIO targets
The functions virtio_pci_get_config() and virtio_pci_set_config() don't
take the offset into account when reading the config space. For example
this manifests when U-Boot tries to read the MAC address of the VirtIO
networking device. It reads 6 equa bytes instead of the proper addess.

Fix those functions by taking the offset in the config space into
account.

Fixes: 4135e10732 ("virtio: Add virtio over pci transport driver")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2024-03-05 08:37:53 -05:00
..
Kconfig virtio: Make VIRTIO_NET depend on NETDEVICES 2023-11-07 14:48:19 -05:00
Makefile virtio: pci: Allow exclusion of legacy driver 2022-05-03 15:50:45 -04:00
virtio_blk.c virtio: Add some debugging 2023-02-06 13:04:53 -05:00
virtio_blk.h virtio: Add block driver support 2018-11-14 09:16:27 -08:00
virtio_mmio.c dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
virtio_mmio.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
virtio_net.c dm: treewide: Rename dev_get_platdata() to dev_get_plat() 2020-12-13 16:51:09 -07:00
virtio_net.h virtio: Add net driver support 2018-11-14 09:16:27 -08:00
virtio_pci_legacy.c virtio: fix get_config / set_config for legacy VirtIO targets 2024-03-05 08:37:53 -05:00
virtio_pci_modern.c virtio: pci: Tear down VQs in virtio_pci_reset() 2023-04-25 11:53:15 -04:00
virtio_pci.h virtio: Add virtio over pci transport driver 2018-11-14 09:16:28 -08:00
virtio_ring.c virtio: Use bounce buffers when VIRTIO_F_IOMMU_PLATFORM is set 2023-04-25 11:53:15 -04:00
virtio_rng.c virtio: rng: gracefully handle 0 byte returns 2023-11-17 11:58:26 -05:00
virtio_sandbox.c virtio: Add a block device 2023-01-23 18:11:40 -05:00
virtio-uclass.c bootstd: Rename bootdev_setup_sibling_blk() 2023-08-09 23:31:11 +08:00