virtio_bt: Fix alignment in configuration struct
authorIgor Skalkin <Igor.Skalkin@opensynergy.com>
Mon, 24 Oct 2022 13:40:33 +0000 (15:40 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 12 Dec 2022 22:19:23 +0000 (14:19 -0800)
commit47c50853bb9c5c35bf5c3eb00b712310ec2969e2
tree44d2d6446d6bf9e43a9a86a341570d772c9d043c
parent3b1c7c00b8c22b3cb79532252c59eb0b287bb86d
virtio_bt: Fix alignment in configuration struct

The current version of the configuration structure has unaligned
16-bit fields, but according to the specification [1], access to
the configuration space must be aligned.

Add a second, aligned  version of the configuration structure
and a new feature bit indicating that this version is being used.

[1] https://docs.oasis-open.org/virtio/virtio/v1.1/virtio-v1.1.pdf

Signed-off-by: Igor Skalkin <Igor.Skalkin@opensynergy.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/virtio_bt.c
include/uapi/linux/virtio_bt.h