Re: Suspend/resume semantics for ISDN drivers (was: NAK new drivers without proper power management?)



On Saturday, 3 March 2007 23:48, Tilman Schmidt wrote:
Ok, I've thought some more but I still don't know ...

On 12.02.2007 01:10 I wrote:
I don't doubt your basic assessment. However it doesn't translate that
easily into a real implementation. In my case, I maintain a USB driver,
so I have to deal with USB specifics of suspend/resume which happen not
to be that well documented. My driver provides an isdn4linux device but
isdn4linux knows nothing about suspend/resume so I am on my own on how
to reconcile the two. The device itself, though in turn far from trivial,
is actually the least of my worries.

So, how *should* an isdn4linux driver handle a request to suspend?
Specifically, if there are active connections, should it try to
shut them down in an orderly fashion (which might imply some delays
waiting for the remote station to acknowledge, etc.)? Should it kill
them abruptly (as for a USB unplug event)? Or should it just refuse
to suspend while a connection is still active?

I think that refusing to suspend wouldn't be a good approach (think of an
emergency suspend when the battery is running low).

Probably the closing of connections would be the nicest thing from the
user's point of view.

Greetings,
Rafael
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: [linux-usb-devel] USB deadlock after resume
    ... usb subsystem in the uvc driver, ... If I load the driver, and do not access the device after suspending ... (I'm looking for races in the uvc driver at the moment). ... The current state I revealed is that after suspend if the video node ...
    (Linux-Kernel)
  • Re: USB suspend issues
    ... your driver has to send down the wait-wake power IRP ... docs and USB samples driver sources for details on these mechanisms). ... If you don't want USB selective suspend, ...
    (microsoft.public.development.device.drivers)
  • Re: [PATCH] Remove process freezer from suspend to RAM pathway
    ... activity is what driver suspend() is supposed to do. ... Things like USB has to use the ... controller to sleep and go to sleep ourselves. ...
    (Linux-Kernel)
  • Re: PCI PM: Restore standard config registers of all devices early
    ... driver, according to Ben, and the breakage is not related to USB. ... It seems a very interesting suspend routine, ... but if the device goes into D3 the config space contents may be lost, ...
    (Linux-Kernel)
  • Re: F12 networkmanager, anyone else worried by this?
    ... i.e. it's not a NetworkManager bug as such. ... NM does not preserve Wifi connections over suspend, whether you think that's a bug or not. ... And since NM is an afterthought, the network comes up and any VPN or NFS connections are not remembered. ... So the problem does not lie with a driver, the driver is not making the decisions, NM is. ...
    (Fedora)

Loading