From: Sven Schmitt Date: Tue, 24 Jul 2018 09:46:03 +0000 (+0000) Subject: soc: imx: gpc: fix PDN delay X-Git-Tag: v4.20-rc1~64^2~6^2~6 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9f4d61d531e0efc9c3283963ae5ef7e314579191;p=users%2Fjedix%2Flinux-maple.git soc: imx: gpc: fix PDN delay imx6_pm_domain_power_off() reads iso and iso2sw from GPC_PGC_PUPSCR_OFFS which stores the power up delays. So use GPC_PGC_PDNSCR_OFFS for the correct delays. Signed-off-by: Sven Schmitt Reviewed-by: Leonard Crestez Signed-off-by: Shawn Guo --- diff --git a/drivers/soc/imx/gpc.c b/drivers/soc/imx/gpc.c index b3da635970ea7..d160fc2a7b7a2 100644 --- a/drivers/soc/imx/gpc.c +++ b/drivers/soc/imx/gpc.c @@ -69,7 +69,7 @@ static int imx6_pm_domain_power_off(struct generic_pm_domain *genpd) u32 val; /* Read ISO and ISO2SW power down delays */ - regmap_read(pd->regmap, pd->reg_offs + GPC_PGC_PUPSCR_OFFS, &val); + regmap_read(pd->regmap, pd->reg_offs + GPC_PGC_PDNSCR_OFFS, &val); iso = val & 0x3f; iso2sw = (val >> 8) & 0x3f;