Re: [PATCH 09/28] ARM: mmu: Specify size in bytes in create_sections()

2018-05-13 Thread Sascha Hauer
On Tue, May 08, 2018 at 02:29:32PM -0700, Andrey Smirnov wrote: > Seeing > > create_sections(ttb, 0, PAGE_SIZE, ...); > > as the code the creates initial flat 4 GiB mapping is a bit less > intuitive then > > create_sections(ttb, 0, SZ_4G, ...); > > so, for the sake of clarificat

Re: [PATCH 07/28] ARM: mmu: Separate index and address in create_sections()

2018-05-13 Thread Sascha Hauer
Hi Andrey, On Tue, May 08, 2018 at 02:29:30PM -0700, Andrey Smirnov wrote: > Both TTB index and address used to fill that entry are derived from > the same variable 'addr' which requires shifting right and left by 20 > and somewhat confusing. > > Split the counter used to iterate over elements of

[PATCH 1/2] ARM: i.MX50: Replace expicit casts with IOMEM

2018-05-13 Thread Alexander Kurz
Signed-off-by: Alexander Kurz --- arch/arm/mach-imx/imx50.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-imx/imx50.c b/arch/arm/mach-imx/imx50.c index d6ff6dfc2..6d121eaf8 100644 --- a/arch/arm/mach-imx/imx50.c +++ b/arch/arm/mach-imx/imx50.c @@ -83

[PATCH 2/2] ARM: i.MX50: Record reset reason as a part of startup

2018-05-13 Thread Alexander Kurz
The given SRSR register location is also valid for the i.MX50. Signed-off-by: Alexander Kurz --- arch/arm/mach-imx/imx50.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-imx/imx50.c b/arch/arm/mach-imx/imx50.c index 6d121eaf8..f7cbc9d4b 100644 --- a/arch/arm/mach-imx/imx50