Hi! > > Why can't the device itself manage it? If you want to stub out the > > common parts just create a function like netdev_suspend and call it at > > appropriate time. > > Because you would then need to add that function call to _every_ network > device driver. This way, we do not need to do that as the class gets > called in the proper place before the device driver does. I'm not sure this is good idea, it also has potential to break all the network devices with one diff. Some devices will be doing parts of class_suspend already, so I do not think that some breakage will happen. -- Thanks for all the (sleeping) penguins. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH 20/47] PM: add kconfig option for deprecated .../power/state files
- From: Greg KH <[email protected]>
- [PATCH 22/47] PM: no suspend_prepare() phase
- From: Greg KH <[email protected]>
- [PATCH 23/47] PM: add /sys/power documentation to Documentation/ABI
- From: Greg KH <[email protected]>
- [PATCH 24/47] PM: device_suspend/resume may sleep
- From: Greg KH <[email protected]>
- [PATCH 25/47] PM: platform_bus and late_suspend/early_resume
- From: Greg KH <[email protected]>
- [PATCH 26/47] Driver core: add groups support to struct device
- From: Greg KH <[email protected]>
- Re: [PATCH 26/47] Driver core: add groups support to struct device
- From: "Dmitry Torokhov" <[email protected]>
- Re: [PATCH 26/47] Driver core: add groups support to struct device
- From: Greg KH <[email protected]>
- Re: [PATCH 26/47] Driver core: add groups support to struct device
- From: "Dmitry Torokhov" <[email protected]>
- Re: [PATCH 26/47] Driver core: add groups support to struct device
- From: Greg KH <[email protected]>
- [PATCH 20/47] PM: add kconfig option for deprecated .../power/state files
- Prev by Date: Re: [PATCH 1/4] Blackfin: arch patch for 2.6.18
- Next by Date: Re: [PATCH 1/5] UML - Assign random MACs to interfaces if necessary
- Previous by thread: Re: [PATCH 26/47] Driver core: add groups support to struct device
- Next by thread: Re: [PATCH 26/47] Driver core: add groups support to struct device
- Index(es):