Merge "msm: footswitch-8x60: Update collapse steps for memory retention robustness" into msm-3.0
This commit is contained in:
committed by
QuIC Gerrit Code Review
commit
fbf1453902
@@ -255,6 +255,14 @@ static int footswitch_disable(struct regulator_dev *rdev)
|
||||
/* Wait for synchronous resets to propagate. */
|
||||
udelay(RESET_DELAY_US);
|
||||
|
||||
/*
|
||||
* Return clocks to their state before this function. For robustness
|
||||
* if memory-retention across collapses is required, clocks should
|
||||
* be disabled before asserting the clamps. Assuming clocks were off
|
||||
* before entering footswitch_disable(), this will be true.
|
||||
*/
|
||||
restore_clocks(fs);
|
||||
|
||||
/*
|
||||
* Clamp the I/O ports of the core to ensure the values
|
||||
* remain fixed while the core is collapsed.
|
||||
@@ -266,9 +274,6 @@ static int footswitch_disable(struct regulator_dev *rdev)
|
||||
regval &= ~ENABLE_BIT;
|
||||
writel_relaxed(regval, fs->gfs_ctl_reg);
|
||||
|
||||
/* Return clocks to their state before this function. */
|
||||
restore_clocks(fs);
|
||||
|
||||
fs->is_enabled = false;
|
||||
|
||||
return rc;
|
||||
|
||||
Reference in New Issue
Block a user