Skip to contentSkip to conversation

Input: twl4030-pwrbutton: ensure a wakeup event is recorded.

PATCH Applied NeilBrown 2 participants 2 messages Nov 7, 2014 – Nov 8, 2014

Subsystems (2)
lore
Share & tools
lore

NeilBrown

author
#0 lore raw

PATCH 1/1 Input: twl4030-pwrbutton: ensure a wakeup event is recorded.

This button is treated as a wakeup source, so we need to initialise it correctly.

Without the device_init_wakeup() call, dev->power.wakeup will be NULL, and pm_wakeup_event() will do nothing.

drivers/input/misc/twl4030-pwrbutton.c +1 -0
index fb3b63b2f85c..8400a1a34d87 100644
@@ -85,6 +85,7 @@ static int twl4030_pwrbutton_probe(struct platform_device *pdev)
 	}
 
 	platform_set_drvdata(pdev, pwr);
+	device_init_wakeup(&pdev->dev, true);
 
 	return 0;
 }
maintainer Applied
#1 lore raw
Quoted 9 lines · NeilBrown

This button is treated as a wakeup source, so we need to initialise it correctly.

Without the device_init_wakeup() call, dev->power.wakeup will be NULL, and pm_wakeup_event() will do nothing.

Applied, thank you.

Quoted 13 lines
drivers/input/misc/twl4030-pwrbutton.c +1 -0
index fb3b63b2f85c..8400a1a34d87 100644
@@ -85,6 +85,7 @@ static int twl4030_pwrbutton_probe(struct platform_device *pdev)
 	}
 
 	platform_set_drvdata(pdev, pwr);
+	device_init_wakeup(&pdev->dev, true);
 
 	return 0;
 }
Signature · 1 line
Dmitry