diff options
author | Tilman Schmidt <tilman@imap.cc> | 2014-10-03 15:03:32 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-06 01:17:52 (GMT) |
commit | 5dcd7d843950edfc9108246eab94c858b6dc5d6f (patch) | |
tree | 4d08a1e3144e30f47f319991b54f3817d4a93240 /drivers/isdn/gigaset/ev-layer.c | |
parent | 51db998fb6e04e8dfcf4e33295651367b91238a5 (diff) | |
download | linux-5dcd7d843950edfc9108246eab94c858b6dc5d6f.tar.xz |
isdn/gigaset: improve error handling when leaving DLE mode
Avoid cascading warnings when leaving DLE mode fails by clearing
the DLE flag before entering recovery.
Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/gigaset/ev-layer.c')
-rw-r--r-- | drivers/isdn/gigaset/ev-layer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/isdn/gigaset/ev-layer.c b/drivers/isdn/gigaset/ev-layer.c index 7459b12..dcae14a 100644 --- a/drivers/isdn/gigaset/ev-layer.c +++ b/drivers/isdn/gigaset/ev-layer.c @@ -1243,7 +1243,8 @@ static void do_action(int action, struct cardstate *cs, break; case ACT_FAILDLE0: cs->cur_at_seq = SEQ_NONE; - dev_warn(cs->dev, "Could not leave DLE mode.\n"); + dev_warn(cs->dev, "Error leaving DLE mode.\n"); + cs->dle = 0; at_state2 = &cs->bcs[cs->curchannel].at_state; disconnect(&at_state2); schedule_init(cs, MS_RECOVER); |