aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/chelsio/vsc7326.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-02-22 11:56:57 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-26 04:38:34 -0500
commitc1f51212eb809849bdc68a856ae5f424dcf20d9b (patch)
tree2a01f9e5201d3fc40527c24961b0f888f9e0ed61 /drivers/net/chelsio/vsc7326.c
parent003bdb279bb6b212f25ea4e60e0164b6109d3704 (diff)
drivers/net/chelsio: Use pr_<level>, netif_msg_<type>
Convert CH_<level> and CH_DBG uses to pr_<level> and netif equivalents Remove CH_<level> and CH_DBG macro definitions Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/chelsio/vsc7326.c')
-rw-r--r--drivers/net/chelsio/vsc7326.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/net/chelsio/vsc7326.c b/drivers/net/chelsio/vsc7326.c
index 99b51f61fe77..c844111cffeb 100644
--- a/drivers/net/chelsio/vsc7326.c
+++ b/drivers/net/chelsio/vsc7326.c
@@ -48,14 +48,14 @@ static void vsc_read(adapter_t *adapter, u32 addr, u32 *val)
48 i++; 48 i++;
49 } while (((status & 1) == 0) && (i < 50)); 49 } while (((status & 1) == 0) && (i < 50));
50 if (i == 50) 50 if (i == 50)
51 CH_ERR("Invalid tpi read from MAC, breaking loop.\n"); 51 pr_err("Invalid tpi read from MAC, breaking loop.\n");
52 52
53 t1_tpi_read(adapter, (REG_LOCAL_DATA << 2) + 4, &vlo); 53 t1_tpi_read(adapter, (REG_LOCAL_DATA << 2) + 4, &vlo);
54 t1_tpi_read(adapter, REG_LOCAL_DATA << 2, &vhi); 54 t1_tpi_read(adapter, REG_LOCAL_DATA << 2, &vhi);
55 55
56 *val = (vhi << 16) | vlo; 56 *val = (vhi << 16) | vlo;
57 57
58 /* CH_ERR("rd: block: 0x%x sublock: 0x%x reg: 0x%x data: 0x%x\n", 58 /* pr_err("rd: block: 0x%x sublock: 0x%x reg: 0x%x data: 0x%x\n",
59 ((addr&0xe000)>>13), ((addr&0x1e00)>>9), 59 ((addr&0xe000)>>13), ((addr&0x1e00)>>9),
60 ((addr&0x01fe)>>1), *val); */ 60 ((addr&0x01fe)>>1), *val); */
61 spin_unlock_bh(&adapter->mac_lock); 61 spin_unlock_bh(&adapter->mac_lock);
@@ -66,7 +66,7 @@ static void vsc_write(adapter_t *adapter, u32 addr, u32 data)
66 spin_lock_bh(&adapter->mac_lock); 66 spin_lock_bh(&adapter->mac_lock);
67 t1_tpi_write(adapter, (addr << 2) + 4, data & 0xFFFF); 67 t1_tpi_write(adapter, (addr << 2) + 4, data & 0xFFFF);
68 t1_tpi_write(adapter, addr << 2, (data >> 16) & 0xFFFF); 68 t1_tpi_write(adapter, addr << 2, (data >> 16) & 0xFFFF);
69 /* CH_ERR("wr: block: 0x%x sublock: 0x%x reg: 0x%x data: 0x%x\n", 69 /* pr_err("wr: block: 0x%x sublock: 0x%x reg: 0x%x data: 0x%x\n",
70 ((addr&0xe000)>>13), ((addr&0x1e00)>>9), 70 ((addr&0xe000)>>13), ((addr&0x1e00)>>9),
71 ((addr&0x01fe)>>1), data); */ 71 ((addr&0x01fe)>>1), data); */
72 spin_unlock_bh(&adapter->mac_lock); 72 spin_unlock_bh(&adapter->mac_lock);
@@ -225,7 +225,7 @@ static void run_table(adapter_t *adapter, struct init_table *ib, int len)
225 for (i = 0; i < len; i++) { 225 for (i = 0; i < len; i++) {
226 if (ib[i].addr == INITBLOCK_SLEEP) { 226 if (ib[i].addr == INITBLOCK_SLEEP) {
227 udelay( ib[i].data ); 227 udelay( ib[i].data );
228 CH_ERR("sleep %d us\n",ib[i].data); 228 pr_err("sleep %d us\n",ib[i].data);
229 } else 229 } else
230 vsc_write( adapter, ib[i].addr, ib[i].data ); 230 vsc_write( adapter, ib[i].addr, ib[i].data );
231 } 231 }
@@ -241,7 +241,7 @@ static int bist_rd(adapter_t *adapter, int moduleid, int address)
241 (address != 0x2) && 241 (address != 0x2) &&
242 (address != 0xd) && 242 (address != 0xd) &&
243 (address != 0xe)) 243 (address != 0xe))
244 CH_ERR("No bist address: 0x%x\n", address); 244 pr_err("No bist address: 0x%x\n", address);
245 245
246 data = ((0x00 << 24) | ((address & 0xff) << 16) | (0x00 << 8) | 246 data = ((0x00 << 24) | ((address & 0xff) << 16) | (0x00 << 8) |
247 ((moduleid & 0xff) << 0)); 247 ((moduleid & 0xff) << 0));
@@ -251,9 +251,9 @@ static int bist_rd(adapter_t *adapter, int moduleid, int address)
251 251
252 vsc_read(adapter, REG_RAM_BIST_RESULT, &result); 252 vsc_read(adapter, REG_RAM_BIST_RESULT, &result);
253 if ((result & (1 << 9)) != 0x0) 253 if ((result & (1 << 9)) != 0x0)
254 CH_ERR("Still in bist read: 0x%x\n", result); 254 pr_err("Still in bist read: 0x%x\n", result);
255 else if ((result & (1 << 8)) != 0x0) 255 else if ((result & (1 << 8)) != 0x0)
256 CH_ERR("bist read error: 0x%x\n", result); 256 pr_err("bist read error: 0x%x\n", result);
257 257
258 return (result & 0xff); 258 return (result & 0xff);
259} 259}
@@ -268,10 +268,10 @@ static int bist_wr(adapter_t *adapter, int moduleid, int address, int value)
268 (address != 0x2) && 268 (address != 0x2) &&
269 (address != 0xd) && 269 (address != 0xd) &&
270 (address != 0xe)) 270 (address != 0xe))
271 CH_ERR("No bist address: 0x%x\n", address); 271 pr_err("No bist address: 0x%x\n", address);
272 272
273 if (value > 255) 273 if (value > 255)
274 CH_ERR("Suspicious write out of range value: 0x%x\n", value); 274 pr_err("Suspicious write out of range value: 0x%x\n", value);
275 275
276 data = ((0x01 << 24) | ((address & 0xff) << 16) | (value << 8) | 276 data = ((0x01 << 24) | ((address & 0xff) << 16) | (value << 8) |
277 ((moduleid & 0xff) << 0)); 277 ((moduleid & 0xff) << 0));
@@ -281,9 +281,9 @@ static int bist_wr(adapter_t *adapter, int moduleid, int address, int value)
281 281
282 vsc_read(adapter, REG_RAM_BIST_CMD, &result); 282 vsc_read(adapter, REG_RAM_BIST_CMD, &result);
283 if ((result & (1 << 27)) != 0x0) 283 if ((result & (1 << 27)) != 0x0)
284 CH_ERR("Still in bist write: 0x%x\n", result); 284 pr_err("Still in bist write: 0x%x\n", result);
285 else if ((result & (1 << 26)) != 0x0) 285 else if ((result & (1 << 26)) != 0x0)
286 CH_ERR("bist write error: 0x%x\n", result); 286 pr_err("bist write error: 0x%x\n", result);
287 287
288 return 0; 288 return 0;
289} 289}
@@ -306,7 +306,7 @@ static int check_bist(adapter_t *adapter, int moduleid)
306 column = ((bist_rd(adapter,moduleid, 0x0e)<<8) + 306 column = ((bist_rd(adapter,moduleid, 0x0e)<<8) +
307 (bist_rd(adapter,moduleid, 0x0d))); 307 (bist_rd(adapter,moduleid, 0x0d)));
308 if ((result & 3) != 0x3) 308 if ((result & 3) != 0x3)
309 CH_ERR("Result: 0x%x BIST error in ram %d, column: 0x%04x\n", 309 pr_err("Result: 0x%x BIST error in ram %d, column: 0x%04x\n",
310 result, moduleid, column); 310 result, moduleid, column);
311 return 0; 311 return 0;
312} 312}