aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/gigaset/i4l.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isdn/gigaset/i4l.c')
-rw-r--r--drivers/isdn/gigaset/i4l.c52
1 files changed, 6 insertions, 46 deletions
diff --git a/drivers/isdn/gigaset/i4l.c b/drivers/isdn/gigaset/i4l.c
index c129ee47a8fb..f0acb9dc9e33 100644
--- a/drivers/isdn/gigaset/i4l.c
+++ b/drivers/isdn/gigaset/i4l.c
@@ -216,7 +216,7 @@ static int command_from_LL(isdn_ctrl *cntrl)
216 return -EINVAL; 216 return -EINVAL;
217 217
218 case ISDN_CMD_DIAL: 218 case ISDN_CMD_DIAL:
219 gig_dbg(DEBUG_ANY, 219 gig_dbg(DEBUG_CMD,
220 "ISDN_CMD_DIAL (phone: %s, msn: %s, si1: %d, si2: %d)", 220 "ISDN_CMD_DIAL (phone: %s, msn: %s, si1: %d, si2: %d)",
221 cntrl->parm.setup.phone, cntrl->parm.setup.eazmsn, 221 cntrl->parm.setup.phone, cntrl->parm.setup.eazmsn,
222 cntrl->parm.setup.si1, cntrl->parm.setup.si2); 222 cntrl->parm.setup.si1, cntrl->parm.setup.si2);
@@ -304,11 +304,10 @@ static int command_from_LL(isdn_ctrl *cntrl)
304 gigaset_free_channel(bcs); 304 gigaset_free_channel(bcs);
305 return -ENOMEM; 305 return -ENOMEM;
306 } 306 }
307
308 gig_dbg(DEBUG_CMD, "scheduling DIAL");
309 gigaset_schedule_event(cs); 307 gigaset_schedule_event(cs);
310 break; 308 break;
311 case ISDN_CMD_ACCEPTD: 309 case ISDN_CMD_ACCEPTD:
310 gig_dbg(DEBUG_CMD, "ISDN_CMD_ACCEPTD");
312 if (ch >= cs->channels) { 311 if (ch >= cs->channels) {
313 dev_err(cs->dev, 312 dev_err(cs->dev,
314 "ISDN_CMD_ACCEPTD: invalid channel (%d)\n", ch); 313 "ISDN_CMD_ACCEPTD: invalid channel (%d)\n", ch);
@@ -318,14 +317,11 @@ static int command_from_LL(isdn_ctrl *cntrl)
318 if (!gigaset_add_event(cs, &bcs->at_state, 317 if (!gigaset_add_event(cs, &bcs->at_state,
319 EV_ACCEPT, NULL, 0, NULL)) 318 EV_ACCEPT, NULL, 0, NULL))
320 return -ENOMEM; 319 return -ENOMEM;
321
322 gig_dbg(DEBUG_CMD, "scheduling ACCEPT");
323 gigaset_schedule_event(cs); 320 gigaset_schedule_event(cs);
324 321
325 break; 322 break;
326 case ISDN_CMD_ACCEPTB:
327 break;
328 case ISDN_CMD_HANGUP: 323 case ISDN_CMD_HANGUP:
324 gig_dbg(DEBUG_CMD, "ISDN_CMD_HANGUP");
329 if (ch >= cs->channels) { 325 if (ch >= cs->channels) {
330 dev_err(cs->dev, 326 dev_err(cs->dev,
331 "ISDN_CMD_HANGUP: invalid channel (%d)\n", ch); 327 "ISDN_CMD_HANGUP: invalid channel (%d)\n", ch);
@@ -335,8 +331,6 @@ static int command_from_LL(isdn_ctrl *cntrl)
335 if (!gigaset_add_event(cs, &bcs->at_state, 331 if (!gigaset_add_event(cs, &bcs->at_state,
336 EV_HUP, NULL, 0, NULL)) 332 EV_HUP, NULL, 0, NULL))
337 return -ENOMEM; 333 return -ENOMEM;
338
339 gig_dbg(DEBUG_CMD, "scheduling HUP");
340 gigaset_schedule_event(cs); 334 gigaset_schedule_event(cs);
341 335
342 break; 336 break;
@@ -376,6 +370,7 @@ static int command_from_LL(isdn_ctrl *cntrl)
376 } 370 }
377 break; 371 break;
378 case ISDN_CMD_SETL3: /* Set L3 to given protocol */ 372 case ISDN_CMD_SETL3: /* Set L3 to given protocol */
373 gig_dbg(DEBUG_CMD, "ISDN_CMD_SETL3");
379 if (ch >= cs->channels) { 374 if (ch >= cs->channels) {
380 dev_err(cs->dev, 375 dev_err(cs->dev,
381 "ISDN_CMD_SETL3: invalid channel (%d)\n", ch); 376 "ISDN_CMD_SETL3: invalid channel (%d)\n", ch);
@@ -390,44 +385,9 @@ static int command_from_LL(isdn_ctrl *cntrl)
390 } 385 }
391 386
392 break; 387 break;
393 case ISDN_CMD_PROCEED: 388
394 gig_dbg(DEBUG_ANY, "ISDN_CMD_PROCEED");
395 break;
396 case ISDN_CMD_ALERT:
397 gig_dbg(DEBUG_ANY, "ISDN_CMD_ALERT");
398 if (cntrl->arg >= cs->channels) {
399 dev_err(cs->dev,
400 "ISDN_CMD_ALERT: invalid channel (%d)\n",
401 (int) cntrl->arg);
402 return -EINVAL;
403 }
404 break;
405 case ISDN_CMD_REDIR:
406 gig_dbg(DEBUG_ANY, "ISDN_CMD_REDIR");
407 break;
408 case ISDN_CMD_PROT_IO:
409 gig_dbg(DEBUG_ANY, "ISDN_CMD_PROT_IO");
410 break;
411 case ISDN_CMD_FAXCMD:
412 gig_dbg(DEBUG_ANY, "ISDN_CMD_FAXCMD");
413 break;
414 case ISDN_CMD_GETL2:
415 gig_dbg(DEBUG_ANY, "ISDN_CMD_GETL2");
416 break;
417 case ISDN_CMD_GETL3:
418 gig_dbg(DEBUG_ANY, "ISDN_CMD_GETL3");
419 break;
420 case ISDN_CMD_GETEAZ:
421 gig_dbg(DEBUG_ANY, "ISDN_CMD_GETEAZ");
422 break;
423 case ISDN_CMD_SETSIL:
424 gig_dbg(DEBUG_ANY, "ISDN_CMD_SETSIL");
425 break;
426 case ISDN_CMD_GETSIL:
427 gig_dbg(DEBUG_ANY, "ISDN_CMD_GETSIL");
428 break;
429 default: 389 default:
430 dev_err(cs->dev, "unknown command %d from LL\n", 390 gig_dbg(DEBUG_CMD, "unknown command %d from LL",
431 cntrl->command); 391 cntrl->command);
432 return -EINVAL; 392 return -EINVAL;
433 } 393 }