Skip to content

Commit

Permalink
rt2x00: Fix firmware loading regression on x86_64.
Browse files Browse the repository at this point in the history
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 <wolfgang.kufner@gmail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Wolfgang Kufner authored and linvjw committed Dec 13, 2010
1 parent 739fd94 commit 412b313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/rt2x00/rt2x00pci.h
Expand Up @@ -64,7 +64,7 @@ static inline void rt2x00pci_register_multiwrite(struct rt2x00_dev *rt2x00dev,
const void *value,
const u32 length)
{
memcpy_toio(rt2x00dev->csr.base + offset, value, length);
__iowrite32_copy(rt2x00dev->csr.base + offset, value, length >> 2);
}

/**
Expand Down

0 comments on commit 412b313

Please sign in to comment.