Skip to content
Commit 16578603 authored by Aaron Massey's avatar Aaron Massey Committed by Carles Cufí
Browse files

emul: Fix endianness fault in sbs gauge emulator



The sbs gauge emulator intercepts SMBus messages for an sbs gauge
compatible IC. However, it was incorrectly interpreting the byte order of
received register write values based on the endianness of the SoC
architecture instead of SMBus' defined little-endianness. This fault was
not caught earlier because native posix and the majority of qemu
architectures use little-endian.

Explicitly interpret the write values as little-endian.

Signed-off-by: default avatarAaron Massey <aaronmassey@google.com>
parent 875b0c70
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment