
14 Apr
2021
14 Apr
'21
9:38 p.m.
On Sun, 11 Apr 2021 at 10:23, Heinrich Schuchardt xypron.glpk@gmx.de wrote:
regmap_read() only fills the first two bytes of val. The last two bytes are random data from the stack. This means the test will fail randomly.
For low endian systems we could simply initialize val to 0 and get correct results. But tests should not depend on endianness. So let's use a pointer conversion instead.
Signed-off-by: Heinrich Schuchardt xypron.glpk@gmx.de
v10: new patch
test/dm/regmap.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org