Re: [PATCH v2] Fix busylooped in ppp_disconnect for huawei modem

2010-07-27 Thread Denis Kenzior
Hi Zhenhua, On 07/26/2010 11:58 PM, Zhenhua Zhang wrote: Huawei modem closes the modem port after PPP disconnect. So the channel of gatchat is NULL in ppp_disconnect. In such case, we resume the chat and it causes huawei_disconnect() get called and the gprs context is removed later. Before

[PATCH v2] Fix busylooped in ppp_disconnect for huawei modem

2010-07-26 Thread Zhenhua Zhang
Huawei modem closes the modem port after PPP disconnect. So the channel of gatchat is NULL in ppp_disconnect. In such case, we resume the chat and it causes huawei_disconnect() get called and the gprs context is removed later. Before removing this gprs context, we should reply the pending DBus