Branch: refs/heads/main Home: https://github.com/OpenAMP/libmetal Commit: f21fea6c32e803d75f74f0b4b7e922f29aea5c05 https://github.com/OpenAMP/libmetal/commit/f21fea6c32e803d75f74f0b4b7e922f29... Author: Bowen Wang wangbowen6@xiaomi.com Date: 2024-02-23 (Fri, 23 Feb 2024)
Changed paths: M lib/system/nuttx/io.c
Log Message: ----------- libmetal/nuttx/io.c: width matched access when read/write size = 1,2,4,8
Follow the virtio spec v1.2: The driver MUST only use 32 bit wide and aligned reads and writes to access the control registers described in table 4.1. For the device-specific configuration space, the driver MUST use 8 bit wide accesses for 8 bit wide fields, 16 bit wide and aligned accesses for 16 bit wide fields and 32 bit wide and aligned accesses for 32 and 64 bit wide fields.
Signed-off-by: Bowen Wang wangbowen6@xiaomi.com Signed-off-by: Jukka Laitinen jukkax@ssrc.tii.ae
To unsubscribe from these emails, change your notification settings at https://github.com/OpenAMP/libmetal/settings/notifications
openamp-rp@lists.openampproject.org