diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 11:34:36 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 11:34:36 -0500 |
commit | a7c243b544c0e9f6775c2607decaa59d54fb9e11 (patch) | |
tree | 86fdb4d2d6cef932af7497f28827e7d52b29e48c /drivers/net/wireless/prism54 | |
parent | 7df446e7e043b2ba5fd5de42529f9d797e8b501a (diff) | |
parent | f406db8cba6bbce42b96490e6d31bdec229ad994 (diff) |
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6
Diffstat (limited to 'drivers/net/wireless/prism54')
-rw-r--r-- | drivers/net/wireless/prism54/isl_38xx.c | 12 | ||||
-rw-r--r-- | drivers/net/wireless/prism54/islpci_eth.c | 10 |
2 files changed, 9 insertions, 13 deletions
diff --git a/drivers/net/wireless/prism54/isl_38xx.c b/drivers/net/wireless/prism54/isl_38xx.c index aaa958798f3f..109a96d90007 100644 --- a/drivers/net/wireless/prism54/isl_38xx.c +++ b/drivers/net/wireless/prism54/isl_38xx.c | |||
@@ -111,9 +111,10 @@ isl38xx_handle_wakeup(isl38xx_control_block *control_block, | |||
111 | void | 111 | void |
112 | isl38xx_trigger_device(int asleep, void __iomem *device_base) | 112 | isl38xx_trigger_device(int asleep, void __iomem *device_base) |
113 | { | 113 | { |
114 | u32 reg, counter = 0; | 114 | u32 reg; |
115 | 115 | ||
116 | #if VERBOSE > SHOW_ERROR_MESSAGES | 116 | #if VERBOSE > SHOW_ERROR_MESSAGES |
117 | u32 counter = 0; | ||
117 | struct timeval current_time; | 118 | struct timeval current_time; |
118 | DEBUG(SHOW_FUNCTION_CALLS, "isl38xx trigger device\n"); | 119 | DEBUG(SHOW_FUNCTION_CALLS, "isl38xx trigger device\n"); |
119 | #endif | 120 | #endif |
@@ -130,7 +131,6 @@ isl38xx_trigger_device(int asleep, void __iomem *device_base) | |||
130 | current_time.tv_sec, (long)current_time.tv_usec, | 131 | current_time.tv_sec, (long)current_time.tv_usec, |
131 | readl(device_base + ISL38XX_CTRL_STAT_REG)); | 132 | readl(device_base + ISL38XX_CTRL_STAT_REG)); |
132 | #endif | 133 | #endif |
133 | udelay(ISL38XX_WRITEIO_DELAY); | ||
134 | 134 | ||
135 | reg = readl(device_base + ISL38XX_INT_IDENT_REG); | 135 | reg = readl(device_base + ISL38XX_INT_IDENT_REG); |
136 | if (reg == 0xabadface) { | 136 | if (reg == 0xabadface) { |
@@ -144,7 +144,9 @@ isl38xx_trigger_device(int asleep, void __iomem *device_base) | |||
144 | while (reg = readl(device_base + ISL38XX_CTRL_STAT_REG), | 144 | while (reg = readl(device_base + ISL38XX_CTRL_STAT_REG), |
145 | (reg & ISL38XX_CTRL_STAT_SLEEPMODE) == 0) { | 145 | (reg & ISL38XX_CTRL_STAT_SLEEPMODE) == 0) { |
146 | udelay(ISL38XX_WRITEIO_DELAY); | 146 | udelay(ISL38XX_WRITEIO_DELAY); |
147 | #if VERBOSE > SHOW_ERROR_MESSAGES | ||
147 | counter++; | 148 | counter++; |
149 | #endif | ||
148 | } | 150 | } |
149 | 151 | ||
150 | #if VERBOSE > SHOW_ERROR_MESSAGES | 152 | #if VERBOSE > SHOW_ERROR_MESSAGES |
@@ -152,10 +154,6 @@ isl38xx_trigger_device(int asleep, void __iomem *device_base) | |||
152 | "%08li.%08li Device register read %08x\n", | 154 | "%08li.%08li Device register read %08x\n", |
153 | current_time.tv_sec, (long)current_time.tv_usec, | 155 | current_time.tv_sec, (long)current_time.tv_usec, |
154 | readl(device_base + ISL38XX_CTRL_STAT_REG)); | 156 | readl(device_base + ISL38XX_CTRL_STAT_REG)); |
155 | #endif | ||
156 | udelay(ISL38XX_WRITEIO_DELAY); | ||
157 | |||
158 | #if VERBOSE > SHOW_ERROR_MESSAGES | ||
159 | do_gettimeofday(¤t_time); | 157 | do_gettimeofday(¤t_time); |
160 | DEBUG(SHOW_TRACING, | 158 | DEBUG(SHOW_TRACING, |
161 | "%08li.%08li Device asleep counter %i\n", | 159 | "%08li.%08li Device asleep counter %i\n", |
@@ -170,7 +168,6 @@ isl38xx_trigger_device(int asleep, void __iomem *device_base) | |||
170 | 168 | ||
171 | /* perform another read on the Device Status Register */ | 169 | /* perform another read on the Device Status Register */ |
172 | reg = readl(device_base + ISL38XX_CTRL_STAT_REG); | 170 | reg = readl(device_base + ISL38XX_CTRL_STAT_REG); |
173 | udelay(ISL38XX_WRITEIO_DELAY); | ||
174 | 171 | ||
175 | #if VERBOSE > SHOW_ERROR_MESSAGES | 172 | #if VERBOSE > SHOW_ERROR_MESSAGES |
176 | do_gettimeofday(¤t_time); | 173 | do_gettimeofday(¤t_time); |
@@ -186,7 +183,6 @@ isl38xx_trigger_device(int asleep, void __iomem *device_base) | |||
186 | 183 | ||
187 | isl38xx_w32_flush(device_base, ISL38XX_DEV_INT_UPDATE, | 184 | isl38xx_w32_flush(device_base, ISL38XX_DEV_INT_UPDATE, |
188 | ISL38XX_DEV_INT_REG); | 185 | ISL38XX_DEV_INT_REG); |
189 | udelay(ISL38XX_WRITEIO_DELAY); | ||
190 | } | 186 | } |
191 | } | 187 | } |
192 | 188 | ||
diff --git a/drivers/net/wireless/prism54/islpci_eth.c b/drivers/net/wireless/prism54/islpci_eth.c index 80ae081ab4b7..33d64d2ee53f 100644 --- a/drivers/net/wireless/prism54/islpci_eth.c +++ b/drivers/net/wireless/prism54/islpci_eth.c | |||
@@ -226,17 +226,17 @@ islpci_eth_transmit(struct sk_buff *skb, struct net_device *ndev) | |||
226 | priv->data_low_tx_full = 1; | 226 | priv->data_low_tx_full = 1; |
227 | } | 227 | } |
228 | 228 | ||
229 | /* set the transmission time */ | ||
230 | ndev->trans_start = jiffies; | ||
231 | priv->statistics.tx_packets++; | ||
232 | priv->statistics.tx_bytes += skb->len; | ||
233 | |||
229 | /* trigger the device */ | 234 | /* trigger the device */ |
230 | islpci_trigger(priv); | 235 | islpci_trigger(priv); |
231 | 236 | ||
232 | /* unlock the driver code */ | 237 | /* unlock the driver code */ |
233 | spin_unlock_irqrestore(&priv->slock, flags); | 238 | spin_unlock_irqrestore(&priv->slock, flags); |
234 | 239 | ||
235 | /* set the transmission time */ | ||
236 | ndev->trans_start = jiffies; | ||
237 | priv->statistics.tx_packets++; | ||
238 | priv->statistics.tx_bytes += skb->len; | ||
239 | |||
240 | return 0; | 240 | return 0; |
241 | 241 | ||
242 | drop_free: | 242 | drop_free: |