mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 09:51:00 +07:00
pinctrl: tegra: Flush pinctrl writes during resume
This patch adds pinctrl register read to flush all the prior pinctrl writes and then adds barrier for pinctrl register read to complete during resume to make sure all pinctrl changes are effective. Acked-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com> Link: https://lore.kernel.org/r/1565984527-5272-3-git-send-email-skomatineni@nvidia.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
c2cf351eba
commit
a4873accca
@ -677,6 +677,10 @@ static int tegra_pinctrl_resume(struct device *dev)
|
||||
writel_relaxed(*backup_regs++, regs++);
|
||||
}
|
||||
|
||||
/* flush all the prior writes */
|
||||
readl_relaxed(pmx->regs[0]);
|
||||
/* wait for pinctrl register read to complete */
|
||||
rmb();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user