netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* question on rfkill_suspend
@ 2008-04-16  8:17 Oliver Neukum
  0 siblings, 0 replies; only message in thread
From: Oliver Neukum @ 2008-04-16  8:17 UTC (permalink / raw)
  To: netdev, IvDoorn

Hi,

it seems like rfkill does not guarantee that it won't talk to suspended
devices. Is that true? Should request that arrive for suspended devices
be ignored or postponed?

	Regards
		Oliver

#ifdef CONFIG_PM
static int rfkill_suspend(struct device *dev, pm_message_t state)
{
	struct rfkill *rfkill = to_rfkill(dev);

	if (dev->power.power_state.event != state.event) {
		if (state.event & PM_EVENT_SLEEP) {
			mutex_lock(&rfkill->mutex);

			if (rfkill->state == RFKILL_STATE_ON)
				rfkill->toggle_radio(rfkill->data,
						     RFKILL_STATE_OFF);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-16  8:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-16  8:17 question on rfkill_suspend Oliver Neukum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).