aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2018-08-05 13:07:48 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-08-08 11:20:08 +0200
commit4801fc6f7f72447efc7c2f6e886c887ff5bf5f4c (patch)
tree2cacb74624013f0f87365cea3fae64c2593b3a5d /drivers/staging
parentstaging: gasket: core: protect against races during unregister (diff)
downloadlinux-dev-4801fc6f7f72447efc7c2f6e886c887ff5bf5f4c.tar.xz
linux-dev-4801fc6f7f72447efc7c2f6e886c887ff5bf5f4c.zip
staging: gasket: apex: place in low power reset until opened
The apex device is left out of reset mode at the end of device probe/initialize processing. Add a call to enter reset at the end of the sequence, triggering power gating and other low power features. Signed-off-by: Todd Poynor <toddpoynor@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/gasket/apex_driver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/staging/gasket/apex_driver.c b/drivers/staging/gasket/apex_driver.c
index 55319619b2e6..c747e9ca4518 100644
--- a/drivers/staging/gasket/apex_driver.c
+++ b/drivers/staging/gasket/apex_driver.c
@@ -644,6 +644,10 @@ static int apex_pci_probe(struct pci_dev *pci_dev,
goto remove_device;
}
+ /* Place device in low power mode until opened */
+ if (allow_power_save)
+ apex_enter_reset(gasket_dev);
+
return 0;
remove_device: