diff options
author | Karl Hiramoto <karl@hiramoto.org> | 2010-07-08 16:55:36 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-09 03:09:23 -0400 |
commit | 676f3d268682175e821f33804a389255a192e221 (patch) | |
tree | 243089f96db40216e15858deca2954d7fca1bbc3 /drivers/usb/atm | |
parent | e0b901a9532bdbbe56f37e61bdcc96ee05ab94b7 (diff) |
usb/atm/cxacru.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/cxacru.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c index c89990f5e018..101ffc965ee0 100644 --- a/drivers/usb/atm/cxacru.c +++ b/drivers/usb/atm/cxacru.c | |||
@@ -866,50 +866,50 @@ static void cxacru_poll_status(struct work_struct *work) | |||
866 | instance->line_status = buf[CXINF_LINE_STATUS]; | 866 | instance->line_status = buf[CXINF_LINE_STATUS]; |
867 | switch (instance->line_status) { | 867 | switch (instance->line_status) { |
868 | case 0: | 868 | case 0: |
869 | atm_dev->signal = ATM_PHY_SIG_LOST; | 869 | atm_dev_signal_change(atm_dev, ATM_PHY_SIG_LOST); |
870 | atm_info(usbatm, "ADSL line: down\n"); | 870 | atm_info(usbatm, "ADSL line: down\n"); |
871 | break; | 871 | break; |
872 | 872 | ||
873 | case 1: | 873 | case 1: |
874 | atm_dev->signal = ATM_PHY_SIG_LOST; | 874 | atm_dev_signal_change(atm_dev, ATM_PHY_SIG_LOST); |
875 | atm_info(usbatm, "ADSL line: attempting to activate\n"); | 875 | atm_info(usbatm, "ADSL line: attempting to activate\n"); |
876 | break; | 876 | break; |
877 | 877 | ||
878 | case 2: | 878 | case 2: |
879 | atm_dev->signal = ATM_PHY_SIG_LOST; | 879 | atm_dev_signal_change(atm_dev, ATM_PHY_SIG_LOST); |
880 | atm_info(usbatm, "ADSL line: training\n"); | 880 | atm_info(usbatm, "ADSL line: training\n"); |
881 | break; | 881 | break; |
882 | 882 | ||
883 | case 3: | 883 | case 3: |
884 | atm_dev->signal = ATM_PHY_SIG_LOST; | 884 | atm_dev_signal_change(atm_dev, ATM_PHY_SIG_LOST); |
885 | atm_info(usbatm, "ADSL line: channel analysis\n"); | 885 | atm_info(usbatm, "ADSL line: channel analysis\n"); |
886 | break; | 886 | break; |
887 | 887 | ||
888 | case 4: | 888 | case 4: |
889 | atm_dev->signal = ATM_PHY_SIG_LOST; | 889 | atm_dev_signal_change(atm_dev, ATM_PHY_SIG_LOST); |
890 | atm_info(usbatm, "ADSL line: exchange\n"); | 890 | atm_info(usbatm, "ADSL line: exchange\n"); |
891 | break; | 891 | break; |
892 | 892 | ||
893 | case 5: | 893 | case 5: |
894 | atm_dev->link_rate = buf[CXINF_DOWNSTREAM_RATE] * 1000 / 424; | 894 | atm_dev->link_rate = buf[CXINF_DOWNSTREAM_RATE] * 1000 / 424; |
895 | atm_dev->signal = ATM_PHY_SIG_FOUND; | 895 | atm_dev_signal_change(atm_dev, ATM_PHY_SIG_FOUND); |
896 | 896 | ||
897 | atm_info(usbatm, "ADSL line: up (%d kb/s down | %d kb/s up)\n", | 897 | atm_info(usbatm, "ADSL line: up (%d kb/s down | %d kb/s up)\n", |
898 | buf[CXINF_DOWNSTREAM_RATE], buf[CXINF_UPSTREAM_RATE]); | 898 | buf[CXINF_DOWNSTREAM_RATE], buf[CXINF_UPSTREAM_RATE]); |
899 | break; | 899 | break; |
900 | 900 | ||
901 | case 6: | 901 | case 6: |
902 | atm_dev->signal = ATM_PHY_SIG_LOST; | 902 | atm_dev_signal_change(atm_dev, ATM_PHY_SIG_LOST); |
903 | atm_info(usbatm, "ADSL line: waiting\n"); | 903 | atm_info(usbatm, "ADSL line: waiting\n"); |
904 | break; | 904 | break; |
905 | 905 | ||
906 | case 7: | 906 | case 7: |
907 | atm_dev->signal = ATM_PHY_SIG_LOST; | 907 | atm_dev_signal_change(atm_dev, ATM_PHY_SIG_LOST); |
908 | atm_info(usbatm, "ADSL line: initializing\n"); | 908 | atm_info(usbatm, "ADSL line: initializing\n"); |
909 | break; | 909 | break; |
910 | 910 | ||
911 | default: | 911 | default: |
912 | atm_dev->signal = ATM_PHY_SIG_UNKNOWN; | 912 | atm_dev_signal_change(atm_dev, ATM_PHY_SIG_UNKNOWN); |
913 | atm_info(usbatm, "Unknown line state %02x\n", instance->line_status); | 913 | atm_info(usbatm, "Unknown line state %02x\n", instance->line_status); |
914 | break; | 914 | break; |
915 | } | 915 | } |