Re: cdc-acm and remote wakeup

2012-11-27 Thread Alan Stern
On Tue, 27 Nov 2012, Oliver Neukum wrote: > On Tuesday 27 November 2012 10:30:02 Alan Stern wrote: > > > I disagree. The usbfs interface is not as capable as the kernel's > > internal API; that has always been true. One of its limitations is the > > inability to request remote wakeups. We coul

Re: cdc-acm and remote wakeup

2012-11-27 Thread Oliver Neukum
On Tuesday 27 November 2012 10:30:02 Alan Stern wrote: > I disagree. The usbfs interface is not as capable as the kernel's > internal API; that has always been true. One of its limitations is the > inability to request remote wakeups. We could add that to usbfs, but > for now it isn't there. Y

Re: cdc-acm and remote wakeup

2012-11-27 Thread Alan Stern
On Tue, 27 Nov 2012, Oliver Neukum wrote: > On Monday 26 November 2012 13:40:28 Alan Stern wrote: > > Of course, there would still be a problem if the system was suspended > > while this program was running and using the modem. There's no way to > > tell usbfs that remote wakeup is required. >

Re: cdc-acm and remote wakeup

2012-11-26 Thread Oliver Neukum
On Monday 26 November 2012 13:40:28 Alan Stern wrote: > Of course, there would still be a problem if the system was suspended > while this program was running and using the modem. There's no way to > tell usbfs that remote wakeup is required. Exactly. Also there's an unavoidable window when kick

Re: cdc-acm and remote wakeup

2012-11-26 Thread Alan Stern
On Mon, 26 Nov 2012, Oliver Neukum wrote: > On Monday 26 November 2012 12:06:21 Alan Stern wrote: > > Still, this is an important consideration. It means that remote wakeup > > doesn't need to be enabled when the driver isn't present. Which means > > that the cdc-acm driver is indeed the right p

Re: cdc-acm and remote wakeup

2012-11-26 Thread Oliver Neukum
On Monday 26 November 2012 12:06:21 Alan Stern wrote: > Still, this is an important consideration. It means that remote wakeup > doesn't need to be enabled when the driver isn't present. Which means > that the cdc-acm driver is indeed the right place to fix this problem > -- although the way you

Re: cdc-acm and remote wakeup

2012-11-26 Thread Daniele Palmas
2012/11/26 Alan Stern : > On Mon, 26 Nov 2012, Daniele Palmas wrote: > >> > What if the modem isn't registered to the network? For example, if the >> > cdc-acm driver is unloaded. Does it need remote wakeup to be enabled >> > then? >> > >> >> That is a good question: in my specific scenario it is

Re: cdc-acm and remote wakeup

2012-11-26 Thread Alan Stern
On Mon, 26 Nov 2012, Daniele Palmas wrote: > > What if the modem isn't registered to the network? For example, if the > > cdc-acm driver is unloaded. Does it need remote wakeup to be enabled > > then? > > > > That is a good question: in my specific scenario it is not useful to > have the remote

Re: cdc-acm and remote wakeup

2012-11-26 Thread Daniele Palmas
Hello Alan, 2012/11/26 Alan Stern : > On Mon, 26 Nov 2012, Daniele Palmas wrote: > >> Maybe I have to explain better my scenario: >> >> Modem is registered to the network. Host suspended, I want my device >> to wake up the host when it receives, for example, a call or an sms. > > What if the modem

Re: cdc-acm and remote wakeup

2012-11-26 Thread Alan Stern
On Mon, 26 Nov 2012, Oliver Neukum wrote: > > I understand that probably there are problems in the firmware of the > > modem (because it should not brick), but I'm trying to find a > > workaround to have things working. > > I am attaching a patch to introduce a new quirk type. You need to add > y

Re: cdc-acm and remote wakeup

2012-11-26 Thread Alan Stern
On Mon, 26 Nov 2012, Daniele Palmas wrote: > Maybe I have to explain better my scenario: > > Modem is registered to the network. Host suspended, I want my device > to wake up the host when it receives, for example, a call or an sms. What if the modem isn't registered to the network? For example

Re: cdc-acm and remote wakeup

2012-11-26 Thread Daniele Palmas
2012/11/26 Oliver Neukum : > On Monday 26 November 2012 13:29:09 Daniele Palmas wrote: > >> Ok. Do you have any hint for adding the code in the proper place? > > First we need to define a new quirk. > >> >> According to the USB 2.0 specs it seems to me that this feature should >> >> be always reque

Re: cdc-acm and remote wakeup

2012-11-26 Thread Oliver Neukum
On Monday 26 November 2012 13:29:09 Daniele Palmas wrote: > Ok. Do you have any hint for adding the code in the proper place? First we need to define a new quirk. > >> According to the USB 2.0 specs it seems to me that this feature should > >> be always requested when suspending a device, so pr

Re: cdc-acm and remote wakeup

2012-11-26 Thread Daniele Palmas
Hello Oliver, 2012/11/26 Oliver Neukum : > On Monday 26 November 2012 10:42:48 Daniele Palmas wrote: >> Hello, >> >> I'm using the modem Telit HE910 with cdc-acm driver. >> >> I've found that after a suspend and resume of the operating system >> (e.g. pm-suspend), the modem does not answer anymore

Re: cdc-acm and remote wakeup

2012-11-26 Thread Oliver Neukum
On Monday 26 November 2012 10:42:48 Daniele Palmas wrote: > Hello, > > I'm using the modem Telit HE910 with cdc-acm driver. > > I've found that after a suspend and resume of the operating system > (e.g. pm-suspend), the modem does not answer anymore. > > Collecting logs with an usb sniffer, it s

cdc-acm and remote wakeup

2012-11-26 Thread Daniele Palmas
Hello, I'm using the modem Telit HE910 with cdc-acm driver. I've found that after a suspend and resume of the operating system (e.g. pm-suspend), the modem does not answer anymore. Collecting logs with an usb sniffer, it seems that, unlike the Windows driver, the host does not send the packet SE