diff options
author | Karl Hiramoto <karl@hiramoto.org> | 2010-07-08 16:55:34 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-09 03:09:22 -0400 |
commit | 49d49106fc6cbb48c832aa58e3e6cee8b49d5e8f (patch) | |
tree | 28e6d70e4a22f898994d2b518e8c4f77545e5b1a /drivers | |
parent | 0753455322a957e6a8fd8a9db163ba5aec92ce76 (diff) |
atm/solos-pci: call atm_dev_signal_change() when signal changes.
Propagate changes to upper atm layer, so userspace netmontor knows when DSL
showtime reached.
Signed-off-by: Karl Hiramoto <karl@hiramoto.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/atm/solos-pci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c index ded76c4c9f4f..6174965d9a4d 100644 --- a/drivers/atm/solos-pci.c +++ b/drivers/atm/solos-pci.c | |||
@@ -383,7 +383,7 @@ static int process_status(struct solos_card *card, int port, struct sk_buff *skb | |||
383 | 383 | ||
384 | /* Anything but 'Showtime' is down */ | 384 | /* Anything but 'Showtime' is down */ |
385 | if (strcmp(state_str, "Showtime")) { | 385 | if (strcmp(state_str, "Showtime")) { |
386 | card->atmdev[port]->signal = ATM_PHY_SIG_LOST; | 386 | atm_dev_signal_change(card->atmdev[port], ATM_PHY_SIG_LOST); |
387 | release_vccs(card->atmdev[port]); | 387 | release_vccs(card->atmdev[port]); |
388 | dev_info(&card->dev->dev, "Port %d: %s\n", port, state_str); | 388 | dev_info(&card->dev->dev, "Port %d: %s\n", port, state_str); |
389 | return 0; | 389 | return 0; |
@@ -401,7 +401,7 @@ static int process_status(struct solos_card *card, int port, struct sk_buff *skb | |||
401 | snr[0]?", SNR ":"", snr, attn[0]?", Attn ":"", attn); | 401 | snr[0]?", SNR ":"", snr, attn[0]?", Attn ":"", attn); |
402 | 402 | ||
403 | card->atmdev[port]->link_rate = rate_down / 424; | 403 | card->atmdev[port]->link_rate = rate_down / 424; |
404 | card->atmdev[port]->signal = ATM_PHY_SIG_FOUND; | 404 | atm_dev_signal_change(card->atmdev[port], ATM_PHY_SIG_FOUND); |
405 | 405 | ||
406 | return 0; | 406 | return 0; |
407 | } | 407 | } |
@@ -1246,7 +1246,7 @@ static int atm_init(struct solos_card *card) | |||
1246 | card->atmdev[i]->ci_range.vci_bits = 16; | 1246 | card->atmdev[i]->ci_range.vci_bits = 16; |
1247 | card->atmdev[i]->dev_data = card; | 1247 | card->atmdev[i]->dev_data = card; |
1248 | card->atmdev[i]->phy_data = (void *)(unsigned long)i; | 1248 | card->atmdev[i]->phy_data = (void *)(unsigned long)i; |
1249 | card->atmdev[i]->signal = ATM_PHY_SIG_UNKNOWN; | 1249 | atm_dev_signal_change(card->atmdev[i], ATM_PHY_SIG_UNKNOWN); |
1250 | 1250 | ||
1251 | skb = alloc_skb(sizeof(*header), GFP_ATOMIC); | 1251 | skb = alloc_skb(sizeof(*header), GFP_ATOMIC); |
1252 | if (!skb) { | 1252 | if (!skb) { |