commit | 4aede550f104158963260cdb736d0889a7671d6f | [log] [tgz] |
---|---|---|
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | Tue Sep 21 12:59:59 2021 +0100 |
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | Tue Oct 19 10:30:58 2021 +0100 |
tree | 4feb29db78993c265fbafd8efcb3f6855b190b70 | |
parent | b8bc0e50a32a3c3b51605e41de41b4d7952e6aa4 [diff] |
ARM: imx6: mark OCRAM mapping read-only iMX6 needs to write some code to OCRAM which resumes the DDR controller after suspend. However, merely using __arm_ioremap_exec() causes the kernel to complain of a W+X mapping. Solve this by using the newly introduced __arm_iomem_set_ro() function to prevent inadvertent or malicious writes to code we may later execute. Tested-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>