https://github.com/torvalds/linux
Revision e73b49ebd9deeb0ff2cd9ac6fd9c72a433d1e062 authored by Bhadram Varka on 02 November 2017, 07:22:13 UTC, committed by David S. Miller on 03 November 2017, 05:15:06 UTC
Numbers in DT are stored in “cells” which are 32-bits
in size. of_property_read_u8 does not work properly
because of endianness problem.

This causes it to always return 0 with little-endian
architectures.

Fix it by using of_property_read_u32() OF API.

Signed-off-by: Bhadram Varka <vbhadram@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 2f2b1ae
History
Tip revision: e73b49ebd9deeb0ff2cd9ac6fd9c72a433d1e062 authored by Bhadram Varka on 02 November 2017, 07:22:13 UTC
stmmac: use of_property_read_u32 instead of read_u8
Tip revision: e73b49e
File Mode Size
Documentation
arch
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.cocciconfig -rw-r--r-- 59 bytes
.get_maintainer.ignore -rw-r--r-- 31 bytes
.gitattributes -rw-r--r-- 30 bytes
.gitignore -rw-r--r-- 1.3 KB
.mailmap -rw-r--r-- 8.2 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 96.1 KB
Kbuild -rw-r--r-- 2.2 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 420.4 KB
Makefile -rw-r--r-- 58.4 KB
README -rw-r--r-- 722 bytes

README

back to top