Skip to content

Commit 412b313

Browse files
Wolfgang Kufnerlinvjw
authored andcommitted
rt2x00: Fix firmware loading regression on x86_64.
Commit 6175ddf 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 <[email protected]> Signed-off-by: Ivo van Doorn <[email protected]> Signed-off-by: John W. Linville <[email protected]>
1 parent 739fd94 commit 412b313

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/wireless/rt2x00/rt2x00pci.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ static inline void rt2x00pci_register_multiwrite(struct rt2x00_dev *rt2x00dev,
6464
const void *value,
6565
const u32 length)
6666
{
67-
memcpy_toio(rt2x00dev->csr.base + offset, value, length);
67+
__iowrite32_copy(rt2x00dev->csr.base + offset, value, length >> 2);
6868
}
6969

7070
/**

0 commit comments

Comments
 (0)