mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 21:50:53 +07:00
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>
This commit is contained in:
parent
676f3d2686
commit
23f89f0488
@ -525,7 +525,7 @@ static void speedtch_check_status(struct work_struct *work)
|
||||
|
||||
switch (status) {
|
||||
case 0:
|
||||
atm_dev->signal = ATM_PHY_SIG_LOST;
|
||||
atm_dev_signal_change(atm_dev, ATM_PHY_SIG_LOST);
|
||||
if (instance->last_status)
|
||||
atm_info(usbatm, "ADSL line is down\n");
|
||||
/* It may never resync again unless we ask it to... */
|
||||
@ -533,12 +533,12 @@ static void speedtch_check_status(struct work_struct *work)
|
||||
break;
|
||||
|
||||
case 0x08:
|
||||
atm_dev->signal = ATM_PHY_SIG_UNKNOWN;
|
||||
atm_dev_signal_change(atm_dev, ATM_PHY_SIG_UNKNOWN);
|
||||
atm_info(usbatm, "ADSL line is blocked?\n");
|
||||
break;
|
||||
|
||||
case 0x10:
|
||||
atm_dev->signal = ATM_PHY_SIG_LOST;
|
||||
atm_dev_signal_change(atm_dev, ATM_PHY_SIG_LOST);
|
||||
atm_info(usbatm, "ADSL line is synchronising\n");
|
||||
break;
|
||||
|
||||
@ -554,7 +554,7 @@ static void speedtch_check_status(struct work_struct *work)
|
||||
}
|
||||
|
||||
atm_dev->link_rate = down_speed * 1000 / 424;
|
||||
atm_dev->signal = ATM_PHY_SIG_FOUND;
|
||||
atm_dev_signal_change(atm_dev, ATM_PHY_SIG_FOUND);
|
||||
|
||||
atm_info(usbatm,
|
||||
"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)
|
||||
break;
|
||||
|
||||
default:
|
||||
atm_dev->signal = ATM_PHY_SIG_UNKNOWN;
|
||||
atm_dev_signal_change(atm_dev, ATM_PHY_SIG_UNKNOWN);
|
||||
atm_info(usbatm, "unknown line state %02x\n", status);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user