question on rfkill_suspend
Subsystems (2)
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);