Re: usb_wwan_write() called while device still being resumed

2013-02-17 Thread Alex Courbot
On 02/15/2013 08:05 PM, Bjørn Mork wrote: Maybe something like the completely untested: diff --git a/drivers/base/power/runtime.c b/drivers/base/power/runtime.c index 3148b10..38e19ba 100644 --- a/drivers/base/power/runtime.c +++ b/drivers/base/power/runtime.c @@ -512,6 +512,9 @@ static int rpm_

Re: usb_wwan_write() called while device still being resumed

2013-02-17 Thread Alex Courbot
On 02/15/2013 08:05 PM, Bjørn Mork wrote: Alex Courbot writes: Unfortunately it does not, and fails the same way. On the other hand, I do not see the issue when doing the following: diff --git a/drivers/usb/serial/usb_wwan.c b/drivers/usb/serial/usb_wwan.c index e4fad5e..1490029 100644 --- a/

Re: usb_wwan_write() called while device still being resumed

2013-02-15 Thread Bjørn Mork
Alex Courbot writes: > Unfortunately it does not, and fails the same way. On the other hand, > I do not see the issue when doing the following: > > diff --git a/drivers/usb/serial/usb_wwan.c b/drivers/usb/serial/usb_wwan.c > index e4fad5e..1490029 100644 > --- a/drivers/usb/serial/usb_wwan.c > ++

Re: usb_wwan_write() called while device still being resumed

2013-02-15 Thread Alex Courbot
Hi Bjørn, thanks for the reply! On 02/15/2013 02:41 AM, Bjørn Mork wrote: I believe the usb_autopm_get_interface_async() failing is OK in this case, but that should not cause the modem to stop working. Wonder if this patch solves the problem? : From: =?UTF-8?q?Bj=C3=B8rn=20Mork?= Date: Thu, 1

Re: usb_wwan_write() called while device still being resumed

2013-02-14 Thread Bjørn Mork
Alex Courbot writes: > The board features a USB GSM modem using the usb_wwan module. Once in > a while, when the system resumes from LP0, a NET_RX softirq will be > triggered while the modem is still being resumed, calling > usb_wwan_write(). This will cause usb_autopm_get_interface_async() > ins

usb_wwan_write() called while device still being resumed

2013-02-14 Thread Alex Courbot
Hi everyone, I have this pretty weird issue on Android 3.1 kernel and would really appreciate some insight that would allow me to figure it out. Could not find any reference to a similar problem so I am seeking your advice. The board features a USB GSM modem using the usb_wwan module. Once in