From b9ded2cf72ae4efdcf4c8a653099dccff9c35522 Mon Sep 17 00:00:00 2001 From: Todd Poynor Date: Sun, 5 Aug 2018 13:07:48 -0700 Subject: [PATCH] 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 Signed-off-by: Greg Kroah-Hartman --- apex_driver.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apex_driver.c b/apex_driver.c index 4c3129c..9aa8408 100644 --- a/apex_driver.c +++ b/apex_driver.c @@ -708,6 +708,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: