Commit Graph

10 Commits

Author SHA1 Message Date
prashantpaddune
a40588dd46 boeffla_wl_blocker: Add some wakelocks to the blacklist 2020-09-07 15:30:19 +05:30
djb77
f2d2bb53b8 power: Remove default wakelocks from boeffla_wl_blocker.h
Signed-off-by: djb77 <dwayne.bakewell@gmail.com>
2020-08-18 22:01:01 +05:30
djb77
c1772eb074 power: Increase boeffla_wl_blocker.h LENGTH_LIST_WL limit to 2048
Signed-off-by: djb77 <dwayne.bakewell@gmail.com>
2020-08-18 22:01:00 +05:30
djb77
0d641d3cf5 power: Fix issue in wakeup.c
Signed-off-by: djb77 <dwayne.bakewell@gmail.com>
2020-08-18 22:00:58 +05:30
andip71
5c9507f44a power: Update to wakelock blocker driver v1.1.0
There are now two lists:
- the previously existing list of user defined wakelocks to block
- a new list called "wakelock_blocker_default" which comes prepopulated with the most common
  and safe wakelocks to block:

    qcom_rx_wakelock;wlan;wlan_wow_wl;wlan_extscan_wl;netmgr_wl;NETLINK

A combination of both wakelock lists will be blocked finally.

Signed-off-by: djb77 <dwayne.bakewell@gmail.com>
2020-08-18 22:00:57 +05:30
andip71
e66233ca33 power: Update to wakelock blocker driver v1.0.1
- currently active wakelocks on the list are forcefully killed

Signed-off-by: djb77 <dwayne.bakewell@gmail.com>
2020-08-18 22:00:36 +05:30
andip71
714848b183 power: Add generic wakelock blocker driver v1.0.0
Based on ideas of FranciscoFranco's non-generic driver.

Sysfs node:

	/sys/class/misc/boeffla_wakelock_blocker/wakelock_blocker

		- list of wakelocks to be blocked, separated by semicolons

	/sys/class/misc/boeffla_wakelock_blocker/debug

		- write: 0/1 to switch off and on debug logging into dmesg
		- read:  get current driver internals

	/sys/class/misc/boeffla_wakelock_blocker/version

		- show driver version

Signed-off-by: andip71 <andreasp@gmx.de>
Signed-off-by: djb77 <dwayne.bakewell@gmail.com>
2020-08-18 21:54:39 +05:30
BlackGunZ
865bcc3e46 power: wakeup: Disable logging for pending wakeups
Thanks to @tropez08.
2020-08-18 21:22:51 +05:30
Ulf Hansson
23ea96b616 PM / core: Propagate dev->power.wakeup_path when no callbacks
[ Upstream commit dc351d4c5f4fe4d0f274d6d660227be0c3a03317 ]

The dev->power.direct_complete flag may become set in device_prepare() in
case the device don't have any PM callbacks (dev->power.no_pm_callbacks is
set). This leads to a broken behaviour, when there is child having wakeup
enabled and relies on its parent to be used in the wakeup path.

More precisely, when the direct complete path becomes selected for the
child in __device_suspend(), the propagation of the dev->power.wakeup_path
becomes skipped as well.

Let's address this problem, by checking if the device is a part the wakeup
path or has wakeup enabled, then prevent the direct complete path from
being used.

Reported-by: Loic Pallardy <loic.pallardy@st.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
[ rjw: Comment cleanup ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-06 18:19:21 +02:00
prashantpaddune
3bca37f224 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30