aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/atm
diff options
context:
space:
mode:
authorKarl Hiramoto <karl@hiramoto.org>2010-07-08 16:55:37 -0400
committerDavid S. Miller <davem@davemloft.net>2010-07-09 03:09:23 -0400
commit23f89f0488fa0fc843503fa07768d0d3edde3c44 (patch)
tree80ce07aeac5da1a761207ad8070e0841bee2f15c /drivers/usb/atm
parent676f3d268682175e821f33804a389255a192e221 (diff)
usb/atm/speedtch.c: call atm_dev_signal_change() when signal changes.
Propagate signal changes to upper atm layer. Signed-off-by: Karl Hiramoto <karl@hiramoto.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/usb/atm')
-rw-r--r--drivers/usb/atm/speedtch.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/usb/atm/speedtch.c b/drivers/usb/atm/speedtch.c
index 1335456b4f93..80f9617d3a15 100644
--- a/drivers/usb/atm/speedtch.c
+++ b/drivers/usb/atm/speedtch.c
@@ -525,7 +525,7 @@ static void speedtch_check_status(struct work_struct *work)
525 525
526 switch (status) { 526 switch (status) {
527 case 0: 527 case 0:
528 atm_dev->signal = ATM_PHY_SIG_LOST; 528 atm_dev_signal_change(atm_dev, ATM_PHY_SIG_LOST);
529 if (instance->last_status) 529 if (instance->last_status)
530 atm_info(usbatm, "ADSL line is down\n"); 530 atm_info(usbatm, "ADSL line is down\n");
531 /* It may never resync again unless we ask it to... */ 531 /* It may never resync again unless we ask it to... */
@@ -533,12 +533,12 @@ static void speedtch_check_status(struct work_struct *work)
533 break; 533 break;
534 534
535 case 0x08: 535 case 0x08:
536 atm_dev->signal = ATM_PHY_SIG_UNKNOWN; 536 atm_dev_signal_change(atm_dev, ATM_PHY_SIG_UNKNOWN);
537 atm_info(usbatm, "ADSL line is blocked?\n"); 537 atm_info(usbatm, "ADSL line is blocked?\n");
538 break; 538 break;
539 539
540 case 0x10: 540 case 0x10:
541 atm_dev->signal = ATM_PHY_SIG_LOST; 541 atm_dev_signal_change(atm_dev, ATM_PHY_SIG_LOST);
542 atm_info(usbatm, "ADSL line is synchronising\n"); 542 atm_info(usbatm, "ADSL line is synchronising\n");
543 break; 543 break;
544 544
@@ -554,7 +554,7 @@ static void speedtch_check_status(struct work_struct *work)
554 } 554 }
555 555
556 atm_dev->link_rate = down_speed * 1000 / 424; 556 atm_dev->link_rate = down_speed * 1000 / 424;
557 atm_dev->signal = ATM_PHY_SIG_FOUND; 557 atm_dev_signal_change(atm_dev, ATM_PHY_SIG_FOUND);
558 558
559 atm_info(usbatm, 559 atm_info(usbatm,
560 "ADSL line is up (%d kb/s down | %d kb/s up)\n", 560 "ADSL line is up (%d kb/s down | %d kb/s up)\n",
@@ -562,7 +562,7 @@ static void speedtch_check_status(struct work_struct *work)
562 break; 562 break;
563 563
564 default: 564 default:
565 atm_dev->signal = ATM_PHY_SIG_UNKNOWN; 565 atm_dev_signal_change(atm_dev, ATM_PHY_SIG_UNKNOWN);
566 atm_info(usbatm, "unknown line state %02x\n", status); 566 atm_info(usbatm, "unknown line state %02x\n", status);
567 break; 567 break;
568 } 568 }