]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: fixup runtime PM handling v2
authorJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 23 Sep 2015 21:37:17 +0000 (14:37 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 30 Sep 2015 08:20:01 +0000 (10:20 +0200)
commitda5ccf65a3ea465a8638feb9d53b80f59ec72acb
treeeab29a08047447cf4d1724a828a8bd95085e6d4b
parentdd5d67c34c79eec81be71b8523479f7aaea981f1
drm/i915: fixup runtime PM handling v2

According to the PCI docs and Rafael, we don't need to be doing explicit
enables and disables in our init and teardown routines, as they're taken
care of by the PCI core.  So drop the pm_runtime_disable() at teardown
and pm_runtime_set_active() at init.

This fixes one failure of the basic-pci-d3-state test on my BYT.

v2: drop extra get_noresume() and put_noidle() (Rafael)

Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Acked-by: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_runtime_pm.c