]> git.baikalelectronics.ru Git - uboot.git/commit
virtio: sandbox: Fix device features bitfield
authorAndrew Scull <ascull@google.com>
Mon, 16 May 2022 10:41:34 +0000 (10:41 +0000)
committerTom Rini <trini@konsulko.com>
Wed, 8 Jun 2022 13:24:03 +0000 (09:24 -0400)
commit3a249696092dabdfe8da89649062ec91e174781c
treeca096f3c7b02a83ca336e2a2e17e13499552c83f
parent5bd9d2ac3bb2749d9f33335a482c56c932b1ca45
virtio: sandbox: Fix device features bitfield

The virtio sandbox transport was setting the device features value to
the bit index rather than shifting a bit to the right index. Fix this
using the bit manipulation macros.

Signed-off-by: Andrew Scull <ascull@google.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/virtio/virtio_sandbox.c
test/dm/virtio.c