Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 2bfcfd5

Browse files
committed
Merge tag 'pmdomain-v6.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/linux-pm
Pull pmdomain fix from Ulf Hansson: - Fix regression in gpcv2 PM domain for i.MX8 * tag 'pmdomain-v6.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/linux-pm: pmdomain: imx: gpcv2: Add delay after power up handshake
2 parents e4c07ec + e8dc41a commit 2bfcfd5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

drivers/pmdomain/imx/gpcv2.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,17 @@ static int imx_pgc_power_up(struct generic_pm_domain *genpd)
393393
* automatically there. Just add a delay and suppose the handshake finish
394394
* after that.
395395
*/
396+
397+
/*
398+
* For some BLK-CTL module (eg. AudioMix on i.MX8MP) doesn't have BUS
399+
* clk-en bit, it is better to add delay here, as the BLK-CTL module
400+
* doesn't need to care about how it is powered up.
401+
*
402+
* regmap_read_bypassed() is to make sure the above write IO transaction
403+
* already reaches target before udelay()
404+
*/
405+
regmap_read_bypassed(domain->regmap, domain->regs->hsk, &reg_val);
406+
udelay(5);
396407
}
397408

398409
/* Disable reset clocks for all devices in the domain */

0 commit comments

Comments
 (0)