Commit 412b3133 authored by Wolfgang Kufner's avatar Wolfgang Kufner Committed by John W. Linville

rt2x00: Fix firmware loading regression on x86_64.

Commit 6175ddf0 changes the way
memcpy_toio() works for x86_64, causing firmware loading to fail for
some Ralink WLAN devices with the rt2800pci driver since linux 2.6.34.
This causes the log message: "phy0 -> rt2800pci_load_firmware: Error -
PBF system register not ready.".

Fix this by using __iowrite32_copy instead of memcpy_toio().
Signed-off-by: default avatarWolfgang Kufner <wolfgang.kufner@gmail.com>
Signed-off-by: default avatarIvo van Doorn <IvDoorn@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 739fd940
...@@ -64,7 +64,7 @@ static inline void rt2x00pci_register_multiwrite(struct rt2x00_dev *rt2x00dev, ...@@ -64,7 +64,7 @@ static inline void rt2x00pci_register_multiwrite(struct rt2x00_dev *rt2x00dev,
const void *value, const void *value,
const u32 length) const u32 length)
{ {
memcpy_toio(rt2x00dev->csr.base + offset, value, length); __iowrite32_copy(rt2x00dev->csr.base + offset, value, length >> 2);
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment