mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 21:54:11 +08:00
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>
This commit is contained in:
parent
51db998fb6
commit
5dcd7d8439
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user