Re: [PATCH] virtio: fix get_config / set_config for legacy VirtIO targets

2024-03-05 Thread Tom Rini
On Mon, 12 Feb 2024 09:37:08 +0200, Dmitry Baryshkov wrote: > 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

Re: [PATCH] virtio: fix get_config / set_config for legacy VirtIO targets

2024-02-19 Thread Tom Rini
On Sat, Feb 17, 2024 at 10:09:12PM +0200, Dmitry Baryshkov wrote: > On Mon, 12 Feb 2024 at 09:37, Dmitry Baryshkov > wrote: > > > > 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

Re: [PATCH] virtio: fix get_config / set_config for legacy VirtIO targets

2024-02-17 Thread Dmitry Baryshkov
On Mon, 12 Feb 2024 at 09:37, Dmitry Baryshkov wrote: > > 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.

[PATCH] virtio: fix get_config / set_config for legacy VirtIO targets

2024-02-12 Thread Dmitry Baryshkov
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