ARM: SAMSUNG: Fixup usage of __raw IO in PM
Fix the use of __raw accesors in pm-common.c to use the _relaxed variants to deal with any issues due to endian related fetches. Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
This commit is contained in:
parent
d0ceee0b4d
commit
8558643d03
|
@ -31,7 +31,7 @@
|
||||||
void s3c_pm_do_save(struct sleep_save *ptr, int count)
|
void s3c_pm_do_save(struct sleep_save *ptr, int count)
|
||||||
{
|
{
|
||||||
for (; count > 0; count--, ptr++) {
|
for (; count > 0; count--, ptr++) {
|
||||||
ptr->val = __raw_readl(ptr->reg);
|
ptr->val = readl_relaxed(ptr->reg);
|
||||||
S3C_PMDBG("saved %p value %08lx\n", ptr->reg, ptr->val);
|
S3C_PMDBG("saved %p value %08lx\n", ptr->reg, ptr->val);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -51,9 +51,9 @@ void s3c_pm_do_restore(const struct sleep_save *ptr, int count)
|
||||||
{
|
{
|
||||||
for (; count > 0; count--, ptr++) {
|
for (; count > 0; count--, ptr++) {
|
||||||
pr_debug("restore %p (restore %08lx, was %08x)\n",
|
pr_debug("restore %p (restore %08lx, was %08x)\n",
|
||||||
ptr->reg, ptr->val, __raw_readl(ptr->reg));
|
ptr->reg, ptr->val, readl_relaxed(ptr->reg));
|
||||||
|
|
||||||
__raw_writel(ptr->val, ptr->reg);
|
writel_relaxed(ptr->val, ptr->reg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,5 +71,5 @@ void s3c_pm_do_restore(const struct sleep_save *ptr, int count)
|
||||||
void s3c_pm_do_restore_core(const struct sleep_save *ptr, int count)
|
void s3c_pm_do_restore_core(const struct sleep_save *ptr, int count)
|
||||||
{
|
{
|
||||||
for (; count > 0; count--, ptr++)
|
for (; count > 0; count--, ptr++)
|
||||||
__raw_writel(ptr->val, ptr->reg);
|
writel_relaxed(ptr->val, ptr->reg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue