diff options
author | Wolfgang Kufner <wolfgang.kufner@gmail.com> | 2010-12-13 06:39:39 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-12-13 15:23:37 -0500 |
commit | 412b31334b831a8c2909afaca017c5a236ac2dd0 (patch) | |
tree | f10d03d9fe5fa65abc265983aa3d0229e5e2d5bd /drivers/net | |
parent | 739fd9405416e22732e46a9226a8cac379bd57fc (diff) |
rt2x00: Fix firmware loading regression on x86_64.
Commit 6175ddf06b6172046a329e3abfd9c901a43efd2e 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: Wolfgang Kufner <wolfgang.kufner@gmail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00pci.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00pci.h b/drivers/net/wireless/rt2x00/rt2x00pci.h index b854d62ff99b..746ce8fe8cf4 100644 --- a/drivers/net/wireless/rt2x00/rt2x00pci.h +++ b/drivers/net/wireless/rt2x00/rt2x00pci.h | |||
@@ -64,7 +64,7 @@ static inline void rt2x00pci_register_multiwrite(struct rt2x00_dev *rt2x00dev, | |||
64 | const void *value, | 64 | const void *value, |
65 | const u32 length) | 65 | const u32 length) |
66 | { | 66 | { |
67 | memcpy_toio(rt2x00dev->csr.base + offset, value, length); | 67 | __iowrite32_copy(rt2x00dev->csr.base + offset, value, length >> 2); |
68 | } | 68 | } |
69 | 69 | ||
70 | /** | 70 | /** |