Home
last modified time | relevance | path

Searched hist:bed1ca322da9b597aa59723a02a1dd647bf8bde4 (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/net/
H A Dpcnet.cbed1ca322da9b597aa59723a02a1dd647bf8bde4 Thu May 26 16:32:29 UTC 2016 Paul Burton <paul.burton@imgtec.com> net: pcnet: Fix init on big endian 64 bit

If dev->iobase is 64 bits wide then writing the value of the BAR into a
pointer to iobase will not work on big endian systems, where the BAR
value will incorrectly get written to the upper 32 bits of the 64 bit
variable. Fix this by reading the BAR into a u32, matching the type
expected by pci_read_config_dword.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>