ARM: shmobile: Remove legacy machine_desc.map_io() callbacks
Subsystems (3)
Geert Uytterhoeven
maintainercover ARM: shmobile: Remove legacy machine_desc.map_io() callbacks
Hi Simon, Magnus,
This patch series removes the legacy machine_desc.map_io() callback for SoCs that no longer rely on it, but use ioremap() instead.
The patch for emev2 depends on "ARM: shmobile: Consolidate SCU mapping code" ("FIXME" commit ID reference to be updated).
Thanks!
Geert Uytterhoeven (2):
ARM: shmobile: r8a7740: Remove legacy machine_desc.map_io() callback
ARM: shmobile: emev2: Remove legacy machine_desc.map_io() callback
arch/arm/mach-shmobile/setup-emev2.c | 18 ------------------ arch/arm/mach-shmobile/setup-r8a7740.c | 20 -------------------- 2 files changed, 38 deletions(-)
Signature · 12 lines
1.9.1
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus TorvaldsGeert Uytterhoeven
maintainerPATCH 1/2 ARM: shmobile: r8a7740: Remove legacy machine_desc.map_io() callback
Commit 37201ba5c99d0be8 ("ARM: shmobile: r8a7740: Migrate to generic l2c OF initialization") removed the last user of the legacy "IOMEM()" macro on r8a7740-based systems. Hence there's no longer a need to set up a transparent mapping of system I/O registers. Remove the mapping and the legacy machine_desc.map_io() callback.
--- arch/arm/mach-shmobile/setup-r8a7740.c | 20 -------------------- 1 file changed, 20 deletions(-)
arch/arm/mach-shmobile/setup-r8a7740.c +0 -20
@@ -27,25 +27,6 @@#include "common.h" -static struct map_desc r8a7740_io_desc[]__initdata = { -/* -* for CPGA/INTC/PFC -* 0xe6000000-0xefffffff -> 0xe6000000-0xefffffff -*/ - { - .virtual =0xe6000000 , - .pfn =__phys_to_pfn (0xe6000000 ), - .length =160 <<20 , - .type =MT_DEVICE_NONSHARED - }, -}; - -static void __init r8a7740_map_io (void ) -{ -debug_ll_io_init (); -iotable_init (r8a7740_io_desc,ARRAY_SIZE (r8a7740_io_desc)); -} -/* * r8a7740 chip has lasting errata on MERAM buffer. * this is work-around for it.
@@ -109,7 +90,6 @@ static const char *const r8a7740_boards_compat_dt[] __initconst = {DT_MACHINE_START (R8A7740_DT ,"Generic R8A7740 (Flattened Device Tree)" ) .l2c_aux_val = 0, .l2c_aux_mask = ~0, - .map_io = r8a7740_map_io, .init_early = shmobile_init_delay, .init_irq = r8a7740_init_irq_of, .init_machine = r8a7740_generic_init,
Signature · 1 line
1.9.1
Geert Uytterhoeven
maintainerPATCH 2/2 ARM: shmobile: emev2: Remove legacy machine_desc.map_io() callback
In reply to Geert UytterhoevenCommit FIXME ("ARM: shmobile: Consolidate SCU mapping code") removed the last user of the static mapping on emev2-based systems. Remove the mapping and the legacy machine_desc.map_io() callback.
---
This depends on "ARM: shmobile: Consolidate SCU mapping code".
--- arch/arm/mach-shmobile/setup-emev2.c | 18 ------------------ 1 file changed, 18 deletions(-)
arch/arm/mach-shmobile/setup-emev2.c +0 -18
@@ -20,23 +20,6 @@#include <asm/mach/map.h> #include "common.h" -static struct map_desc emev2_io_desc[]__initdata = { -#ifdef CONFIG_SMP -/* 2M mapping for SCU + L2 controller */ - { - .virtual =0xf0000000 , - .pfn =__phys_to_pfn (0x1e000000 ), - .length =SZ_2M , - .type =MT_DEVICE - }, -#endif -}; - -static void __init emev2_map_io (void ) -{ -iotable_init (emev2_io_desc,ARRAY_SIZE (emev2_io_desc)); -} -static const char *const emev2_boards_compat_dt[]__initconst = {"renesas,emev2" ,NULL ,
@@ -46,7 +29,6 @@ extern const struct smp_operations emev2_smp_ops;DT_MACHINE_START (EMEV2_DT ,"Generic Emma Mobile EV2 (Flattened Device Tree)" ) .smp = smp_ops(emev2_smp_ops), - .map_io = emev2_map_io, .init_early = shmobile_init_delay, .init_late = shmobile_init_late, .dt_compat = emev2_boards_compat_dt,
Signature · 1 line
1.9.1
cover ARM: shmobile: Remove legacy machine_desc.map_io() callbacks
In reply to Geert UytterhoevenQuoted 9 lines · Geert Uytterhoeven
Hi Simon, Magnus,
This patch series removes the legacy
machine_desc.map_io()callback for SoCs that no longer rely on it, but useioremap()instead.The patch for emev2 depends on "ARM: shmobile: Consolidate SCU mapping code" ("FIXME" commit ID reference to be updated).
Thanks!
Thanks, I have queued these up.
cover ARM: shmobile: Remove legacy machine_desc.map_io() callbacks
Hi Simon,
Quoted 10 lines · Simon Horman
Quoted 7 lines · Geert Uytterhoeven
This patch series removes the legacy
machine_desc.map_io()callback for SoCs that no longer rely on it, but useioremap()instead.The patch for emev2 depends on "ARM: shmobile: Consolidate SCU mapping code" ("FIXME" commit ID reference to be updated).
Thanks!
Thanks, I have queued these up.
Thanks, but unfortunately it's not in renesas-devel-20160205-v4.5-rc2?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
cover ARM: shmobile: Remove legacy machine_desc.map_io() callbacks
Quoted 7 lines · Geert Uytterhoeven
Hi Simon,
Quoted 4 lines · Simon Horman
Quoted 3 lines · Geert Uytterhoeven
This patch series removes the legacy
machine_desc.map_io()callback for SoCs that no longer rely on it, but useioremap()instead.
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
The patch for emev2 depends on "ARM: shmobile: Consolidate SCU mapping code" ("FIXME" commit ID reference to be updated).
Thanks!
Thanks, I have queued these up.
Thanks, but unfortunately it's not in renesas-devel-20160205-v4.5-rc2?
Sorry about that, I'll try to actually queue it up this time.