Ulf Hansson
a0504aecba
PM / runtime: Drop usage count for suppliers at device link removal
...
In the case consumer device is runtime resumed, while the link to the
supplier is removed, the earlier call to pm_runtime_get_sync() made from
rpm_get_suppliers() does not get properly balanced with a corresponding
call to pm_runtime_put(). This leads to that suppliers remains to be
runtime resumed forever, while they don't need to.
Let's fix the behaviour by calling rpm_put_suppliers() when dropping a
device link. Not that, since rpm_put_suppliers() checks the
link->rpm_active flag, we can correctly avoid to call pm_runtime_put() in
cases when we shouldn't.
Reported-by: Todor Tomov <todor.tomov@linaro.org >
Fixes: 21d5c57b37 (PM / runtime: Use device links)
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com >
2018-05-27 12:18:55 +02:00
..
2018-05-14 22:25:45 +02:00
2018-04-26 10:35:04 +02:00
2018-04-23 12:12:41 +02:00
2018-05-07 08:32:20 -07:00
2018-05-10 15:23:49 -04:00
2018-05-27 12:18:55 +02:00
2018-05-10 10:15:05 +02:00
2018-04-30 10:56:04 +02:00
2018-04-26 16:53:23 +02:00
2018-04-18 08:21:32 -06:00
2018-05-10 11:26:08 +10:00
2018-05-15 15:47:03 -07:00
2018-04-19 13:21:35 +02:00
2018-05-14 22:25:56 +02:00
2018-04-09 11:54:57 +02:00
2018-04-07 19:04:02 +09:00
2018-04-19 15:11:50 -07:00
2018-05-17 16:16:49 +05:30
2018-04-05 14:21:13 -07:00
2018-04-04 20:07:20 -07:00
2018-05-20 10:36:52 -07:00
2018-03-27 09:51:22 +02:00
2018-04-23 13:27:05 +02:00
2018-04-30 10:48:08 +02:00
2018-05-18 12:01:49 +10:00
2018-05-09 13:58:01 +02:00
2018-04-09 11:42:31 -07:00
2018-05-13 09:00:49 -07:00
2018-04-04 20:07:20 -07:00
2018-05-15 09:31:26 +02:00
2018-04-05 14:27:02 -07:00
2018-04-05 09:51:41 -07:00
2018-05-04 20:51:10 -10:00
2018-05-02 17:34:42 -10:00
2018-05-03 16:36:07 +02:00
2018-05-02 15:56:10 +02:00
2018-04-12 21:46:10 -04:00
2018-03-20 20:28:00 +01:00
2018-03-29 17:29:09 -06:00
2018-04-07 12:08:19 -07:00
2018-05-18 10:10:43 -07:00
2018-05-04 06:21:06 -04:00
2018-04-18 10:07:13 -07:00
2018-04-18 23:37:25 -04:00
2018-04-10 22:25:07 -07:00
2018-05-18 18:02:01 -07:00
2018-04-20 10:41:31 -07:00
2018-05-14 14:46:20 +02:00
2018-05-11 12:22:22 -07:00
2018-04-19 15:10:56 -07:00
2018-05-11 13:37:14 -06:00
2018-04-04 20:07:20 -07:00
2018-05-07 05:33:29 -10:00
2018-03-29 15:07:48 -04:00
2018-05-18 16:21:49 +02:00
2018-04-04 20:07:20 -07:00
2018-05-10 16:50:26 +02:00
2018-04-09 09:26:36 -07:00
2018-04-05 21:29:35 -07:00
2018-04-05 21:21:08 -07:00
2018-05-02 14:36:00 +02:00
2018-05-18 15:49:26 -07:00
2018-04-05 21:21:08 -07:00
2018-04-13 15:46:21 -07:00
2018-04-20 17:18:35 -07:00
2018-03-28 10:33:53 +08:00
2018-04-25 16:46:55 -07:00
2018-04-27 11:51:12 +02:00
2018-04-25 16:46:55 -07:00
2018-04-25 13:24:13 +10:00
2018-05-15 07:40:38 +02:00
2018-04-30 16:06:01 -04:00
2018-05-01 23:27:18 -04:00
2018-04-23 13:40:15 +02:00
2018-04-16 15:15:23 -07:00
2018-05-04 08:09:02 +09:00
2018-05-04 06:21:06 -04:00
2018-04-20 19:24:01 -04:00
2018-05-07 11:51:03 +02:00
2018-05-11 09:37:21 +08:00
2018-04-25 15:03:44 +02:00
2018-04-23 12:43:48 +02:00
2018-05-16 18:52:13 +02:00
2018-04-06 19:44:27 -07:00
2018-04-11 10:54:06 -04:00
2018-04-10 10:20:00 -07:00
2018-04-23 13:41:55 +02:00
2018-04-11 18:58:27 -07:00
2018-04-16 10:22:40 +02:00
2018-04-20 08:36:04 -07:00
2018-03-29 13:38:10 +03:00