forked from MIrrors/gasket-driver
Keep apex in reset mode unless it's used.
Change-Id: I56eb88a1a138290f6939a19e8b973fb78d2e3c40
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user