]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
isdn/gigaset: improve error handling when leaving DLE mode
authorTilman Schmidt <tilman@imap.cc>
Fri, 3 Oct 2014 15:03:32 +0000 (17:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Oct 2014 01:17:52 +0000 (21:17 -0400)
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>
drivers/isdn/gigaset/ev-layer.c

index 7459b127ddd59fe00fd2872337c2c8eb5845f7d5..dcae14aef3763cd416c2f6e3d807d44e7c5b4624 100644 (file)
@@ -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);