Skip to content
Snippets Groups Projects
Commit bed1ca32 authored by Paul Burton's avatar Paul Burton Committed by Daniel Schwierzeck
Browse files

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: default avatarPaul Burton <paul.burton@imgtec.com>
parent 442d2e01
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment