aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/irda/via-ircc.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-11-11 17:44:57 -0500
committerDavid S. Miller <davem@davemloft.net>2014-11-12 13:56:41 -0500
commit955a9d202f470019f42979f0d1caec98843e39ce (patch)
treefff6124b339bc33e3b5c67668bfcc13098be865c /drivers/net/irda/via-ircc.c
parent8d326d818a2a8fc80c7df85dd88cb214804d1499 (diff)
irda: Convert IRDA_DEBUG to pr_debug
Use the normal kernel debugging mechanism which also enables dynamic_debug at the same time. Other miscellanea: o Remove sysctl for irda_debug o Remove function tracing like uses (use ftrace instead) o Coalesce formats o Realign arguments o Remove unnecessary OOM messages Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/irda/via-ircc.c')
-rw-r--r--drivers/net/irda/via-ircc.c154
1 files changed, 66 insertions, 88 deletions
diff --git a/drivers/net/irda/via-ircc.c b/drivers/net/irda/via-ircc.c
index b07b4ccddcad..6960d4cd3cae 100644
--- a/drivers/net/irda/via-ircc.c
+++ b/drivers/net/irda/via-ircc.c
@@ -144,12 +144,10 @@ static int __init via_ircc_init(void)
144{ 144{
145 int rc; 145 int rc;
146 146
147 IRDA_DEBUG(3, "%s()\n", __func__);
148
149 rc = pci_register_driver(&via_driver); 147 rc = pci_register_driver(&via_driver);
150 if (rc < 0) { 148 if (rc < 0) {
151 IRDA_DEBUG(0, "%s(): error rc = %d, returning -ENODEV...\n", 149 pr_debug("%s(): error rc = %d, returning -ENODEV...\n",
152 __func__, rc); 150 __func__, rc);
153 return -ENODEV; 151 return -ENODEV;
154 } 152 }
155 return 0; 153 return 0;
@@ -162,11 +160,11 @@ static int via_init_one(struct pci_dev *pcidev, const struct pci_device_id *id)
162 u16 Chipset,FirDRQ1,FirDRQ0,FirIRQ,FirIOBase; 160 u16 Chipset,FirDRQ1,FirDRQ0,FirIRQ,FirIOBase;
163 chipio_t info; 161 chipio_t info;
164 162
165 IRDA_DEBUG(2, "%s(): Device ID=(0X%X)\n", __func__, id->device); 163 pr_debug("%s(): Device ID=(0X%X)\n", __func__, id->device);
166 164
167 rc = pci_enable_device (pcidev); 165 rc = pci_enable_device (pcidev);
168 if (rc) { 166 if (rc) {
169 IRDA_DEBUG(0, "%s(): error rc = %d\n", __func__, rc); 167 pr_debug("%s(): error rc = %d\n", __func__, rc);
170 return -ENODEV; 168 return -ENODEV;
171 } 169 }
172 170
@@ -177,7 +175,7 @@ static int via_init_one(struct pci_dev *pcidev, const struct pci_device_id *id)
177 Chipset=0x3076; 175 Chipset=0x3076;
178 176
179 if (Chipset==0x3076) { 177 if (Chipset==0x3076) {
180 IRDA_DEBUG(2, "%s(): Chipset = 3076\n", __func__); 178 pr_debug("%s(): Chipset = 3076\n", __func__);
181 179
182 WriteLPCReg(7,0x0c ); 180 WriteLPCReg(7,0x0c );
183 temp=ReadLPCReg(0x30);//check if BIOS Enable Fir 181 temp=ReadLPCReg(0x30);//check if BIOS Enable Fir
@@ -213,7 +211,7 @@ static int via_init_one(struct pci_dev *pcidev, const struct pci_device_id *id)
213 } else 211 } else
214 rc = -ENODEV; //IR not turn on 212 rc = -ENODEV; //IR not turn on
215 } else { //Not VT1211 213 } else { //Not VT1211
216 IRDA_DEBUG(2, "%s(): Chipset = 3096\n", __func__); 214 pr_debug("%s(): Chipset = 3096\n", __func__);
217 215
218 pci_read_config_byte(pcidev,0x67,&bTmp);//check if BIOS Enable Fir 216 pci_read_config_byte(pcidev,0x67,&bTmp);//check if BIOS Enable Fir
219 if((bTmp&0x01)==1) { // BIOS enable FIR 217 if((bTmp&0x01)==1) { // BIOS enable FIR
@@ -252,14 +250,12 @@ static int via_init_one(struct pci_dev *pcidev, const struct pci_device_id *id)
252 rc = -ENODEV; //IR not turn on !!!!! 250 rc = -ENODEV; //IR not turn on !!!!!
253 }//Not VT1211 251 }//Not VT1211
254 252
255 IRDA_DEBUG(2, "%s(): End - rc = %d\n", __func__, rc); 253 pr_debug("%s(): End - rc = %d\n", __func__, rc);
256 return rc; 254 return rc;
257} 255}
258 256
259static void __exit via_ircc_cleanup(void) 257static void __exit via_ircc_cleanup(void)
260{ 258{
261 IRDA_DEBUG(3, "%s()\n", __func__);
262
263 /* Cleanup all instances of the driver */ 259 /* Cleanup all instances of the driver */
264 pci_unregister_driver (&via_driver); 260 pci_unregister_driver (&via_driver);
265} 261}
@@ -289,8 +285,6 @@ static int via_ircc_open(struct pci_dev *pdev, chipio_t *info, unsigned int id)
289 struct via_ircc_cb *self; 285 struct via_ircc_cb *self;
290 int err; 286 int err;
291 287
292 IRDA_DEBUG(3, "%s()\n", __func__);
293
294 /* Allocate new instance of the driver */ 288 /* Allocate new instance of the driver */
295 dev = alloc_irdadev(sizeof(struct via_ircc_cb)); 289 dev = alloc_irdadev(sizeof(struct via_ircc_cb));
296 if (dev == NULL) 290 if (dev == NULL)
@@ -316,8 +310,8 @@ static int via_ircc_open(struct pci_dev *pdev, chipio_t *info, unsigned int id)
316 310
317 /* Reserve the ioports that we need */ 311 /* Reserve the ioports that we need */
318 if (!request_region(self->io.fir_base, self->io.fir_ext, driver_name)) { 312 if (!request_region(self->io.fir_base, self->io.fir_ext, driver_name)) {
319 IRDA_DEBUG(0, "%s(), can't get iobase of 0x%03x\n", 313 pr_debug("%s(), can't get iobase of 0x%03x\n",
320 __func__, self->io.fir_base); 314 __func__, self->io.fir_base);
321 err = -ENODEV; 315 err = -ENODEV;
322 goto err_out1; 316 goto err_out1;
323 } 317 }
@@ -423,8 +417,6 @@ static void via_remove_one(struct pci_dev *pdev)
423 struct via_ircc_cb *self = pci_get_drvdata(pdev); 417 struct via_ircc_cb *self = pci_get_drvdata(pdev);
424 int iobase; 418 int iobase;
425 419
426 IRDA_DEBUG(3, "%s()\n", __func__);
427
428 iobase = self->io.fir_base; 420 iobase = self->io.fir_base;
429 421
430 ResetChip(iobase, 5); //hardware reset. 422 ResetChip(iobase, 5); //hardware reset.
@@ -432,8 +424,8 @@ static void via_remove_one(struct pci_dev *pdev)
432 unregister_netdev(self->netdev); 424 unregister_netdev(self->netdev);
433 425
434 /* Release the PORT that this driver is using */ 426 /* Release the PORT that this driver is using */
435 IRDA_DEBUG(2, "%s(), Releasing Region %03x\n", 427 pr_debug("%s(), Releasing Region %03x\n",
436 __func__, self->io.fir_base); 428 __func__, self->io.fir_base);
437 release_region(self->io.fir_base, self->io.fir_ext); 429 release_region(self->io.fir_base, self->io.fir_ext);
438 if (self->tx_buff.head) 430 if (self->tx_buff.head)
439 dma_free_coherent(&pdev->dev, self->tx_buff.truesize, 431 dma_free_coherent(&pdev->dev, self->tx_buff.truesize,
@@ -458,8 +450,6 @@ static void via_hw_init(struct via_ircc_cb *self)
458{ 450{
459 int iobase = self->io.fir_base; 451 int iobase = self->io.fir_base;
460 452
461 IRDA_DEBUG(3, "%s()\n", __func__);
462
463 SetMaxRxPacketSize(iobase, 0x0fff); //set to max:4095 453 SetMaxRxPacketSize(iobase, 0x0fff); //set to max:4095
464 // FIFO Init 454 // FIFO Init
465 EnRXFIFOReadyInt(iobase, OFF); 455 EnRXFIFOReadyInt(iobase, OFF);
@@ -528,8 +518,8 @@ static void via_ircc_change_dongle_speed(int iobase, int speed,
528 /* speed is unused, as we use IsSIROn()/IsMIROn() */ 518 /* speed is unused, as we use IsSIROn()/IsMIROn() */
529 speed = speed; 519 speed = speed;
530 520
531 IRDA_DEBUG(1, "%s(): change_dongle_speed to %d for 0x%x, %d\n", 521 pr_debug("%s(): change_dongle_speed to %d for 0x%x, %d\n",
532 __func__, speed, iobase, dongle_id); 522 __func__, speed, iobase, dongle_id);
533 523
534 switch (dongle_id) { 524 switch (dongle_id) {
535 525
@@ -618,7 +608,8 @@ static void via_ircc_change_dongle_speed(int iobase, int speed,
618 608
619 case 0x11: /* Temic TFDS4500 */ 609 case 0x11: /* Temic TFDS4500 */
620 610
621 IRDA_DEBUG(2, "%s: Temic TFDS4500: One RX pin, TX normal, RX inverted.\n", __func__); 611 pr_debug("%s: Temic TFDS4500: One RX pin, TX normal, RX inverted\n",
612 __func__);
622 613
623 UseOneRX(iobase, ON); //use ONE RX....RX1 614 UseOneRX(iobase, ON); //use ONE RX....RX1
624 InvertTX(iobase, OFF); 615 InvertTX(iobase, OFF);
@@ -636,7 +627,8 @@ static void via_ircc_change_dongle_speed(int iobase, int speed,
636 SlowIRRXLowActive(iobase, OFF); 627 SlowIRRXLowActive(iobase, OFF);
637 628
638 } else{ 629 } else{
639 IRDA_DEBUG(0, "%s: Warning: TFDS4500 not running in SIR mode !\n", __func__); 630 pr_debug("%s: Warning: TFDS4500 not running in SIR mode !\n",
631 __func__);
640 } 632 }
641 break; 633 break;
642 634
@@ -673,7 +665,7 @@ static void via_ircc_change_speed(struct via_ircc_cb *self, __u32 speed)
673 iobase = self->io.fir_base; 665 iobase = self->io.fir_base;
674 /* Update accounting for new speed */ 666 /* Update accounting for new speed */
675 self->io.speed = speed; 667 self->io.speed = speed;
676 IRDA_DEBUG(1, "%s: change_speed to %d bps.\n", __func__, speed); 668 pr_debug("%s: change_speed to %d bps.\n", __func__, speed);
677 669
678 WriteReg(iobase, I_ST_CT_0, 0x0); 670 WriteReg(iobase, I_ST_CT_0, 0x0);
679 671
@@ -903,10 +895,10 @@ static int via_ircc_dma_xmit(struct via_ircc_cb *self, u16 iobase)
903 ((u8 *)self->tx_fifo.queue[self->tx_fifo.ptr].start - 895 ((u8 *)self->tx_fifo.queue[self->tx_fifo.ptr].start -
904 self->tx_buff.head) + self->tx_buff_dma, 896 self->tx_buff.head) + self->tx_buff_dma,
905 self->tx_fifo.queue[self->tx_fifo.ptr].len, DMA_TX_MODE); 897 self->tx_fifo.queue[self->tx_fifo.ptr].len, DMA_TX_MODE);
906 IRDA_DEBUG(1, "%s: tx_fifo.ptr=%x,len=%x,tx_fifo.len=%x..\n", 898 pr_debug("%s: tx_fifo.ptr=%x,len=%x,tx_fifo.len=%x..\n",
907 __func__, self->tx_fifo.ptr, 899 __func__, self->tx_fifo.ptr,
908 self->tx_fifo.queue[self->tx_fifo.ptr].len, 900 self->tx_fifo.queue[self->tx_fifo.ptr].len,
909 self->tx_fifo.len); 901 self->tx_fifo.len);
910 902
911 SetSendByte(iobase, self->tx_fifo.queue[self->tx_fifo.ptr].len); 903 SetSendByte(iobase, self->tx_fifo.queue[self->tx_fifo.ptr].len);
912 RXStart(iobase, OFF); 904 RXStart(iobase, OFF);
@@ -927,8 +919,6 @@ static int via_ircc_dma_xmit_complete(struct via_ircc_cb *self)
927 int iobase; 919 int iobase;
928 u8 Tx_status; 920 u8 Tx_status;
929 921
930 IRDA_DEBUG(3, "%s()\n", __func__);
931
932 iobase = self->io.fir_base; 922 iobase = self->io.fir_base;
933 /* Disable DMA */ 923 /* Disable DMA */
934// DisableDmaChannel(self->io.dma); 924// DisableDmaChannel(self->io.dma);
@@ -958,10 +948,9 @@ static int via_ircc_dma_xmit_complete(struct via_ircc_cb *self)
958 self->tx_fifo.ptr++; 948 self->tx_fifo.ptr++;
959 } 949 }
960 } 950 }
961 IRDA_DEBUG(1, 951 pr_debug("%s: tx_fifo.len=%x ,tx_fifo.ptr=%x,tx_fifo.free=%x...\n",
962 "%s: tx_fifo.len=%x ,tx_fifo.ptr=%x,tx_fifo.free=%x...\n", 952 __func__,
963 __func__, 953 self->tx_fifo.len, self->tx_fifo.ptr, self->tx_fifo.free);
964 self->tx_fifo.len, self->tx_fifo.ptr, self->tx_fifo.free);
965/* F01_S 954/* F01_S
966 // Any frames to be sent back-to-back? 955 // Any frames to be sent back-to-back?
967 if (self->tx_fifo.len) { 956 if (self->tx_fifo.len) {
@@ -996,8 +985,6 @@ static int via_ircc_dma_receive(struct via_ircc_cb *self)
996 985
997 iobase = self->io.fir_base; 986 iobase = self->io.fir_base;
998 987
999 IRDA_DEBUG(3, "%s()\n", __func__);
1000
1001 self->tx_fifo.len = self->tx_fifo.ptr = self->tx_fifo.free = 0; 988 self->tx_fifo.len = self->tx_fifo.ptr = self->tx_fifo.free = 0;
1002 self->tx_fifo.tail = self->tx_buff.head; 989 self->tx_fifo.tail = self->tx_buff.head;
1003 self->RxDataReady = 0; 990 self->RxDataReady = 0;
@@ -1079,15 +1066,15 @@ static int via_ircc_dma_receive_complete(struct via_ircc_cb *self,
1079 if (len == 0) 1066 if (len == 0)
1080 return TRUE; //interrupt only, data maybe move by RxT 1067 return TRUE; //interrupt only, data maybe move by RxT
1081 if (((len - 4) < 2) || ((len - 4) > 2048)) { 1068 if (((len - 4) < 2) || ((len - 4) > 2048)) {
1082 IRDA_DEBUG(1, "%s(): Trouble:len=%x,CurCount=%x,LastCount=%x..\n", 1069 pr_debug("%s(): Trouble:len=%x,CurCount=%x,LastCount=%x\n",
1083 __func__, len, RxCurCount(iobase, self), 1070 __func__, len, RxCurCount(iobase, self),
1084 self->RxLastCount); 1071 self->RxLastCount);
1085 hwreset(self); 1072 hwreset(self);
1086 return FALSE; 1073 return FALSE;
1087 } 1074 }
1088 IRDA_DEBUG(2, "%s(): fifo.len=%x,len=%x,CurCount=%x..\n", 1075 pr_debug("%s(): fifo.len=%x,len=%x,CurCount=%x..\n",
1089 __func__, 1076 __func__,
1090 st_fifo->len, len - 4, RxCurCount(iobase, self)); 1077 st_fifo->len, len - 4, RxCurCount(iobase, self));
1091 1078
1092 st_fifo->entries[st_fifo->tail].status = status; 1079 st_fifo->entries[st_fifo->tail].status = status;
1093 st_fifo->entries[st_fifo->tail].len = len; 1080 st_fifo->entries[st_fifo->tail].len = len;
@@ -1134,8 +1121,8 @@ F01_E */
1134 skb_put(skb, len - 4); 1121 skb_put(skb, len - 4);
1135 1122
1136 skb_copy_to_linear_data(skb, self->rx_buff.data, len - 4); 1123 skb_copy_to_linear_data(skb, self->rx_buff.data, len - 4);
1137 IRDA_DEBUG(2, "%s(): len=%x.rx_buff=%p\n", __func__, 1124 pr_debug("%s(): len=%x.rx_buff=%p\n", __func__,
1138 len - 4, self->rx_buff.data); 1125 len - 4, self->rx_buff.data);
1139 1126
1140 // Move to next frame 1127 // Move to next frame
1141 self->rx_buff.data += len; 1128 self->rx_buff.data += len;
@@ -1164,7 +1151,7 @@ static int upload_rxdata(struct via_ircc_cb *self, int iobase)
1164 1151
1165 len = GetRecvByte(iobase, self); 1152 len = GetRecvByte(iobase, self);
1166 1153
1167 IRDA_DEBUG(2, "%s(): len=%x\n", __func__, len); 1154 pr_debug("%s(): len=%x\n", __func__, len);
1168 1155
1169 if ((len - 4) < 2) { 1156 if ((len - 4) < 2) {
1170 self->netdev->stats.rx_dropped++; 1157 self->netdev->stats.rx_dropped++;
@@ -1249,8 +1236,8 @@ static int RxTimerHandler(struct via_ircc_cb *self, int iobase)
1249 skb_put(skb, len - 4); 1236 skb_put(skb, len - 4);
1250 skb_copy_to_linear_data(skb, self->rx_buff.data, len - 4); 1237 skb_copy_to_linear_data(skb, self->rx_buff.data, len - 4);
1251 1238
1252 IRDA_DEBUG(2, "%s(): len=%x.head=%x\n", __func__, 1239 pr_debug("%s(): len=%x.head=%x\n", __func__,
1253 len - 4, st_fifo->head); 1240 len - 4, st_fifo->head);
1254 1241
1255 // Move to next frame 1242 // Move to next frame
1256 self->rx_buff.data += len; 1243 self->rx_buff.data += len;
@@ -1263,10 +1250,8 @@ static int RxTimerHandler(struct via_ircc_cb *self, int iobase)
1263 } //while 1250 } //while
1264 self->RetryCount = 0; 1251 self->RetryCount = 0;
1265 1252
1266 IRDA_DEBUG(2, 1253 pr_debug("%s(): End of upload HostStatus=%x,RxStatus=%x\n",
1267 "%s(): End of upload HostStatus=%x,RxStatus=%x\n", 1254 __func__, GetHostStatus(iobase), GetRXStatus(iobase));
1268 __func__,
1269 GetHostStatus(iobase), GetRXStatus(iobase));
1270 1255
1271 /* 1256 /*
1272 * if frame is receive complete at this routine ,then upload 1257 * if frame is receive complete at this routine ,then upload
@@ -1304,12 +1289,12 @@ static irqreturn_t via_ircc_interrupt(int dummy, void *dev_id)
1304 spin_lock(&self->lock); 1289 spin_lock(&self->lock);
1305 iHostIntType = GetHostStatus(iobase); 1290 iHostIntType = GetHostStatus(iobase);
1306 1291
1307 IRDA_DEBUG(4, "%s(): iHostIntType %02x: %s %s %s %02x\n", 1292 pr_debug("%s(): iHostIntType %02x: %s %s %s %02x\n",
1308 __func__, iHostIntType, 1293 __func__, iHostIntType,
1309 (iHostIntType & 0x40) ? "Timer" : "", 1294 (iHostIntType & 0x40) ? "Timer" : "",
1310 (iHostIntType & 0x20) ? "Tx" : "", 1295 (iHostIntType & 0x20) ? "Tx" : "",
1311 (iHostIntType & 0x10) ? "Rx" : "", 1296 (iHostIntType & 0x10) ? "Rx" : "",
1312 (iHostIntType & 0x0e) >> 1); 1297 (iHostIntType & 0x0e) >> 1);
1313 1298
1314 if ((iHostIntType & 0x40) != 0) { //Timer Event 1299 if ((iHostIntType & 0x40) != 0) { //Timer Event
1315 self->EventFlag.TimeOut++; 1300 self->EventFlag.TimeOut++;
@@ -1334,12 +1319,12 @@ static irqreturn_t via_ircc_interrupt(int dummy, void *dev_id)
1334 if ((iHostIntType & 0x20) != 0) { //Tx Event 1319 if ((iHostIntType & 0x20) != 0) { //Tx Event
1335 iTxIntType = GetTXStatus(iobase); 1320 iTxIntType = GetTXStatus(iobase);
1336 1321
1337 IRDA_DEBUG(4, "%s(): iTxIntType %02x: %s %s %s %s\n", 1322 pr_debug("%s(): iTxIntType %02x: %s %s %s %s\n",
1338 __func__, iTxIntType, 1323 __func__, iTxIntType,
1339 (iTxIntType & 0x08) ? "FIFO underr." : "", 1324 (iTxIntType & 0x08) ? "FIFO underr." : "",
1340 (iTxIntType & 0x04) ? "EOM" : "", 1325 (iTxIntType & 0x04) ? "EOM" : "",
1341 (iTxIntType & 0x02) ? "FIFO ready" : "", 1326 (iTxIntType & 0x02) ? "FIFO ready" : "",
1342 (iTxIntType & 0x01) ? "Early EOM" : ""); 1327 (iTxIntType & 0x01) ? "Early EOM" : "");
1343 1328
1344 if (iTxIntType & 0x4) { 1329 if (iTxIntType & 0x4) {
1345 self->EventFlag.EOMessage++; // read and will auto clean 1330 self->EventFlag.EOMessage++; // read and will auto clean
@@ -1358,17 +1343,17 @@ static irqreturn_t via_ircc_interrupt(int dummy, void *dev_id)
1358 /* Check if DMA has finished */ 1343 /* Check if DMA has finished */
1359 iRxIntType = GetRXStatus(iobase); 1344 iRxIntType = GetRXStatus(iobase);
1360 1345
1361 IRDA_DEBUG(4, "%s(): iRxIntType %02x: %s %s %s %s %s %s %s\n", 1346 pr_debug("%s(): iRxIntType %02x: %s %s %s %s %s %s %s\n",
1362 __func__, iRxIntType, 1347 __func__, iRxIntType,
1363 (iRxIntType & 0x80) ? "PHY err." : "", 1348 (iRxIntType & 0x80) ? "PHY err." : "",
1364 (iRxIntType & 0x40) ? "CRC err" : "", 1349 (iRxIntType & 0x40) ? "CRC err" : "",
1365 (iRxIntType & 0x20) ? "FIFO overr." : "", 1350 (iRxIntType & 0x20) ? "FIFO overr." : "",
1366 (iRxIntType & 0x10) ? "EOF" : "", 1351 (iRxIntType & 0x10) ? "EOF" : "",
1367 (iRxIntType & 0x08) ? "RxData" : "", 1352 (iRxIntType & 0x08) ? "RxData" : "",
1368 (iRxIntType & 0x02) ? "RxMaxLen" : "", 1353 (iRxIntType & 0x02) ? "RxMaxLen" : "",
1369 (iRxIntType & 0x01) ? "SIR bad" : ""); 1354 (iRxIntType & 0x01) ? "SIR bad" : "");
1370 if (!iRxIntType) 1355 if (!iRxIntType)
1371 IRDA_DEBUG(3, "%s(): RxIRQ =0\n", __func__); 1356 pr_debug("%s(): RxIRQ =0\n", __func__);
1372 1357
1373 if (iRxIntType & 0x10) { 1358 if (iRxIntType & 0x10) {
1374 if (via_ircc_dma_receive_complete(self, iobase)) { 1359 if (via_ircc_dma_receive_complete(self, iobase)) {
@@ -1377,10 +1362,9 @@ static irqreturn_t via_ircc_interrupt(int dummy, void *dev_id)
1377 } 1362 }
1378 } // No ERR 1363 } // No ERR
1379 else { //ERR 1364 else { //ERR
1380 IRDA_DEBUG(4, "%s(): RxIRQ ERR:iRxIntType=%x,HostIntType=%x,CurCount=%x,RxLastCount=%x_____\n", 1365 pr_debug("%s(): RxIRQ ERR:iRxIntType=%x,HostIntType=%x,CurCount=%x,RxLastCount=%x_____\n",
1381 __func__, iRxIntType, iHostIntType, 1366 __func__, iRxIntType, iHostIntType,
1382 RxCurCount(iobase, self), 1367 RxCurCount(iobase, self), self->RxLastCount);
1383 self->RxLastCount);
1384 1368
1385 if (iRxIntType & 0x20) { //FIFO OverRun ERR 1369 if (iRxIntType & 0x20) { //FIFO OverRun ERR
1386 ResetChip(iobase, 0); 1370 ResetChip(iobase, 0);
@@ -1403,8 +1387,6 @@ static void hwreset(struct via_ircc_cb *self)
1403 int iobase; 1387 int iobase;
1404 iobase = self->io.fir_base; 1388 iobase = self->io.fir_base;
1405 1389
1406 IRDA_DEBUG(3, "%s()\n", __func__);
1407
1408 ResetChip(iobase, 5); 1390 ResetChip(iobase, 5);
1409 EnableDMA(iobase, OFF); 1391 EnableDMA(iobase, OFF);
1410 EnableTX(iobase, OFF); 1392 EnableTX(iobase, OFF);
@@ -1448,7 +1430,7 @@ static int via_ircc_is_receiving(struct via_ircc_cb *self)
1448 if (CkRxRecv(iobase, self)) 1430 if (CkRxRecv(iobase, self))
1449 status = TRUE; 1431 status = TRUE;
1450 1432
1451 IRDA_DEBUG(2, "%s(): status=%x....\n", __func__, status); 1433 pr_debug("%s(): status=%x....\n", __func__, status);
1452 1434
1453 return status; 1435 return status;
1454} 1436}
@@ -1466,8 +1448,6 @@ static int via_ircc_net_open(struct net_device *dev)
1466 int iobase; 1448 int iobase;
1467 char hwname[32]; 1449 char hwname[32];
1468 1450
1469 IRDA_DEBUG(3, "%s()\n", __func__);
1470
1471 IRDA_ASSERT(dev != NULL, return -1;); 1451 IRDA_ASSERT(dev != NULL, return -1;);
1472 self = netdev_priv(dev); 1452 self = netdev_priv(dev);
1473 dev->stats.rx_packets = 0; 1453 dev->stats.rx_packets = 0;
@@ -1533,8 +1513,6 @@ static int via_ircc_net_close(struct net_device *dev)
1533 struct via_ircc_cb *self; 1513 struct via_ircc_cb *self;
1534 int iobase; 1514 int iobase;
1535 1515
1536 IRDA_DEBUG(3, "%s()\n", __func__);
1537
1538 IRDA_ASSERT(dev != NULL, return -1;); 1516 IRDA_ASSERT(dev != NULL, return -1;);
1539 self = netdev_priv(dev); 1517 self = netdev_priv(dev);
1540 IRDA_ASSERT(self != NULL, return 0;); 1518 IRDA_ASSERT(self != NULL, return 0;);
@@ -1577,8 +1555,8 @@ static int via_ircc_net_ioctl(struct net_device *dev, struct ifreq *rq,
1577 IRDA_ASSERT(dev != NULL, return -1;); 1555 IRDA_ASSERT(dev != NULL, return -1;);
1578 self = netdev_priv(dev); 1556 self = netdev_priv(dev);
1579 IRDA_ASSERT(self != NULL, return -1;); 1557 IRDA_ASSERT(self != NULL, return -1;);
1580 IRDA_DEBUG(1, "%s(), %s, (cmd=0x%X)\n", __func__, dev->name, 1558 pr_debug("%s(), %s, (cmd=0x%X)\n", __func__, dev->name,
1581 cmd); 1559 cmd);
1582 /* Disable interrupts & save flags */ 1560 /* Disable interrupts & save flags */
1583 spin_lock_irqsave(&self->lock, flags); 1561 spin_lock_irqsave(&self->lock, flags);
1584 switch (cmd) { 1562 switch (cmd) {