diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2008-10-31 12:54:30 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-11-10 15:17:34 -0500 |
commit | 94d4fe9824e5c62240f3ae2a33b2dd5a8a32a01b (patch) | |
tree | 5c7a351fd30c7ee0a614d7c397de3e9a9d48209f /drivers/net | |
parent | 946d1c22644a5de07efc1c847fb64bb0cf8f82f2 (diff) |
rtl8187: Remove primitive write delays
Each of the primary write routines, rtl8187_write_phy(),
rtl8225_write_bitbang(), and rtl8225_write_8051() all conclude with an
msleep() command. Testing shows that these are not needed.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Tested-by: Herton Ronaldo Krzesinski <herton@mandriva.com.br>
Tested-by: Hin-Tak Leung <htl10@users.sourceforge.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/rtl8187_dev.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rtl8187_rtl8225.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/wireless/rtl8187_dev.c b/drivers/net/wireless/rtl8187_dev.c index b4927d08507e..892ad2db7c0d 100644 --- a/drivers/net/wireless/rtl8187_dev.c +++ b/drivers/net/wireless/rtl8187_dev.c | |||
@@ -152,8 +152,6 @@ void rtl8187_write_phy(struct ieee80211_hw *dev, u8 addr, u32 data) | |||
152 | rtl818x_iowrite8(priv, &priv->map->PHY[2], (data >> 16) & 0xFF); | 152 | rtl818x_iowrite8(priv, &priv->map->PHY[2], (data >> 16) & 0xFF); |
153 | rtl818x_iowrite8(priv, &priv->map->PHY[1], (data >> 8) & 0xFF); | 153 | rtl818x_iowrite8(priv, &priv->map->PHY[1], (data >> 8) & 0xFF); |
154 | rtl818x_iowrite8(priv, &priv->map->PHY[0], data & 0xFF); | 154 | rtl818x_iowrite8(priv, &priv->map->PHY[0], data & 0xFF); |
155 | |||
156 | msleep(1); | ||
157 | } | 155 | } |
158 | 156 | ||
159 | static void rtl8187_tx_cb(struct urb *urb) | 157 | static void rtl8187_tx_cb(struct urb *urb) |
diff --git a/drivers/net/wireless/rtl8187_rtl8225.c b/drivers/net/wireless/rtl8187_rtl8225.c index 053eb220a19e..38333b185a56 100644 --- a/drivers/net/wireless/rtl8187_rtl8225.c +++ b/drivers/net/wireless/rtl8187_rtl8225.c | |||
@@ -64,7 +64,6 @@ static void rtl8225_write_bitbang(struct ieee80211_hw *dev, u8 addr, u16 data) | |||
64 | 64 | ||
65 | rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg80 | (1 << 2)); | 65 | rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg80 | (1 << 2)); |
66 | rtl818x_iowrite16(priv, &priv->map->RFPinsSelect, reg84); | 66 | rtl818x_iowrite16(priv, &priv->map->RFPinsSelect, reg84); |
67 | msleep(2); | ||
68 | } | 67 | } |
69 | 68 | ||
70 | static void rtl8225_write_8051(struct ieee80211_hw *dev, u8 addr, __le16 data) | 69 | static void rtl8225_write_8051(struct ieee80211_hw *dev, u8 addr, __le16 data) |
@@ -98,7 +97,6 @@ static void rtl8225_write_8051(struct ieee80211_hw *dev, u8 addr, __le16 data) | |||
98 | 97 | ||
99 | rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg80 | (1 << 2)); | 98 | rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg80 | (1 << 2)); |
100 | rtl818x_iowrite16(priv, &priv->map->RFPinsSelect, reg84); | 99 | rtl818x_iowrite16(priv, &priv->map->RFPinsSelect, reg84); |
101 | msleep(2); | ||
102 | } | 100 | } |
103 | 101 | ||
104 | static void rtl8225_write(struct ieee80211_hw *dev, u8 addr, u16 data) | 102 | static void rtl8225_write(struct ieee80211_hw *dev, u8 addr, u16 data) |