OSDN Git Service

staging: gasket: apex: place in low power reset until opened
authorTodd Poynor <toddpoynor@google.com>
Sun, 5 Aug 2018 20:07:48 +0000 (13:07 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Aug 2018 09:20:08 +0000 (11:20 +0200)
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>
drivers/staging/gasket/apex_driver.c

index 5531961..c747e9c 100644 (file)
@@ -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: