Keep apex in reset mode unless it's used.

Change-Id: I56eb88a1a138290f6939a19e8b973fb78d2e3c40
This commit is contained in:
Leonid Lobachev
2018-07-23 17:27:43 -07:00
parent 237454b288
commit 378d57f04e
2 changed files with 11 additions and 1 deletions

View File

@@ -311,7 +311,7 @@ module_init(apex_init);
module_exit(apex_exit);
/* Allows device to enter power save upon driver close(). */
static int allow_power_save;
static int allow_power_save = 1;
/* Allows SW based clock gating. */
static int allow_sw_clock_gating;

View File

@@ -620,6 +620,16 @@ static int gasket_pci_probe(
goto fail5;
}
if (driver_desc->device_close_cb) {
/* Perform a device cleanup, so as to place it in Power Save
* Mode. */
ret = driver_desc->device_close_cb(gasket_dev);
if (ret) {
gasket_log_error(
gasket_dev, "Device cleanup cb returned %d.", ret);
}
}
return 0;
fail5: