summaryrefslogtreecommitdiffstats
path: root/drivers/isdn
diff options
context:
space:
mode:
authorTilman Schmidt <tilman@imap.cc>2014-10-03 17:03:32 +0200
committerDavid S. Miller <davem@davemloft.net>2014-10-05 21:17:52 -0400
commit5dcd7d843950edfc9108246eab94c858b6dc5d6f (patch)
tree4d08a1e3144e30f47f319991b54f3817d4a93240 /drivers/isdn
parent51db998fb6e04e8dfcf4e33295651367b91238a5 (diff)
downloadlinux-stable-5dcd7d843950edfc9108246eab94c858b6dc5d6f.tar.gz
linux-stable-5dcd7d843950edfc9108246eab94c858b6dc5d6f.tar.bz2
linux-stable-5dcd7d843950edfc9108246eab94c858b6dc5d6f.zip
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')
-rw-r--r--drivers/isdn/gigaset/ev-layer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/isdn/gigaset/ev-layer.c b/drivers/isdn/gigaset/ev-layer.c
index 7459b127ddd5..dcae14aef376 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);